Consume HTTPS webservice from 4GL code

kesi_2011

New Member
Hi, I have a need to consume a Java webservice that's https from ABL program. I have a general idea of importing the public key of the root CA into the %DLC/Certs for the https to work. However, in our current setup the webservices are secured by TAM/Webseal which requires the client to present a certificate (certificate based authentication). Does openedge support this concept ? I wonder if i procure a client certificate would the openedge Connect method be able to present this certificate on call out to webservice. If this is not supported, could some one please suggest any alternatives. Thanks
 
try simple: open the wsdl location with firefox and accept the certificate.
Go to the firefox preferences and save the certificate into a file.
Open a console on root/admin and type:
certutil -import [yourCertificate]
certutil -list
If the operation works, you have to only use the CONNECT method with https://
when consuming the webservice.

* note: the self-signet certificate not works in progress.

If dont works you have to use a external tool and manualy parse the result:
curl -H "Content-Type: application/wsdl+xml; charset=UTF-8;action=getSomething" ~\~n' +
' -H "SOAPAction: ~'getSomething~'" ~\~n' +
' -d @' + in_AE.xml + ' ~\~n' +
' -X POST ~\~n' +
' --cacert youCertificate ~\~n' +
' --cert-type PEM ~\~n' +
' --insecure ~\~n' +
' https://yoursite/ > ' + out_AE.xml.
 
Hi rstanciu, thanks for your quick response.
Your suggestion of using cURL, am assuming the cURL statement has to be run as a command line call from ABL procedure.
I have couple of questions:
1. The data input and output to cURL can it be serialized XML that can be stored in longchar variable.
2. How are the errors handled on a call like this ? any SOAP faults etc that would have normally be handled by websrvice client code in ABL.
3. Is it advisable to run the cURL in a c program for bettr handling and control and call the c program from ABL ?
I would appreciate if you can share a sample.

Thanks
 
Back
Top