Akash Patel
Akash Patel

Reputation: 339

Client Code Generation from WSDL in .NET

I am posting my 1st question here so if i do any mistake then i do apologize. I want to generate a client code form the WSDL files. but i am very new to this so so some body can give me a bit more knowledge then it will be really appreciated.

Thanks.

Upvotes: 0

Views: 705

Answers (2)

Xaisoft
Xaisoft

Reputation: 46651

Use the svcutil assuming you are using wcf:

svcutil /language:[vb or cs] /out:[Name of Proxy.[cs or vb]] /config:[name of config file] [location of metadata]

Excample with just the wsdl location could be:

svcutil http://localhost/test.svc?wsdl

The above will generate a config file for you and client code for you to access to service.

Upvotes: 1

vcsjones
vcsjones

Reputation: 141678

Well, typically you would right click a project in Visual Studio, click "Add Service Reference", and give it a URL to the WSDL / Endpoint and bam; there it is. Is there something other than that you were thinking of?

Upvotes: 1

Related Questions