Jade to external HTTPS site and back.

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Jade to external HTTPS site and back.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:48 pm

by Anonymous >> Wed, 3 Dec 2003 1:30:33 GMT

A Jade project (Jade 5.2) we are working on plans to connect to a remote website (non Jade) via HTTPS with signed certificates and pass the site XML packets. The site will process our packets and send back their own XML packets with the response. The whole mechanism will be asynchronous.

We are OK with the XML side of things, but the documentation on establishing connections and passing messages back and forth between systems is very disjointed. Are there any examples or some 'how to' documentation describing how best to set up all the Comms stuff ?

Regards,
Robin Mills
Southland Building Society

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

Re: Jade to external HTTPS site and back.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:48 pm

by Torrie >> Wed, 3 Dec 2003 10:28:59 GMT

We have imported the MS XML active X control and use code similar to the following. We don't use signed certificates but the works over https.


intHttpRequest( psURL,
psSendXml : String;
psResponseXml : String output ) updating;

vars
xmlHTTP : ServerXMLHTTP; // this is apparently threadsafe and should be used for server/server communication
strXMLResp : String;

begin
create xmlHTTP transient;
xmlHTTP.createAutomationObject;

// send the request
xmlHTTP.open( "POST", psURL, false, "", "" );
xmlHTTP.setRequestHeader( "Content-Type", "text/xml; charset=utf-8" ); xmlHTTP.send( psSendXml );

// get a response
psResponseXml := xmlHTTP.responseText;

epilog
delete xmlHTTP;
end;


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 6 guests

cron