ZiBaT => Peter Levinsky => Programming => exercise

SOAP
Create you own SOAP-service

Updated : 2016-09-13

Exercise: Create your own SOAP based web services

Mission:

To design and implement your own SOAP service.

Exercise A: create soap service

Create a soap service, which add, subtract, multiply and divide two integers or doubles.

steps:

  1. Create a WCF project (e.g. 'MyFirstSoap')
  2. Modify the IService interface to handle the four math operations
  3. Modify the Service1 class to implement this interface.
  4. Compile and run, this should starts up the WcfTestClient - otherwise start it manually.
  5. Check to see if it is working

Exercise B: Modify the soap service

Modify the Soap service to use your Math-library.

Exercise C: Division by Zero

What happen when you divide by zero at the consumer site?

Exercise : Testing the Soap service

When testing web services you can do it from two different views:

Make a component test of your service-class (by default named 'Service1').

Make a short integration test i.e. add your WSDL file to a service reference and test the call over the network are working.