Try OpenEdge Now
skip to main content
Web Services
Creating ABL Clients to Consume OpenEdge SOAP Web Services : Creating an ABL Client from WSDL : Basics of an ABL client to consume Web services
 

Basics of an ABL client to consume Web services

You have obtained, by one of the methods described in Distributing your WSDL file, the WSDL file for the Web service that your ABL client will consume. You run the WSDL Analyzer on the file and get pages of sample ABL code. The samples cover all the necessary steps to consume the Web service.
As shown in Consuming SOAP Web service example, an ABL client does the following to consume a Web service:
1. Connects an ABL server object to the Web service using the CONNECT( ) method, specifying the location of the WSDL file for run-time access and the name of a port type on the server.
2. Creates a procedure object and associates it with the Web service using the RUN...SET syntax.
3. Invokes a Web service operation using the RUN...IN syntax, passing in any necessary parameters.
4. Handles any errors or return values.
5. Deletes the procedure object using DELETE PROCEDURE when it is no longer needed.
6. Unbinds the Web service from the ABL server object using the DISCONNECT( ) method when all processing is complete.
7. Deletes the ABL server object using DELETE OBJECT when it is no longer needed.
See the OpenEdge Development: ABL Reference guide for more information on the methods and statements listed above.
You can find sample code to cover this process in the WSDL Analyzer's output. The connection details Figure 12 and operation details Figure 13 sections of the Port type page provide most of these code samples.