Forum: Ruby SOAP simple and complex types

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2fecc866661cbee492706805e2b1c08e?d=identicon&s=25 Andrew Nisbet (anisbet)
on 2009-03-04 18:35
I am hoping someone can point me in the right direction here. I am
trying to put together a soap client that has some pretty complex
messaging structures, and I have run into a problem with how to pass
data that isn't a native type(int,string,etc)

here is a sample of what the XML should look like

    <!--element name=TRANS-NUM type=unit:RPC-trans minOccurs=1
maxOccurs=1 -->
        <!--simpleType name=RPC-trans base=xsd:unsignedInt -->
        <TRANS-NUM>XX</TRANS-NUM>

if I try to pass the value to the a method like this

arguments = {"TRANS-NUM" =>rpc_trans}
parameters = {"args" => arguments}
puts obj.method(parameters)


I get <TRANS-NUM xsi:nil="true"></TRANS-NUM>    I looked through all of
the files generated by wsdl2ruby.rb, and I don't see that any RPC-trans
or TRANS-NUM classes
were generated, so I am unsure how to make this work.  Does anyone have
any ideas?

Thanks
This topic is locked and can not be replied to.