From: Lee Grey Date: 2008-09-29T11:10:40+09:00 Subject: wsdl2ruby request invalid while soapui's is correct ------=_Part_40267_4513177.1222654284501 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline [Apologies if this ends up being a duplicate post. I've been waiting for over three hours for my post to appear, so I'm wondering if there is a problem between Nabble and this list.] I'm trying to use wsdl2ruby with the optionsXpress web services. The WSDL can be retrieved at https://oxbranch.optionsxpress.com/accountservice/account.asmx?WSDL. In SOAPUI, the generated raw request looks like this: Content-Length: 468 Host: oxbranch.optionsxpress.com User-Agent: Jakarta Commons-HttpClient/3.0.1 SOAPAction: "http://oxbranch.optionsxpress.com/GetOxSessionWithSource" Content-Type: text/xml;charset=UTF-8 ? ? ? ? The wiredump from soap4r request looks like this (after my clean-up/reformatting): POST /accountservice/account.asmx/GetOxSessionWithSource HTTP/1.1 Content-Type: text/xml; charset=utf-8 Soapaction: \"http://oxbranch.optionsxpress.com/GetOxSessionWithSource\" User-Agent: SOAP4R/1.5.5 Accept: */* Host: oxbranch.optionsxpress.com Content-Length: 510 The call from SOAPUI works perfectly. The soap4r call results in the following response: -> "HTTP/1.1 500 Internal Server Error\r\n" -> "Cache-Control: private\r\n" -> "Content-Length: 236\r\n" -> "Content-Type: text/plain; charset=utf-8\r\n" -> "Server: Microsoft-IIS/6.0\r\n" -> "X-Powered-By: ASP.NET\r\n" -> "X-AspNet-Version: 2.0.50727\r\n" -> "Set-Cookie: TLTHID=B1B3C4E642E7B78CBAB2CF8EB944A39C; Path=/; Domain=. optionsxpress.com\r\n" -> "Set-Cookie: TLTSID=B1B3C4E642E7B78CBAB2CF8EB944A39C; Path=/; Domain=. optionsxpress.com\r\n" -> "HostName: DABRANCH1\r\n" -> "Set-Cookie: TLTCNT=DABRANCH10000000000140155\r\n" -> "Date: Sun, 28 Sep 2008 21:39:30 GMT\r\n" -> "\r\n" reading 236 bytes... -> "System.InvalidOperationException: Request format is invalid: text/xml; charset=utf-8.\r\n at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters()\r\n at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest ()\r\n" read 236 bytes Conn keep-alive System.InvalidOperationException: Request format is invalid: text/xml; charset=utf-8. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() I'm not sure, but it looks like the "