Web Services
CC-P01 intermediate
Practical 1: Cross-platform currency conversion service with Java and .NET clients
Build an INR → USD SOAP service with a configurable exchange rate, validation and request logging, then call it from a Java client (wsimport stubs) and a .NET 8 client (WCF service reference) – one service, two platforms.
What you'll do
- Read a configurable exchange rate from a properties file
- Validate input and log requests/responses
- Deploy a SOAP service on Tomcat and read its WSDL
- Generate and use a Java client with wsimport
- Consume the same service from a .NET client
Lab tasks
- 1 Read the rate from currency.properties and log each call
- 2 Run the service on Tomcat
- 3 Inspect the WSDL
- 4 Generate the Java client with wsimport
- 5 Call the service from Java
- 6 Add a service reference to the .NET client
- 7 Call the service from .NET
- 8 Change the exchange rate without touching code