# Soap4r method not allowed

**URL:** <https://www.ruby-forum.com/t/soap4r-method-not-allowed/193567>\
**Category:** Ruby\
**Created:** [August 19, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/soap4r-method-not-allowed/193567 "2010-08-19T19:48:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christoforever](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/6de8d8/32.png) [@christoforever](https://www.ruby-forum.com/u/christoforever)\
**Post date:** [August 19, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/soap4r-method-not-allowed/193567/1 "2010-08-19T19:48:09Z")

</div>

I’m a noob when it comes to soap so forgive me if the solution is  
completely obvious: I’m trying to implement a basic soap call like so

```
namespace = 'country.asmx?WSDL'
url = 'http://www.webservicex.net/'

begin
   driver = SOAP::RPC::Driver.new(url,namespace)
   driver.add_method('GetCurrencies')
   puts driver.GetCurrencies
rescue => err
   puts err.message
end

```

but whenever I run it I get: " 405:method not allowed " the wsdl is as  
follows:

```
<wsdl:operation name="GetCurrencies">
  <soap:operation

```

soapAction=“[http://www.webserviceX.NET/GetCurrencies](http://www.webserviceX.NET/GetCurrencies)” style=“document”  
/\>  
wsdl:input  
\<soap:body use=“literal” /\>  
\</wsdl:input\>  
wsdl:output  
\<soap:body use=“literal” /\>  
\</wsdl:output\>  
\</wsdl:operation\>

Someone let me know what I’m doing wrong. Please understand I’ve not  
done anything soap related before.

---

<div class="post-metadata">

**Author:** ![christoforever](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/6de8d8/32.png) [@christoforever](https://www.ruby-forum.com/u/christoforever)\
**Post date:** [August 19, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/soap4r-method-not-allowed/193567/2 "2010-08-19T23:05:32Z")

</div>

On Fri, Aug 20, 2010 at 02:48:25AM +0900, Christopher Dancy wrote:

> Someone let me know what I’m doing wrong. Please understand  
> I’ve not done anything soap related before.

soap4r only does WSDL 1.1 and doesn’t do 2.0 IIRC…

Not sure if it’s the culprit but I’ve run into this  
last year.
