Interoperability of Using JAX-WS Client to Invoke Service
This example illustrates the interoperability of using JAX-WS client to invoke service exposed on TIBCO ActiveMatrix BusinessWorks™.
Copy the jaxws_sample.wsdl from TIBCO_HOME\bw\n.n\samples\binding\soap\http\JAXWSInterop to the directory specified for “CONCRETE_WSDL_LOCATION_URL” property.
- Procedure
- In the samples directory, select and double-click tibco.bw.sample.binding.soap.http.JAXWSInterop. For more information, see Accessing Samples.
- In the Project Explorer, expand tibco.bw.sample.binding.soap.http.JAXWSInterop project.
- Fully expand the Processes directory and double-click Client.bwp.
- Place the jaxws_sample.wsdl at the location of Module Property value “CONCRETE_WSDL_LOCATION_URL”.
- Click .
- At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the checkbox next to tibco.bw.sample.binding.soap.http. JAXWSInterop.application.
- Click
Debug.
This runs the sample in Debug mode.
- In
TIBCO Business Studio™ for BusinessWorks™, click the
Terminate
icon to stop the process.
Response for : Sending JAX-WS client request...
Understanding the Configuration
The sample consists of two processes:
- tibco.bw.sample.binding.soap.http.jaxwsinterop.Client
- tibco.bw.sample.binding.soap.http.jaxwsinterop.ServerProcess
Service process exposes an operation to accept an input string and returns string as part of response.
Client process uses a concrete WSDL generated from service to send a request with input parameters and then writes the response to file.
Client process uses a Java Invoke activity that passes the concrete WSDL location to the Java invoke (tibco.bw.sample.binding.soap.http.jaxwsinterop.Client.java) , and JAX-WS client code sets value ("Sending JAX-WS client request...") as input and then sends the request.