Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Consuming a SOAP Service using Savon Gem

Reply
Thread Tools

Consuming a SOAP Service using Savon Gem

 
 
Saeed Bhuta
Guest
Posts: n/a
 
      07-13-2010
Hi,

I am trying to consume a SOAP service using the Savon gem but having
difficulty.

My code:

"require 'rubygems'
require 'savon'

# Client instance with a WSDL endpoint
client = Savon::Client.new
"http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx"

p client.wsdl.namespace_uri

p client.wsdl.soap_actions

response = client.get_arrival_board"

The error I am getting:

"D, [2010-07-13T11:38:58.967684 #3909] DEBUG -- : Retrieving WSDL from:
http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx
"http://thalesgroup.com/RTTI/2008-02-20/ldb/"
[]
/home/abcb293/.gem/ruby/1.8/gems/savon-0.7.9/lib/savon/client.rb:92:in
`method_missing': undefined method `get_arrival_board' for
#<Savon::Client:0xb7597218> (NoMethodError)
from natrail.rb:11"

Appreciate any help.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Bruce Loving
Guest
Posts: n/a
 
      07-13-2010
check the results of the soap_actions
usually a misspelling of the action

> p client.wsdl.soap_actions
>
> response = client.get_arrival_board"
>
> `method_missing': undefined method `get_arrival_board' for

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

 
Reply With Quote
 
 
 
 
Saeed Bhuta
Guest
Posts: n/a
 
      07-13-2010
Bruce Loving wrote:
> check the results of the soap_actions
> usually a misspelling of the action
>
>> p client.wsdl.soap_actions
>>
>> response = client.get_arrival_board"
>>
>> `method_missing': undefined method `get_arrival_board' for


p client.wsdl.soap_actions doesn't return anything...
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Tony Arcieri
Guest
Posts: n/a
 
      07-13-2010
[Note: parts of this message were removed to make it a legal post.]

On Tue, Jul 13, 2010 at 6:55 AM, Saeed Bhuta <(E-Mail Removed)>wrote:

> p client.wsdl.soap_actions doesn't return anything...
>


It doesn't look like there are any SOAP actions in your WSDL

--
Tony Arcieri
Medioh! A Kudelski Brand

 
Reply With Quote
 
Saeed Bhuta
Guest
Posts: n/a
 
      07-13-2010
Tony Arcieri wrote:
> On Tue, Jul 13, 2010 at 6:55 AM, Saeed Bhuta
> <(E-Mail Removed)>wrote:
>
>> p client.wsdl.soap_actions doesn't return anything...
>>

>
> It doesn't look like there are any SOAP actions in your WSDL


Hmmm. However when I use soapUI, it seems to find the actions from the
WSDL without any problems...
--
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
can't connect to BPEL web service from cucumber using savon Moon Chy Ruby 1 02-25-2011 05:15 PM
sample programm using savon to connect toms-exchange ? Dani Dani Ruby 0 07-27-2010 11:53 AM
Need help using Savon gem! (SOAP) ghettoiam Ruby 0 05-11-2010 04:49 AM
SOAP Header in a Dot Net 2.0 Web Service Client Consuming a WCF 3.0 service. Curt K ASP .Net Web Services 3 06-15-2007 10:19 PM
Consuming an ASP .NET Web Service using the MS SOAP Toolkit v3.0 Tony C ASP .Net Web Services 2 07-20-2003 03:27 AM



Advertisments