Using WSAViewer with an ABL client
- Last Updated: June 1, 2021
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
To use WSAViewer with an ABL client, you have two options:
- Change the connection parameters in your Web service
CONNECT( )method to send all SOAP messages to WSAViewer. WSAViewer then forwards them to the actual Web service. - Startup the ABL client using the
-proxyhostand-proxyportstartup parameters to redirect the SOAP messages to WSAViewer. Specify-proxyhostusing the host name where the viewer is running (typicallylocalhost), and specify-proxyportusing the port on which WSAViewer listens for SOAP request messages (the listen-port value specified for WSAViewer as shown in the following syntax).
The syntax to start the viewer is the same when working with any Web service as it is when working with the OpenEdge Web Services Adapter (WSA):
Syntax
|
The listen-port is the port on which WSAViewer listens for SOAP request messages. The webservice-host is the host name of the Web service and the webservice-port is the host port on which the Web service listens for SOAP request messages.
Suppose you enter the following command line to start the viewer to listen
on localhost at port 8080 and pass SOAP request messages to
the Web service, www.stockvend.com, listening on port
80:
|
You might code your OpenEdge Web service CONNECT( ) method like this:
|
The CONNECT( ) method still gets the WSDL
file directly from www.stockvend.com, but all SOAP messages
go through WSAViewer on their way to the Web service and back to the client.