ruby create web service client with php nusoap??

W

winson

dear all:
i will use ruby soap client to connect php nusoap server,but can't
get response data ,can't help me
thank

wsdl url:
http://www.winson.idv.tw/mytest/nusoap/demo.php?wsdl

ruby wsdl client:
require 'soap/wsdlDriver'
factory =
SOAP::WSDLDriverFactory.new("http://www.winson.idv.tw/mytest/nusoap/demo.php?wsdl")
soap = factory.create_rpc_driver
soap.wiredump_file_base = "log_file"
@soapResponse =
soap.getBook("query","books","12345","0010354952","product","books_data")
soap.reset_stream

result data:
<Method></Method><Item></Item><Respon
ResponseMessage>
: Data Type Error (SOAP::FaultError)

xml loger file (log_file_getBook_request.xml):
all value is nil?

<?xml version="1.0" encoding="utf-8" ?>
- <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <env:Body>
- <n1:getBook xmlns:n1="urn:booksWSDL"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<Method xsi:nil="true" />
<LoginID xsi:nil="true" />
<Password xsi:nil="true" />
<Item xsi:nil="true" />
<Data xsi:nil="true" />
<Category xsi:nil="true" />
</n1:getBook>
</env:Body>
</env:Envelope>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top