Skip to content
VirtualLP Virtual Learning Platform
Web Services CC-P02 beginner

Practical 2: Develop, deploy and test a SOAP web service

Write a JAX-WS service with two operations, publish its WSDL on Tomcat, call it with SOAP request envelopes, provoke a SOAP fault with invalid input and verify the endpoint with curl.

What you'll do

  • Write a SOAP service with JAX-WS annotations
  • Publish it and read the generated WSDL
  • Send SOAP requests and read responses
  • Handle invalid parameters with SOAP faults
  • Check endpoint accessibility

Lab tasks

  1. 1 Implement the two operations
  2. 2 Publish the service on Tomcat
  3. 3 Open the WSDL
  4. 4 Invoke convertCurrency with 1000
  5. 5 Invoke getServiceStatus
  6. 6 Send invalid parameters
  7. 7 Check the endpoint from a terminal