WebSphere JAX-RPC Web service Claims SDO setup instructions

After you import the sample, if you want to run the sample code you need to create and configure a WebSphere® Application Server v6.x server and associate the sample with it using the following steps:
  1. From the File menu, select New > Other > Server > Server > Next.
  2. Select WebSphere v6.x Server as the server type, and click Next.
  3. Enter server1 as the server name, and click Finish.
  4. To see the server you have created in the workspace, from the Window menu select Show view > Other > Server > Servers > OK.
Once the server is set up you can import the sample and associate it with the server:
  1. To associate the sample with the server, right-click the server you created and select Add and Remove Projects. Select the ClaimServiceEAR and ClaimClientEAR from the Available projects list and click Add.
  2. You should be prompted to restart the server. If not, restart it manually by right-clicking it and clicking Start.
  3. To run the service, expand the WebContent folder of the ClaimClient project, right-click SubmitClaim.html and select Run As > Run on server.
  4. Enter any number as a policy number and click Submit. Ensure that the claim is echoed back.

If you want to change the target runtime on the project, right-click the project and select Properties. On the Targeted Runtimes page select the appropriate runtime.

Note: By default the SOAP address in the WSDL file is set to use port 9080. This can be seen by opening the WSDL file in the WebContent/WEB-INF/wsdl directory in the ClaimsClient project and searching for the entry in the source view:
<wsdlsoap:address location="http://localhost:9080/ClaimService/services/ClaimPort"/>
If the WebSphere Application Server is on port other than 9080, you will need to update the WSDL files in the WebContent/WEB-INF/wsdl directories for both the ClaimClient and ClaimService project to reflect the correct port for the server. You can determine which port WebSphere Application Server is using in the WebSphere administrative console.
Parent topic: WebSphere JAX-RPC Web services claims SDO sample

Feedback