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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:14:58+00:00 2026-06-01T11:14:58+00:00

First a little background: I have already managed to connect to a Microsoft SOAP

  • 0

First a little background:

I have already managed to connect to a Microsoft SOAP web service using C#. To use this web service, I have to supply a username and a password in the C# code. I also have to install a security certificate (in .cer format) into the “Root Certificate Authorities” section of the system’s certificates. The service’s address is a secure “https://” address.

(By the way, the C# class I use to connect to the service was automatically generated for me with the command line tool “svcutil.exe https://address.of.service“)

Here is my question:

How can I connect to this web service using Ruby? I don’t know where to even begin. I don’t know where my .cer file, username and password should go exactly. Any ideas?

Further information:

Using these instructions for C#, I have been able to find out exactly what XML message is sent, and what XML message is received back. These XMLs are fairly straightforward, but “https://” never appears in them, even though the address of the web service is HTTPS. I’m not sure why that is. I suppose sending and receiving messages from a service is just a separate matter from actually connecting to the service.

  • 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-01T11:15:00+00:00Added an answer on June 1, 2026 at 11:15 am

    I can warmly recommend using Savon for dealing with SOAP in Ruby!

    I assume it is HTTP Basic authentication you are dealing with, in that case it should be pretty simple. Just:

    client = Savon::Client.new do
      http.auth.basic "user_name", "password"
    
      # Use a local wsdl
      wsdl.document = File.expand_path("../wsdl/ebay.xml", __FILE__)
      # or from internet
      wsdl.document = "http://service.example.com?wsdl"
    
      # to list SOAP actions
      client.wsdl.soap_actions
    end
    

    (this is just from my head so it might be a bit off)
    Read the link i posted and msg me if you can’t figure it out. 🙂

    The certificate file is used for your computer to accept the identity of the server you want to connect to. If you have installed it to your computer, I don’t think you have to do anything more on that part.

    EDIT

    If you can’t use the WSDL file you will have to build the xml by hand, this is pretty ugly, but possible if the is no other way. Nokogiri can be used to construct a xml document, then you can simply POST the xml document to the correct url. I have good experiences using httpi-ntlm to deal with authentication.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, a little background. I have two ASP.NET web applications that use SQLServer session
first, a little background. I am using VS2010 and have a WCF service that
First, a little background. I have a DataContext object (Linq to SQL). I use
First, a little background. I have strings that resemble the following: ((Foo.Bar.StartsWith(A)) && (Foo.Bar.EndsWith(B)))
First a little background, I'm using jdk 1.6. I've got a 2 column table
A little background first: I'm a designer/developer and decided to use subversion for a
First a little background about why I'm asking this question... I'm working on a
First I will give a little background info so this question isn't completely without
First, a little background : I have written a little application in python with
First a little background info: I have UIViewController that contains a UITableView. In the

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.