different soap:address in WS with cliente OpenEdge 10

Posted by Admin on 01-Jun-2007 15:16

Hi, i need to connect to a WSDL, but the server has a soap:address different its URL.

the WSDL is:

'http://myserver.shf.org/WebService/services/Prosavi2007?wsdl'

PROBLEM IS the soap:address is not the same:

'http://otherserver.shf.org/WebService/services/Prosavi2007?wsdl'

my program.p is next

/define vars/

DEFINE VARIABLE hWebService AS HANDLE NO-UNDO.

DEFINE VARIABLE hProsavi2007 AS HANDLE NO-UNDO.

DEFINE VARIABLE consSubsidiosVivReturn AS CHARACTER NO-UNDO.

/define FUNCTION CALL/

FUNCTION consSubsidiosViv RETURNS CHARACTER(INPUT in0 AS CHARACTER, INPUT in1 AS CHARACTER, INPUT in2 AS CHARACTER) IN hProsavi2007.

CREATE SERVER hWebService.

/*conect to WS */

hWebService:CONNECT("-WSDL 'http://myserver.shf.org/WebService/services/Prosavi2007?wsdl'").

IF NOT hWebService:CONNECTED() THEN MESSAGE "not conected".

/port/

RUN Prosavi2007 SET hProsavi2007 ON hWebService.

/RUN function/

consSubsidiosVivReturn = consSubsidiosViv('usr','pwd',"xml in").

All Replies

This thread is closed