From: "NAKAMURA, Hiroshi" Date: 2005-07-30T22:30:48+09:00 Subject: Re: trying to make a soap request -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Gregory Dyke wrote: > Nice, that works for me. But I think you're right: the soap4r module > needed updating. After I'd done that, it told me that create_driver > was deprecated. > > how do you figure out what to pass to :ScipersList? I don't understand > the wsdl too well, but it seems to want a *sequence* of strings. As it > happens, passing one number works out fine for me, but I'd like to > figure out how this mapping works. just says that child elements (only 1 element for the schema though) must appear in the same order as they defined. By the way, you can create request class definition by wsdl2ruby.rb. 0% wsdl2ruby.rb --wsdl http://people.epfl.ch/wsdl/PeopleWS.wsdl --classdef I, [2005-07-30T22:20:52.350115 #2888] INFO -- app: Creating class definition. I, [2005-07-30T22:20:52.350115 #2888] INFO -- app: Creates file 'PeopleWS.rb'. I, [2005-07-30T22:20:52.421115 #2888] INFO -- app: End of app. (status: 0) 0% cat PeopleWS.rb require 'xsd/qname' # {http://people.epfl.ch/PeopleWS}WSgetProfiles class WSgetProfiles @@schema_type = "WSgetProfiles" @@schema_ns = "http://people.epfl.ch/PeopleWS" @@schema_element = [["scipersList", ["SOAP::SOAPString", XSD::QName.new(nil, "ScipersList")]]] def ScipersList @scipersList end def ScipersList=(value) @scipersList = value end def initialize(scipersList = nil) @scipersList = scipersList end end [snip] Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) iD8DBQFC64Dif6b33ts2dPkRArARAJ9j/lex2amL++81J4+IqvL8FlrgHgCfdTjb GLw8n9CE46vt1TtCGmJkGQY= =PK8T -----END PGP SIGNATURE-----