title: Ruby web service
body: <p>I am new to Ruby. I am having trouble passing the parameters to a web method.</p>
  
  <pre><code>factory = SOAP::WSDLDriverFactory.new('https://api.affili.net/V2.0/Logon.svc?wsdl')
  driver = factory.create_rpc_driver
  
  driver.Logon(...)
  </code></pre>
  
  <p>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. </p>
  
  <p>The WSDL for the log on is </p>
  
  <pre><code>&lt;xsd:complexType name="Logon"&gt;
       &lt;xsd:sequence&gt;
       &lt;xsd:element minOccurs="0" name="Username" nillable="true" type="xsd:string"/&gt;
       &lt;xsd:element minOccurs="0" name="Password" nillable="true" type="xsd:string"/&gt;
       &lt;xsd:element name="WebServiceType" type="tns:WebServiceTypes"/&gt;
       &lt;xsd:element minOccurs="0" name="DeveloperSettings" nillable="true"          type="tns:TokenDeveloperDetails"/&gt;
    &lt;xsd:element minOccurs="0" name="ApplicationSettings" nillable="true" type="tns:TokenApplicationDetails"/&gt;
  &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;
    &lt;xsd:element name="Logon" nillable="true" type="tns:Logon"/&gt;
  </code></pre>
  
  <p>How can I pass the params to the Logon method?</p>
  
  <p>Thank you</p>