EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Webservice connection

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#14621
Posted: 09/30/2010 01:30:55
by Madhan Malai (Basic support level)
Joined: 09/23/2010
Posts: 4

Hi
I am using delphi 7, download evaluation version of secureblack box and how to call web service interface using TElHTTPSClient component in secure black box or any other component and
i am having wsdl file also. Pls tell me how to attach valid certificate and how to create valid certificate from server & client side.

This is my sample code
Code
  HTTPClient := TElHTTPSClient.Create(nil);
  TSPClient := TElHTTPTSPClient.Create(nil);
  Cert := TElX509Certificate.Create(nil);
  TSPClient.HttpClient := HTTPClient;
  TSPClient.URL := 'https://vpmsample:8449/Demo/services/MainService;
  HTTPClient.SSLEnabled := true;

  TSPClient.HashAlgorithm := SB_ALGORITHM_DGST_SHA1;
  Cert := TElX509Certificate.Create(nil);
  F := TFileStream.Create('D:\sampleService\client.cer', fmOpenRead or fmShareDenyWrite);
  Cert.LoadFromStream(F);
  FCertStorage := TElMemoryCertStorage.Create(nil);
  FCertStorage.Add(Cert,true);
  HTTPClient.CertStorage := FCertStorage;

  try
    HTTPClient.Open;
  except
    on e: exception do
    begin
          showmessage(e.message);
    end;
  end;


Note : i am getting error as 'connection failed due to error(73729)'
#14622
Posted: 09/30/2010 02:34:30
by Eugene Mayevski (EldoS Corp.)

The code you have written makes no sense. TElHTTPTSPClient is a timestamping protocol client, it's not related to HTTP/HTTPS in any way. Please see samples in <SecureBlackbox>\Samples folder for example of how to use HTTP client component.

About certificates:

when you connect using HTTPS, the server sends it's certificate which you have to validate in OnCertificateValidate (see samples again). IF (and only if) you need to authenticate on the server using certificate, you need to use OnCertificateNeededEx event or set ClientCertStorage property (see samples). The certificate for client-side authentication is usually provided by server administrators, so you don't need to create your own certificates.


Sincerely yours
Eugene Mayevski
#31609
Posted: 12/08/2014 08:04:37
by NGOKO TRESOR (Standard support level)
Joined: 10/31/2013
Posts: 6

Hello Team, it's been long.

Please, one of our providers sent a soap wsdl file for us to setup and consume. the site need https. We have no TElHTTPSClient webservice sample in the release we purchase last year same period. Please, can you help us? we have just today to approve the connectivity.

They sent: wsdl, certificate to intall.


Thank you in advance.
#31610
Posted: 12/08/2014 08:44:18
by Eugene Mayevski (EldoS Corp.)

1. Your license includes free upgrade to SecureBlackbox 12. We have updated our records and information on our web site. You will find your new license key and downloads in My Control Center ( https://www.eldos.com/cc/ ).

2. Your license covers only HTTPS and SSL. There exist two options for you:
a) use some SOAP client component that can work via pluggable transport (Delphi's Built-in THTTPRIO can't do this). I can recommend RemObjects SDK
b) use the SOAP client included with SecureBlackbox 12, but for this you need a license for XMLBlackbox package of SecureBlackbox *in addition* to the license you have.


On a side note, your question is not related to the topic. In future you are welcome to post questions as new one rather than answer to old topics.


Sincerely yours
Eugene Mayevski
#31611
Posted: 12/08/2014 08:53:04
by NGOKO TRESOR (Standard support level)
Joined: 10/31/2013
Posts: 6

Okay.

So how much doi have to pay additionnally?

BR
#31612
Posted: 12/08/2014 09:12:40
by Eugene Mayevski (EldoS Corp.)

You are welcome to test all the functionality you need first. The evaluation version on https://www.eldos.com/sbb/download-release.php includes a trial key which you can use for testing.

For SOAP functionality you would need XMLBlackbox package. The price depends on different licensing options. You can calculate the price and buy the license online on https://www.eldos.com/sbb/calc.php

But before purchasing a license please do perform the test to ensure that the components offer what you need.


Sincerely yours
Eugene Mayevski
#31614
Posted: 12/08/2014 09:49:07
by NGOKO TRESOR (Standard support level)
Joined: 10/31/2013
Posts: 6

Okay thanks,

Please can you give me exactly what i have to pay for the XML... additional functionality. i can use the calculator, i have no references on what i paid.. just make it simple.

Also, the wsdl is SOAP plus https, hope there is an adequate sample in the new release for that.


Thanks in advance.
#31615
Posted: 12/08/2014 09:54:10
by Eugene Mayevski (EldoS Corp.)

With ordering questions let's continue in HelpDesk ( https://www.eldos.com/helpdesk/ ) please. I have created a new support ticket based on your above message. You will see your (and only your) support tickets by following this URL. You will also get e-mail notifications about updates related to your support ticket.


Sincerely yours
Eugene Mayevski
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 2279 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!