From: Felipe Contreras Date: 2007-08-16T00:33:55+09:00 Subject: Re: wsdl2ruby help On 8/15/07, Kelsen23@gmail.com wrote: > Hello - > > I've been trying to figure out if and what I need to modify to get > Ruby to access these web services. In lieu of those of us who would > much rather see code than listen to someone rant about their problem, > I provided a simplified version of the WSDLs I am using. > > My question is below the WSDL definitions~ > > #### > # Security WSDL > #### > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http:// > schemas.xmlsoap.org/wsdl/http/" targetNamespace="http:// > randomsite.com/ > wsapi/" xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > > > type="s:string" /> > type="s:string" /> > > > > > > > type="s:string" /> > > > > > > > > > > > > > > Login to web service. > > > > > > > > style="document" /> > > > > > > > > > > > > > > > > ##### > # Contact WSDL > ##### > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http:// > schemas.xmlsoap.org/wsdl/http/" targetNamespace="http:// > randomsite.com/ > wsapi/" xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > > > > type="s:string" /> > > > > > > > name="GetContactsResult"> > > > > > > > > > > > > > > type="s:string" /> > > > > > > > > > > > > > > > > Retrieves contact information. > > > > > > > > > > > message="s0:GetContactsAuthentication" part="Authentication" > use="literal" xmlns:d5p1="http://schemas.xmlsoap.org/wsdl/" /> > > > > > > > > > > > > > > I downloaded the most recent (that I know of) gem of soap4r (1.5.7) > and httpclient (2.1.0.90.20070807) and used wsdl2ruby on both WSDLs. > I tested the security objects and everything worked great, no problems > whatsoever. When I tried to test the contact objects however there > was no mechanism to pass in the authentication value. As defined in > the Contact WSDL, the authentication token must be provided via the > SOAP header but it seems wsdl2ruby did not parse that out. > > Do I need to doctor up the WSDL in order for wsdl2ruby to parse it > correctly or is this functionality not available at this time? If > it's not, do you have any idea where the best place to start would > be. I was diving into the SOAP::RPC::Driver and SOAP::RPC::Proxy > classes but I wasn't sure where to start. > > Thanks in advance. You might have better luck in http://groups.google.com/group/soap4r -- Felipe Contreras