G
Gabriel Policiuc
Hey,
I am having trouble calling a web service with ruby.
factory =
SOAP::WSDLDriverFactory.new('https://api.affili.net/V2.0/Logon.svc?wsdl')
driver = factory.create_rpc_driver
parameters = {
'Username' => '',
'Password' => '',
'WebServiceType' => 'Product',
'DeveloperSettings' => {'SandboxPublisherID' =>
0},
'ApplicationSettings' => {'ApplicationID' => 0,
'DeveloperID' => '1000' }
}
driver_logon.Logon(parameters)
I get the following ERROR : Unknown xml indentifier xml:lang
What should I do? .. I am checking now the driver options.. maybe.
Thanks a lot
-----------------------------------
The WSDL for the logon function
<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"/>
I am having trouble calling a web service with ruby.
factory =
SOAP::WSDLDriverFactory.new('https://api.affili.net/V2.0/Logon.svc?wsdl')
driver = factory.create_rpc_driver
parameters = {
'Username' => '',
'Password' => '',
'WebServiceType' => 'Product',
'DeveloperSettings' => {'SandboxPublisherID' =>
0},
'ApplicationSettings' => {'ApplicationID' => 0,
'DeveloperID' => '1000' }
}
driver_logon.Logon(parameters)
I get the following ERROR : Unknown xml indentifier xml:lang
What should I do? .. I am checking now the driver options.. maybe.
Thanks a lot
-----------------------------------
The WSDL for the logon function
<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"/>