TCP/IP POST to HTTPS

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

TCP/IP POST to HTTPS

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:57 pm

by sam >> Thu, 9 Mar 2006 2:32:22 GMT

Hi all:

currently I want to post a request to a web server using https. I now can get response back. But the time is so long and sometimes can not get response back.

my program is:

create sslContext transient;
sslContext.methodType := JadeSSLContext.MethodSSLv3;

create oTCPConnection transient;
oTCPConnection.name := "webservices.sabre.com";
oTCPConnection.port := 443;
oTCPConnection.localPort := 55000;
oTCPConnection.sslContext := sslContext;
oTCPConnection.open();

if oTCPConnection.state = Connection.Connected then

oTCPConnection.writeBinary(sMessage.Binary);write sMessage; response := oTCPConnection.readBinary(2000).String;write response;
endif;
oTCPConnection.close();

any help will be appreciate.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: TCP/IP POST to HTTPS

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:57 pm

by Alan >> Fri, 10 Mar 2006 3:36:50 GMT

If they supply a WSDL for their Web Service, you may find it easier to import the WSDL as a Web Service Consumer and then let the Web Service Consumer framework take care of all the communications for you.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 34 guests