Wednesday 12 October 2011

step 5

Step 5: Now we successfully hosted the service in IIS. Next we have to consume this service in client application. Before creating the client application, we need to create the proxy for the service. This proxy is used by the client application, to interact with service. To create the proxy, run the Visual Studio 2008 command prompt. Using service utility we can create the proxy class and its configuration information.
svcutil  http://localhost/IISHostedService/MyService.svc
 
After executing this command we will find two file generated in the default location.
  • MyService.cs - Proxy class for the WCF service
  • output.config - Configuration information about the service.

No comments:

Post a Comment