How to generate this SOAP xml request?


I trigger the SOAP calls like:

factory ='https://blahblah', "urn:services:m33")
factory.add_method('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:

      <registrationData href="#id0"/>

    <multiRef id="id0" soapenc:root="0" ...
      <eventEnum href="#id1"/>
      <time href="#id2"/>
      <UTC href="#id3"/>
      <password xsi:type="xsd:string">
      <number href="#id4"/>
      <valid href="#id5"/>

    <multiRef id="id5" soapenc:root="0" ... xsi:type="xsd:boolean">

    <multiRef id="id3" soapenc:root="0" ...>

    ... rest of multiRefs


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.



I'm checking from:

I'm sure the info is in front of my eyes but...


Hi, I guess this can be ignored. I found out that the best way to do
this is not by generating the soap request manually but leave that work
to wsdl2ruby.

I followed this: and
I'm already making a SOAP call to the method I intended.