# Wsdl binding not found in ruby but run in php

**URL:** <https://rubytalk.org/t/wsdl-binding-not-found-in-ruby-but-run-in-php/51791>\
**Category:** ruby-talk\
**Created:** [17 February 2009 19:46 UTC](https://rubytalk.org/t/wsdl-binding-not-found-in-ruby-but-run-in-php/51791 "2009-02-17T19:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Michelin\_s](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Alejandro\_Michelin\_s](https://rubytalk.org/u/Alejandro_Michelin_s)\
**Post date:** [17 February 2009 19:46 UTC](https://rubytalk.org/t/wsdl-binding-not-found-in-ruby-but-run-in-php/51791/1 "2009-02-17T19:46:40Z")

</div>

Hi :

I turn off apache auth to make some test with soap.

When i call the server ( the server is a php soap server) from php it  
return the spected value.

When i try to call the same server from ruby this is the error trow :

D:/ruby/lib/ruby/1.8/wsdl/port.rb:36:in `find\_binding':  
{}StockQuoteBinding not found (RuntimeError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:88:in `init\_driver'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:39:in  
`create\_rpc\_driver'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/projetos-ruby/soap/soap\_cliente1.rb:17

Code :  
soap = SOAP::WSDLDriverFactory.new( wsdl\_url );  
driver = soap.create\_rpc\_driver; #==\> This line gives the  
error  
driver.add\_rpc\_method( 'getQuote', 'symbol');  
puts driver.test(10);

The wsdl file is attached to this topic.

I verfy the wsdl file with a validator and is ok, and is working calling  
from php.

Have some ideas about what is happening?

Attachments:  
[http://www.ruby-forum.com/attachment/3309/teste.wsdl](http://www.ruby-forum.com/attachment/3309/teste.wsdl)

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
