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 6731775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:34:08+00:00 2026-05-26T10:34:08+00:00

I am consuming webservices with Savon and the WSDL comes with 2 bindings. How

  • 0

I am consuming webservices with Savon and the WSDL comes with 2 bindings. How do I specify which binding to use in Savon? One of them is http and the other one is https. I am trying to use the https service.

The information on wsdl

<wsdl:service name="ExampleService">
  <wsdl:port name="ES" binding="tns:ES">
    <soap:address location="http://example.com/service.svc"/>
  </wsdl:port>
  <wsdl:port name="ES1" binding="tns:ES1">
    <soap:address location="https://example.com/service.svc"/>
  </wsdl:port>
</wsdl:service>

How do i use ES1? The code I am using now with savon is

require 'savon'
require 'httpclient'
wsdl = "https://example.com/Messages.wsdl"
driver = Savon::Client.new(wsdl)
response = driver.request "someAction"

When I am using soap4r, I can choose the binding using the following code:

require 'httpclient'
require 'soap/wsdlDriver'
wsdl = "https://example.com/Messages.wsdl"
soap_client = SOAP::WSDLDriverFactory.new(wsdl)
driver = soap_client.create_rpc_driver('ExampleService','ES1')
  • 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-05-26T10:34:08+00:00Added an answer on May 26, 2026 at 10:34 am

    You should be able to overwrite the endpoint when creating a Savon::Client instance:

    client = Savon::Client.new do
      wsdl.document = "https://example.com/Messages.wsdl"
      wsdl.endpoint = "https://example.com/service.svc"
    end
    
    response = client.request "someAction"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any one provide me code for consuming webservices via SOAP in java? Actually
We are consuming web services. We use wsdl.exe to generate the client proxy. How
Right now i am consuming two webservices by the method SOAP on android.The way
I have a Windows form application that's consuming web services over https and is
Now I'm trying to display the result of consuming a webservice from one page
When consuming a .NET WCF webservice I get the following response (error): Unsupported HTTP
I have web services built with ASP.NET and ASP.NET clients consuming them. When consuming
I am consuming one webservice, while consuming there can different types expception might occur
I am consuming a webservice and one of the methods takes a String parameter.
    I'm fairly new to consuming webservices using SSL channel. After fairly good search I

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.