# Ruby create web service client with php nusoap?

**URL:** <https://www.ruby-forum.com/t/ruby-create-web-service-client-with-php-nusoap/85656>\
**Category:** Ruby\
**Created:** [February 15, 2007, 9:23am UTC](https://www.ruby-forum.com/t/ruby-create-web-service-client-with-php-nusoap/85656 "2007-02-15T09:23:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![winson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/4af34b/32.png) [@winson](https://www.ruby-forum.com/u/winson)\
**Post date:** [February 15, 2007, 9:23am UTC](https://www.ruby-forum.com/t/ruby-create-web-service-client-with-php-nusoap/85656/1 "2007-02-15T09:23:28Z")

</div>

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](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](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:  
  
: 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](http://www.w3.org/2001/XMLSchema)”  
xmlns:env=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”\>
- env:Body
- \<n1:getBook xmlns:n1=“urn:booksWSDL”  
env:encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)”\>  
  
  
  
  
  
  
\</n1:getBook\>  
\</env:Body\>  
\</env:Envelope\>
