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:

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").