FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SOAP and TSocket
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
SOAP and TSocket
Posted: Mon Mar 18, 2013 03:47 PM

I have used the FWH TSocket class to communicate through the cloud. it works very well.

I noticed on this forum a SOAP discussion using the TOLEAuto():New( "MSXML2.XmlHttp" ) method to create a connection.

is the TOLEAuto required for processing SOAP transactions, or, can the TSocket class accomplish the same thing?

Don Lowenstein
www.laapc.com
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Re: SOAP and TSocket
Posted: Mon Mar 18, 2013 05:09 PM

further discussion question:

TSocket() class opens a IP Address/Port address.

My server has an HTTPS address (URL)

can TSocket() be used to open a connection between my program and a server based on URL in a similar fashion I use TSocket today with an IP / Port address?

Don Lowenstein
www.laapc.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: SOAP and TSocket
Posted: Mon Mar 18, 2013 10:58 PM

Don,

To connect to a HTTPS address you should better use hbcurl.lib like we do in the Twitter implementation:

viewtopic.php?p=139845#p139845

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Re: SOAP and TSocket
Posted: Tue Mar 19, 2013 02:48 AM

where can I find documentation on the sample programs using hbcurl libraries? I don't understand spanish so I could not follow the post.

essentially, I need the exact functionality of tsocket class.

  1. create socket
  2. connect through address to IP and port ( can I connect to http address )
  3. send message
  4. read reply
  5. close socket.

the difference to me is the connection address. can the socket classes connect to https address, or only static IP addresses?

or, will the hbcurl libraries give me the same functionality i'm looking for?

thanks for your attention to this question.

Don Lowenstein
www.laapc.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: SOAP and TSocket
Posted: Tue Mar 19, 2013 02:50 AM

Don,
The english version is here viewtopic.php?f=3&t=25637

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion