At my company I am told that I need to setup a web service with an 'xsd' file I will be receiving tomorrow morning. I have a visual studio.net 2010 professional version development software to work with and I have experience using C# 2010.
Since I have not setup a web service before, I am wondering how to setup the web service from scratch? All I want to do is have the web service that only works with the *.xsd file.
Thus can you tell me and/or point me to a reference on how to setup this web service?
Thank you for your response! I have the additional questions to ask:
1. Are you saying that I should generate the class from the link you suggested above, to see if it generates a class that contains a method that contains an webmethod attribute? If not, can you explain?
2. What directory path would I point the xsd tool you are saying to run to generate the class?
3. Just to start a web service from the start, can you tell me how to setup the project intially? Does setting up a web service have a shell template? For example if I want to set up a web form application, there is a template that I can use to setup the
'basic' required format. If there is such a template, can you tell me how to refer to the template?
wendy elizab...
Member
321 Points
390 Posts
set up first web service
Aug 15, 2012 12:36 AM|LINK
At my company I am told that I need to setup a web service with an 'xsd' file I will be receiving tomorrow morning. I have a visual studio.net 2010 professional version development software to work with and I have experience using C# 2010.
Since I have not setup a web service before, I am wondering how to setup the web service from scratch? All I want to do is have the web service that only works with the *.xsd file.
Thus can you tell me and/or point me to a reference on how to setup this web service?
ignatandrei
All-Star
134527 Points
21579 Posts
Moderator
MVP
Re: set up first web service
Aug 15, 2012 03:02 AM|LINK
from xsd you generate a class
http://msdn.microsoft.com/en-us/library/5s2x1sy7.aspx
Then see if the class is the webservice definition.
wendy elizab...
Member
321 Points
390 Posts
Re: set up first web service
Aug 15, 2012 03:53 AM|LINK
Thank you for your response! I have the additional questions to ask:
1. Are you saying that I should generate the class from the link you suggested above, to see if it generates a class that contains a method that contains an webmethod attribute? If not, can you explain?
2. What directory path would I point the xsd tool you are saying to run to generate the class?
3. Just to start a web service from the start, can you tell me how to setup the project intially? Does setting up a web service have a shell template? For example if I want to set up a web form application, there is a template that I can use to setup the 'basic' required format. If there is such a template, can you tell me how to refer to the template?
ignatandrei
All-Star
134527 Points
21579 Posts
Moderator
MVP
Re: set up first web service
Aug 15, 2012 07:57 PM|LINK
1. yes. However, the attribute you should put
2. to the file that will be provided to you .See tutorial
3. http://support.microsoft.com/kb/308359