From: Werner Bohl Date: 2006-09-21T06:35:01+09:00 Subject: Re: SOAP Envelope Error --Boundary_(ID_ixlm4ZaFFHbqrroJILetBA) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Mark A. Richman wrote: > soap4r is generating this: > > POST /Wahp.Provisioning/User.asmx HTTP/1.1 > SOAPAction: "http://affinity.com/Wahp/Provisioning/IsValidLogin" > Content-Type: text/xml; charset=utf-8 > Authorization: Basic U0hBUkVEXuaXN0cmF0b3I6JZSQ= > User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.5 (2006-08-25) [i386-mswin32]) > Date: Wed Sep 20 13:44:12 -0400 2006 > Content-Length: 437 > Host: web001whp001:3250 > > > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Username > Password > > > > > My service expects this: > > POST /Wahp.Provisioning/User.asmx HTTP/1.1 > Host: web001whp001 > Content-Type: text/xml; charset=utf-8 > Content-Length: length > SOAPAction: "http://affinity.com/Wahp/Provisioning/IsValidLogin" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > > > string > string > > > > > What am I doing wrong? > > class Test > def initialize() > @driver = Driver.new(URL,NS) > @driver.wiredump_dev = STDOUT > @driver.options["protocol.http.basic_auth"] << [URL, USERNAME, > PASSWORD] > @driver.default_encodingstyle = > SOAP::EncodingStyle::ASPDotNetHandler::Namespace > > @driver.add_method_with_soapaction('IsValidLogin',SOAP_ACTION,'username','password') > puts @driver.IsValidLogin("Username","Password") > end > end > > - Mark > > > > I had the same exact problem with one of our data providers, and found no way to make it work with soap4r nor JOpera (a java based service orchestrator) nor some other java wsdl tools tried. So from strict xml point of view this wsdls are equivalent, but most non-windoze wsdl parsers choke on it. Luckily our provider was considering migrating to Java+Axis, and this "feature" of .NET convinced them, so this became a non-issue for me. Werner Bohl --Boundary_(ID_ixlm4ZaFFHbqrroJILetBA) Content-type: text/x-vcard; charset=utf-8; name=wbohl.vcf Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=wbohl.vcf begin:vcard fn:Werner Bohl n:Bohl;Werner email;internet:wbohl@racsa.co.cr tel;work:506-291-1374 tel;home:506-232-0398 tel;cell:506-876-2744 x-mozilla-html:TRUE version:2.1 end:vcard --Boundary_(ID_ixlm4ZaFFHbqrroJILetBA)--