I am new to Ruby. I am having trouble passing the parameters to a web method.
factory = SOAP::WSDLDriverFactory.new('https://api.affili.net/V2.0/Logon.svc?wsdl')
driver = factory.create_rpc_driver
driver.Logon(...)
How can I pass in the required parameters? I have tried passing in an array, but the paramters are made nil, I tried creating a class for the paramters .. but the same problems occur.
The WSDL for the log on is
<xsd:complexType name="Logon">
<xsd:sequence>
<xsd:element minOccurs="0" name="Username" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="Password" nillable="true" type="xsd:string"/>
<xsd:element name="WebServiceType" type="tns:WebServiceTypes"/>
<xsd:element minOccurs="0" name="DeveloperSettings" nillable="true" type="tns:TokenDeveloperDetails"/>
<xsd:element minOccurs="0" name="ApplicationSettings" nillable="true" type="tns:TokenApplicationDetails"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Logon" nillable="true" type="tns:Logon"/>
How can I pass the params to the Logon method?
Thank you