saeed
1
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.
saeed
2
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
saeed
3
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…
saeed
4
On Tue, Jul 13, 2010 at 6:55 AM, Saeed B.
[email protected]wrote:
p client.wsdl.soap_actions doesn’t return anything…
It doesn’t look like there are any SOAP actions in your WSDL
saeed
5
Tony A. wrote:
On Tue, Jul 13, 2010 at 6:55 AM, Saeed B.
[email protected]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…