Hi,
I trigger the SOAP calls like:
factory = SOAP::RPC::Driver.new(‘https://blahblah’, “urn:services:m33”)
factory.add_method(‘register’, ‘registrationData’)
factory.register(registrationData)
I’ve been able to call SOAP methods where several unique arguments are
given. But in the code above the object registrationData is supposed to
contain a registrationDataBean which is composed by other sub-items.
Any hints how that object should be created?
The resulting SOAP xml should be like:
soapenv:Envelope
soapenv:Body
ns1:register
</ns1:register>
<multiRef id="id0" soapenc:root="0" ...
xsi:type=“ns2:RegistrationInfoBean”>
password1
<multiRef id="id5" soapenc:root="0" ... xsi:type="xsd:boolean">
false
</multiRef>
<multiRef id="id3" soapenc:root="0" ...>
12345
</multiRef>
... rest of multiRefs
</soapenv:Body>
</soapenv:Envelope>
I think I could manually generate the required XML but I’d like to see
what is the correct way to avoid that manual work.
Thanks.