Home > ASP.NET, Visual Studio > Generating SOAP proxy class from wsdl and xsd files

Generating SOAP proxy class from wsdl and xsd files

Although JSON notation is getting popular, there are times where all you have are wsdl and xsd files.

In order to generate a useful proxy class so that you can use it in your C# code, Visual Studio packs a useful utility adeptly named wsdl

Usage scenario:

wsdl webservice.wsdl webservice.xsd /out:MyWebService.cs

Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 4.0.30319.33440]
Copyright (C) Microsoft Corporation. All rights reserved.
Writing file ‘MyWebService.cs’.

Once the SOAP file is generated, just goto your project and add the cs file to your project

Advertisements
Categories: ASP.NET, Visual Studio
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: