Soap4r method not allowed

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” 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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs