Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > soap4r and WSDL

Reply
Thread Tools

soap4r and WSDL

 
 
Wouter de Bie
Guest
Posts: n/a
 
      05-14-2009
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 ruby-forum.com)

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::WSDLDriverFactory.new(WSDL)
soap = @wsdl.create_rpc_driver
soap.options["protocol.http.basic_auth"] << [WSDL, USER_ID,
PASSWORD]

result = soap.cancel(:cancel => {
:modificationRequest => {
:merchantAccount => 'myAccount',
riginalReference =>
'8343424242056'
}
})

Anyone got an idea?

Thanks!

Wouter

Attachments:
http://www.ruby-forum.com/attachment/3686/Payment.wsdl

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Wouter de Bie
Guest
Posts: n/a
 
      05-15-2009
Ah, got it.. After require 'soap4r' it works!
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
soap4r and capitalized wsdl:part names Ian Neubert Ruby 1 12-08-2010 08:09 PM
Soap4r and wsdl Michael Gebhart Ruby 1 05-11-2005 08:59 PM
SOAP4R WSDL response Jim Menard Ruby 1 05-29-2004 10:14 PM
SOAP4R and WSDL Ian Macdonald Ruby 8 01-19-2004 02:15 AM
WSDL parse failure (ruby 1.8.1-preview2, soap4r-1_5_1) Brian Marick Ruby 1 11-07-2003 01:42 AM



Advertisments