How do I use Indy 9 Components with Delphi 5 to send & receive SOAP message using SSL

Posted on 2008-11-05
Last Modified: 2013-11-18
I am trying to send and receive a SOAP message using Delphi 5 and Indy 9 Components using

The article posted at:

works fine for sending & receiving SOAP without using SSL, e.g. to a http:// URL.  But I don't know
how to modify this so that it works with SSL. I am using the Indy 9 components. It appears from
the source code of Indy 9 that it supports SSL.  I am  new to this topic. I don't need to use
cookies; I just need to send a SOAP message to a web service and get a SOAP message in
return, like the TSimpleSoap.Invoke on the above web page.  Simply changing FTCPClient.Port := 80; to Port:=443 didn't do the job.

Any help you can provide would be GREATLY appreciated!
Question by:Onionsinger
    LVL 15

    Expert Comment

    Ciuly has some SSL examples on his webpages, maybe these will help.

    Author Comment

    His examples look too complicated for me. I only need to send a SOAP message and retrieve a reply from the same web service. Perhaps embedded within his examples is that one piece, but I don't know where to find it within all of that code and have it work.

    Accepted Solution

    I ended up having someone else write a simple program to read a file from the hard drive, send it via SSL, store the response as a file to the hard drive, which I then read into my program. It is not elegant but it works. No one came up with a solution for me.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now