Soap4r and WSDL


Hi all!

I’m trying to use a web service of my payment provider by making SOAP
calls to their server. I’m using the WSDL that is attached to this post
(couldn’t add urls though

For some reason I can’t seem to call the provided services. I always get
the error “nil not allowed: currency” when trying to call a method that
doesn’t even has currency (or Amount) as a parameter. Maybe I’m doing
something very wrong here, but I can’t seem to figure out how to get
this thing working.

The latest thing I came up with was:

    wsdl =
    soap = @wsdl.create_rpc_driver
    soap.options["protocol.http.basic_auth"] << [WSDL, USER_ID,


    result = soap.cancel(:cancel => {
                                :modificationRequest => {
                                    :merchantAccount => 'myAccount',
                                    :originalReference =>


Anyone got an idea?




Ah, got it… After require ‘soap4r’ it works!