Step 1: Generate the client stub from your WS-Addressing stateful service
Use the fglwsdl tool as usual. It will detect that the service returns a W3CEndpointReference and generate the appropriate code.
The WSDL imports the WS-Addressing 1.0 schema, so the fglwsdl tool requires
access to the W3C server. Use the option -proxy
if you need to connect via a proxy
server.
For
example:
$ fglwsdl -o ws_stub http://localhost:8090/StatefulWSAddressingService?WSDL
The generated .inc file contains a variable of type tWSAGlobalEndpointType to be used to transmit the WS-Addressing 1.0 reference parameters.
Example of a global variable name
DEFINE StatefulWSAddressingService_StatefulWSAddressingServicePortTypeEndpoint
tGlobalWSAEndpointType