unwire / handsoap

Handsoap is a library for creating SOAP clients in Ruby
http://github.com/unwire/handsoap
225 stars 58 forks source link

Getting action input parameters #29

Closed AlexeyKrasnoperov closed 4 years ago

AlexeyKrasnoperov commented 11 years ago

Hello.

I'm using handsoap gem for SOAP interactions and I want to get list of input params for a selected action.

For example, action showExample is defined below:

...
<xs:schema xmlns:ax232="..." xmlns:ax234="..." attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="...">
...
<xs:element name="showExample">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="UserField1" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="UserField2" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="UserField3" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
...
</xs:schema>
...
</wsdl:types>

How can I get ['UserField1', 'UserField2', 'UserField3'] automatically for any action I specify?

Regards, Alex.