fran
fran

Reputation: 437

.net webservice, help with method parameters

When writing a .net webservice, can I use a existing xsd to be my parameters for my web service method. I want to point to the xsd and the web method will be created for me, instead of coding it. I am using vs 2005, framework 2.0. Thanks

Upvotes: 0

Views: 196

Answers (2)

pierroz
pierroz

Reputation: 7880

you can use xsd.exe to generate a class file from your xsd schema
http://msdn.microsoft.com/fr-fr/library/x6c1kb0s(VS.80).aspx

Upvotes: 0

veggerby
veggerby

Reputation: 9020

See this link http://msdn.microsoft.com/en-us/magazine/cc163800.aspx for more info on contract first development in .net web services.

The bottom line is it is possible but often requires more work and care than code first...

Upvotes: 1

Related Questions