ZiBaT => Peter Levinsky => Programming => exercise

SOAP
Create you own SOAP-service
- part2

Updated : 2016-09-13

Exercise: Create your own SOAP based web services - Part 2

Mission:

To design and implement your own SOAP service using your own defined classes.

Precondition:

The exercise Create you own SOAP-service

Exercise A: create soap service

Create a soap service, which handles students (crud).

steps:

  1. Create a WCF project OR cloud -> Azure Cloud service -> WCF-role
  2. Modify the IService interface to handle operations on students i.e. AddStudent, FindStudent(from e.g. name), RemoveStudent, EditStudent, GetAllStudents
  3. Create a class Student in the interface and use it in the signature for the above methods
  4. Modify the Service1 class to implement this interface.
    Consider how to hold a collection of students at the provider site.
  5. Compile and run, this should starts up the WcfTestClient - otherwise start it manually.
  6. Check to see if it is working

Exercise B: Create a Consumer in C# to use these WebServices (SOAP-services)

Create a simple console application to consumer this soap service.

Exercise C: Test the WebServices (SOAP-services)

Exercise D: Refactor the WebServices (SOAP-services) to use a component for implementation

Refactor your soap service to use a library as a component (chose either 'class library' i.e. totally plain library OR a WCF-library (look at the wcf-projects)).

Refactor to define your class 'Student' in this library in stead of a part of the interface.

Test your refactored service.

 

 

.