soap4r

Ruby Soap4R Web Service, .NET Consumer

Does anyone know how to generate WSDL from a Web Service in Ruby using Soap4R. I have a fairly simple Web Service (SOAP::RPC::StandaloneServer) and would like to consume from .NET . Thanks ...

Mongrel cluster and multi-applications problem

Hi, we're running in this issue. We're using a web service (using soap4r) to run some kind of searches and the problem appears when the webservice server is down and our aplication is trying to connect to it. At that point the application is unreachable, and all the customers are blocked. What can we do to avoid that? Is possibile to ...

How do I add a name.value to the header when generating a soap message from ruby with soap4r

I've created a driver from wsdl When I invoke my request, I would like the header to contain an element, i.e, I want to see something like the following: REPLACE_WITH_ACTUAL blah blah blah However, looking around, everyone talks about subclassing SOAP::Header::SimpleHandler and then injecting an instance into t...

Ruby/Rails and Sharepoint Web Services

I'm trying to consume Sharepoint webservices with ruby. I've basically given up trying to authenticate with NTLM and temporarily changed the Sharepoint server to use basic authentication. I've been successful getting a WSDL using soap4r but still cannot authenticate when attempting to use an actual web service call. Has anyone had any...

soap4r custom headers

I've been working with soap4r and trying to use the SOAP::Header::SimpleHandler, I'm trying to get it to put a custom header on the outgoing message, but I can't work out how to get it to include attributes rather than as subelements: class ServiceContext < SOAP::Header::SimpleHandler NAMESPACE = "http://context.core.datamodel.fs....

Connecting to Bing Maps SDK from a Rails app

I am attempting to connect to Bing Maps SDK through a RoR application. My goal is to calculate driving distance between two locations after geocoding them. I am new to SOAP and ROR so I may be making a simple mistake. Two days of Googling (Binging?) and I'm coming up short. Here is what I am doing: Environment Ruby 1.8.7 on Windo...

Generate XML with soap4r without invoking the web service?

I have set up a soap4r client for a web service, and it's working fairly well. We're using it to send data from one database to another (don't bother asking about that... I know it's not optimal), but we're not entirely sure the mapping is correct, so it's often very handy to get the XML that a particular record would generate. Of cour...

Exact Target integration with Ruby examples?

Anyone used Ruby or Rails to integrate with Exact Target's API or have a good example of using WSSE with SOAP4r? ...

Confused about soap4r custom headers

I am trying to set up a web service to Celltrust's SMS Gateway. I have their SDK and I'm trying to use soap4r to create the custom headers that it needs. I'm not sure exactly what I need to do to get it in their format, since they don't provide me with an actual XML document showing what they need; all they say is that in the header yo...

Passing a blank XSD::QName using soap4r

I have overridden the SimpleHandler to pass a username and password using soap4r. the problem is that I am forced to give a QName, and this is causing the result to fail because it's not in the right format. What soap4r is adding is something like this (the "ns1" things are dummy values): <env:Header> <n1:ns1 env:mustUnderstand="0" ...

Thread lockup in ruby with Soap4r

This is related to a question I asked here: http://stackoverflow.com/questions/1569651/thread-locking-in-ruby-use-of-soap4r-and-qt However it is particular to one part of that question and is supported by a simpler example. The test code is: require 'rubygems' require 'thread' require 'soap/rpc/standaloneserver' class SOAPServer < SO...

Accessing SOAP Service with soap4r not able to access contents of returned objects.

So I need to access this service from my rails app. I'm using soap4r to read the WSDL and dynamically generate methods for accessing the service. From what I've read, I should be able to chain methods to access the nested XML nodes, but I can't get it to work. I tried using the wsdl2ruby command and read through the generated code. ...

'SSL not supported' when calling https web service in Ruby

I am trying to run the following code to call a webservice from ruby but get an error 'SSL not supported'. I have httpclient 2.1.5.2 installed. require 'soap/wsdlDriver' def validate_certificate(is_ok, ctx) cert = ctx.current_cert unless (cert.subject.to_s == cert.issuer.to_s) #check the server certificate only is_ok &&= File...

How do I pass objects to RPC style web services when working with soap4r at runtime?

I am creating a proxy for a soap web service at runtime using soap4r. proxy = SOAP::WSDLDriverFactory.new("http://www.example.com/endpoint?wsdl).create_rpc_driver How do I execute a rpc with a object parameter? Any examples would be very helpful. Thanks. ...

Soap4r : the requested address is not valid in the its context.

Hello. I was wondering if somebody has seen this error before? C:/Ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.5.2/lib/httpclient/session.rb:675:in `initialize': The requested address is not valid in its context. - connect(2) (://:0) (Errno::EADDRNOTAVAIL) from C:/Ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.5.2/lib/httpclient/se...

Having issue while using soap4r, unable to add namespace, encoding style to soap envelope.

Hi, I am having problems with one of the soap service I'm using. I am using soap4r for consuming the soap service. But somehow they are expecting something else than what I am sending. This is what I'm sending:<?xml version="1.0" encoding="utf-8" ?> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas....

Rails : soap4r - Error while running wsdl2ruby.rb

when I execute Mathieu$ /Users/Mathieu/.gem/ruby/1.8/bin/wsdl2ruby.rb path --wsdl https://www.arello.com/webservice/verify.cfc?wsdl --type client --force I get at depth 0 - 20: unable to get local issuer certificate F, [2010-05-06T10:41:11.040288 #35933] FATAL -- app: Detected an exception. Stopping ... SSL_connect returned=1 errno=0...

How to use SSL Web Services in a Rails application

Hi, I having a hard time to consume this webservice https://www.arello.com/webservice/verify.cfc?wsdl in my rails application. I successfully generated the ruby files with the wsdl2ruby.rb but when un run the generated script I get the following error: at depth 0 - 20: unable to get local issuer certificate OpenSSL::SSL::SSLError: SSL_...

Debugging SOAP4R wsdl2ruby

I'm trying to use wsdl2ruby and it's bombing, I want to give API author feedback. They're not Ruby developers, so I want to give more info than just the backtrace. Any advice on how I can determine what in the WSDL is blowing up this command? wsdl2ruby.rb --force --classdef --mapping_registry --client_skelton --driver --module_path In...

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...