savon

Why is "wsdl" namespace interjected into action name when using savon for ruby soap communication?

I'm trying to access a SOAP service i don't control. One of the actions is called ProcessMessage. I follow example and generate a SOAP request, but I get an error back saying that the action doesn't exist. I traced the problem to the way the body of the envelope is generated. <env:Envelope ... "> <env:Header> <wsse:Security...

Is there wsdl to ruby proxy code generators for savon or handsoap gems?

Based on their design philosophy, it sounds like they want gem users to hand code ruby proxy classes. I still feel that they could have provided generators. Any suggestions on how to generate maintainable ruby proxy classes for savon or handsoap? ...

How do I get the error code and description from a Savon::SOAPFault?

I can see in the Savon log that my SOAP faults contain XML like this: <errorCode>666</errorCode><errorDescription>some evil error</errorDescription> Does anyone know how to parse the error code and description out of the response? Sorry if this is a stupid question, but I've tried everything, and I haven't been able to find any docume...

(soap:Server) Server was unable to process request. ---> String reference not set to an instance of a String. Parameter name: s

I am using savon to consume an API. Below are lines from my code. wSDL = "some_wsdl" client = Savon::Client.new(wSDL) response = client.soap_action do |soap| soap.body = "<sample>string_value</sample>" , "<sample1>string_value</sample1>" end I am getting an error (title) and below is the application trace. Btw, my wsdl is i...

Talking with a SOAP service using Savon gem in Ruby

I'm trying to communicate with a soap service and I know that I should send a SOAP Envelope like this: POST /webpay_test/SveaWebPay.asmx HTTP/1.1 Host: webservices.sveaekonomi.se Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://webservices.sveaekonomi.se/webpay/CreateOrder" <?xml version="1.0" encoding...

Consuming a SOAP service in Ruby using Savon gem.

Hi, I am trying to consume a SOAP service using the Savon gem but having difficulty. I have accessed the SOAP service using soapUI and it works fine. 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.namespa...

How to pass Array as parameter to SOAP in Ruby

Currently I'm using Savon to work with WebService in ruby. It works pretty well but I have difficulty to pass parameter for argument of SOAP array type. Following code doesn't work properly: ids = [0,1,2] client.do_get_items { |soap| soap.body = { 'item-list' => ids } I would appreciate if you can solve my problem or propose an al...

Successfully calling a WCF Service from Ruby? Anyone?

I'm trying to integrate a rails application with a WCF service. I've tried soap4r and Savon with no love at all. As far as I can tell, none of the Ruby libraries support the newest version of SOAP. The error that I was getting was: Cannot process the message because the content type 'text/xml;charset=UTF-8' was not the expecte...

How to use objects with xsi:types in Savon

I'm trying to use Savon to make some SOAP requests, but I'm afraid I need to go beyond the basics somewhat. I need to send something along the lines of: <env:Body> <wsdl:methodName> <parameter xsi:type='ValueClass'>value</parameter> </wsdl:methodName> </env:Body> Now, if I didn't have to specify that xsi:type, it would be a s...