WSDL through ProxyServer

Louise

New Member
Hi,

I need to utilise a SOAP API via our Unix based systems. OpenEdge 10.1C04 with Webspeed.

I can connect to the Web Service from another environment, but our live system has a firewall and proxy server setup.

Instead of using a Java program I would like to utilise the Progress code this time to use the web service but can not work out how to get it to communicate via the proxy server.

In Java it can be done by using the URL class and specifying the proxy server and port as a parameter.
But how can it be done with the Progress methods?

DEFINE VARIABLE hWebService AS HANDLE NO-UNDO.
DEFINE VARIABLE hSmsGateway AS HANDLE NO-UNDO.
DEFINE VARIABLE ldisconnect as logical NO-UNDO.


CREATE SERVER hWebService.

hWebService:CONNECT("-WSDL 'http://www.directsms.com.au/info/api/SmsGateway-HTTPS.wsdl'").
RUN SmsGateway SET hSmsGateway ON hWebService.


DEFINE VARIABLE lcuser AS CHARACTER NO-UNDO.
DEFINE VARIABLE lcpassword AS CHARACTER NO-UNDO.
DEFINE VARIABLE connectReturn AS CHARACTER NO-UNDO.




lcuser = "xxx".
lcpassword = "xxxx".
/* Procedure invocation of connect operation. */
RUN connect IN hSmsGateway(INPUT lcuser, INPUT lcpassword , OUTPUT connectReturn).
display connectReturn.


Thank you

 
Top