Try OpenEdge Now
skip to main content
Web Services
Creating ABL Clients to Consume OpenEdge SOAP Web Services : Connecting to OpenEdge SOAP Web Services from ABL : Binding to a Web service : Binding to a server object handle : Invoking the binding
 
Invoking the binding
The following example shows binding an actual Web service using service and port:

Binding a Web service in ABL using service and port

DEFINE VARIABLE hServer AS HANDLE.
DEFINE VARIABLE lReturn AS LOGICAL.
CREATE SERVER hServer.
lReturn = hServer:CONNECT("-WSDL http://wstraining.progress.com/wsa/wsa1/
                           wsdl?targetURI=urn:OpenEdgeServices:NewCoService
                           -Service NewCoServiceService
                           -Port NewCoServiceObj").
The following example shows what binding a Web service using binding and SOAP endpoint might look like:

Binding a Web service in ABL using binding and SOAP endpoint

DEFINE VARIABLE hServer AS HANDLE.
DEFINE VARIABLE lReturn AS LOGICAL.
CREATE SERVER hServer.
lReturn = hServer:CONNECT("-WSDL http://ws.acme.com/ws/AcmeCoService.wsdl
               -Binding InventoryBinding
               -SOAPEndpoint http://ws.acme.com:80/soap/servlet/rpcrouter").