Error While connecting Webservice

John

New Member
Hello Team,

Can anyone suggest what is causing error in my code below ? Thank You.

I am able to connect to webse rvice successfully using below code:

CREATE SERVER hWebService.
lResult = hWebService:CONNECT("-WSDL 'http://<server>:<port-number>/....../SampleService.serviceagent?wsdl'").

IF lResult = NO THEN MESSAGE "Failed " VIEW-AS ALERT-BOX.
ELSE MESSAGE "Connected Successfully" VIEW-AS ALERT-BOX.

But I am getting error while running procedure defined in WSDL:

Connection failure for host localhost port <port number> transport TCP. (9407)
Error sending Web Service Request: Fatal Error: connect operation failed (Connection refused) (11767)
Procedure complete. Press space bar to continue.


Below is the code written after "hWebService:CONNECT" statement:

/* Run the Port Type PortType (persistance procedure) */
RUN PortType SET hPortType ON hWebService.

/* Run internal procedure "SynceSampleSupplier" in the "PortType" persistant procedure.*/

RUN SynceSampleSup IN hPortType (INPUT SuppReq , OUTPUT SuppOutput ).

Regards
 
Top