Building a WS-I Basic Profile 1.1 compatible service
WS-I Basic Profile includes a series of service specifications for defining XML Web Services, which can interoperate with other heterogeneous service programming platforms.
In this recipe, we will demonstrate how to configure a WCF service to be compatible with the 1.1 version of WS-I Basic Profile.
Getting ready
It would be helpful if you can get some general understanding about the WS-I Basic Profile and its latest version. Here is the WS-I Basic Profile page on Wikipedia:
WS-I Basic Profile
How to do it...
The sample case here uses a WCF service containing some service operations that return different data objects (including primitive type and custom complex type). We will look at the steps to make the service become WS-I Basic Profile 1.1 compatible:
Define the
ServiceContract
.The first thing to do is define a standard request/reply pattern-based
ServiceContract
(see the following code snippet...