From: Tony Arcieri Date: 2010-07-07T02:59:05+09:00 Subject: Re: Consuming a SOAP Service in Ruby. --000e0cd170d22eee3d048abbcc02 Content-Type: text/plain; charset=ISO-8859-1 I've had lots and lots of problems with soap4r in the past and would most certainly not recommend it. Try Savon instead: http://github.com/rubiii/savon On Tue, Jul 6, 2010 at 5:39 AM, Saeed Bhuta wrote: > Hi, > > I am trying to consume a SOAP service. I don't know a lot about this > area but from what I have read, I have come up with the following code > so far; > > require 'soap/wsdlDriver' > > wsdl="http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx" > > driverFactory = SOAP::WSDLDriverFactory.new(wsdl) > > p '>>>>>>>>here' > service = driverFactory.create_rpc_driver > > board=service.GetDepartureBoard(4, 'ALN', '', '') > > However I am getting the following error; > "ignored element: {http://www.w3.org/2001/XMLSchema}maxLength of > WSDL::XMLSchema::SimpleRestriction > ignored element: {http://www.w3.org/2001/XMLSchema}maxLength of > WSDL::XMLSchema::SimpleRestriction > ignored attr: {}default > /usr/lib/ruby/1.8/wsdl/import.rb:44:in `parse_attr': undefined method > `targetnamespace=' for # > (NoMethodError)" > > I'm assuming the error is related to the namespace? > > Would sincerely appreciate it if someone could point me in the right > direction. > > Saeed > -- > Posted via http://www.ruby-forum.com/. > > -- Tony Arcieri Medioh! A Kudelski Brand --000e0cd170d22eee3d048abbcc02--