About this task
To run the sample: Once you have imported the sample,
run the sample using the TestClient.jsp:
What to do next
There are two ways to view the policy sets associated
with the web service and client:
- Within the jwsAddressBookRSPEAR/META-INF two files are created: clientPolicyAttachements.xml and policyAttachements.xml.
By opening these in the default editor you can view the quality of
service settings for the client and service respectively.
- Under the JAX-WS web services node in the Services view, the client
and service should be listed. By right-clicking and selecting Manage
Policy Set Attachment you can view or modify the policy
sets.
To run the sample using a non-default port: If
you want to route the web service traffic through the non-default
port such as the TCP/IP Monitor, you will need to change the sample
default endpoint to match the port number of the monitor.
- You can determine the default port WebSphere Application
Server is using in the WebSphere administrative console:
- Launch the WebSphere Application Server Admin Console
by right-clicking your server in the Servers view and selecting Run
administrative console.
- Expand Servers in the left pane, and select Application
servers.
- Select your server name from the list. By default this is server1.
- On the Configuration tab, search for the Communications heading
and expand Ports.
- The port used is WC_defaulthost.
- Run the TestClient.jsp. Select jwsAddressBookRSPClient/WebContent/sampleAddressBookPortProxy/TestClient.jsp,
right-click and select . Ensure that the WebSphere Application Server v8.5 profile
is selected and that the jwsAddressBookRSPEAR is added to the server.
- In the Quality of Service pane of the JSP, change the port number
in the endpoint field, and click Update
Note: Selecting Bypass JAXB and use XML payloads will
replace the JAXB bindings view of the TestClient.jsp methods with
the raw SOAP message. If you want use this function you need manually
enter the required SOAP body entries for input. This is useful when
the generated client is unable to deal with all the methods included
in the web service, but is unnecessary for the address book sample.