Forum: Ruby soap4r and WSDL

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wouter d. (Guest)
on 2009-05-14 23:18
Attachment: Payment.wsdl (0 Bytes)
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?


Wouter d. (Guest)
on 2009-05-15 15:12
Ah, got it.. After require 'soap4r' it works!
This topic is locked and can not be replied to.