M
Mario Ruiz
Hi, I'm newbie sorry
I'm testing a web service, loginCustomer but I don't know why always
returns... failed to login user. This is my code:
require "soap/wsdlDriver"
WSDL_URL = "http://myserver/WS/services/Access?wsdl"
service = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver
service.generate_explicit_type = true
service.wiredump_dev = STDOUT if $DEBUG
query="
<soapenv:Envelope
xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:ser='http://myserver.com/WS/services'>
<soapenv:Header/>
<soapenv:Body>
<ser:loginCustomer>
<ser:loginMethodDTO>
<ser:loginName>myUser</ser:loginName>
<serassword>myPwd</serassword>
</ser:loginMethodDTO>
</ser:loginCustomer>
</soapenv:Body>
</soapenv:Envelope>
"
result = service.loginCustomer(query)
The xml is working on another client I'm using so this is not the
problem.
Thanks in advance.
I'm testing a web service, loginCustomer but I don't know why always
returns... failed to login user. This is my code:
require "soap/wsdlDriver"
WSDL_URL = "http://myserver/WS/services/Access?wsdl"
service = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver
service.generate_explicit_type = true
service.wiredump_dev = STDOUT if $DEBUG
query="
<soapenv:Envelope
xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:ser='http://myserver.com/WS/services'>
<soapenv:Header/>
<soapenv:Body>
<ser:loginCustomer>
<ser:loginMethodDTO>
<ser:loginName>myUser</ser:loginName>
<serassword>myPwd</serassword>
</ser:loginMethodDTO>
</ser:loginCustomer>
</soapenv:Body>
</soapenv:Envelope>
"
result = service.loginCustomer(query)
The xml is working on another client I'm using so this is not the
problem.
Thanks in advance.