Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8213431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:06:56+00:00 2026-06-07T11:06:56+00:00

As discussed elsewhere the SOAP::RPC::Driver which was available in Ruby 1.8 has been removed

  • 0

As discussed elsewhere the SOAP::RPC::Driver which was available in Ruby 1.8 has been removed in Ruby 1.9. People suggested using the Savon gem, but I can’t find any tutorials on how to convert existing code, specifically for endpoints for which there is no WSDL available.

For example, with SOAP::RPC::Driver we could write:

require 'soap/rpc/driver'
client = SOAP::RPC::Driver.new 'http://example.com/endpoint', 'MY_NAMESPACE'

Add methods (since in my case I have no WSDL available):

client.add_method 'MyMethod', 'Arg1', 'Arg2'

And then call them:

response = client.MyMethod arg_one arg_two

I don’t see how to add methods like this with Savon.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:06:59+00:00Added an answer on June 7, 2026 at 11:06 am

    When not using a WSDL one must set up wsdl explicitly (I find this a little counter-intuitive, but it works):

    require 'savon'
    client = Savon::Client.new do
        wsdl.endpoint = 'http://example.com/endpoint'
        wsdl.namespace = 'MY_NAMESPACE'; 
    end
    

    I don’t believe there is an equivalent to add_method in Savon, but you should then be able to make a request thus:

    response = client.request 'MyMethod' do
      soap.body = { 'Arg1' => arg_one' }
    end
    

    However when I did this I received the following error:

    Savon::SOAP::Fault: (SOAP-ENV:Client) SOAPAction shall match 'uri#method' if present 
    

    I was able to work around this by explicitly setting SOAPAction:

    response = client.request 'MyMethod', soap_action: '#MyMethod' do ...
    

    Finally I got this error:

    Savon::SOAP::Fault: (SOAP-ENV:Client) Denied access to method (MyMethod) in class (main) at /usr/lib/perl5/site_perl/5.8.8/SOAP/Lite.pm line 2128.
    

    This seems to be because the given wsdl.namespace isn’t passed as expected with the request. I was able to resolve this by explicitly setting it in both soap_action and xmlns:

    response = client.request 'MyMethod', soap_action: 'MY_NAMESPACE#MyMethod', xmlns: 'MY_NAMESPACE'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Morning all. I can see this has been discussed elsewhere but was wondering if
I know that this error has been discussed elsewhere on the web, and this
I know this topic has been discussed but I think it has some differences.
I know this has been discussed earlier but I couldn't find a satisfactory answer.
I understand this has been discussed before but since this post in late 2010
while it has been discussed many times, to close the database resources in shortest
This question has been discussed in two blog posts ( http://dow.ngra.de/2008/10/27/when-systemcurrenttimemillis-is-too-slow/ , http://dow.ngra.de/2008/10/28/what-do-we-really-know-about-non-blocking-concurrency-in-java/ ),
This topic has been discussed million times before, but let me clarify my needs:
This has been discussed in a few threads - but none gave any real
Although topic has been discussed here before, but the proposed solutions don't seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.