Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to create a Asp.net Web service Appplication dynamically from code page.
any suggestion.

Scenerio:

i want to create a Asp.net Web service Appplication using c# code . Suppose we have a Another appplication in asp.net and we have a button on a page and on click of that button i have to create a Asp.net Web service Project and then deploy it to server.
Posted
Updated 28-May-12 20:35pm
v2
Comments
Sandeep Mewara 29-May-12 2:02am    
Not clear. What do you mean by dynamically from code page? Elaborate.
raju sharma 122 29-May-12 2:34am    
i want to create a Asp.net Web service Appplication using c# code .
Suppose we have a Another appplication in asp.net and we have a button on a page and on click of that button i have to create a Asp.net Web service Project and then deploy it to server.
db7uk 29-May-12 4:01am    
What are you trying to accomplish by doing this? There are many issues regarding what you want to do from setting up the hosting of the new service to compilation of the code. Are you sure you need to dynamically create a service?
raju sharma 122 29-May-12 5:23am    
Yes i have to create a Asp.net Web service Appplication using c# code.

1 solution

Hi,

First of all you have to make a web service from vs 2008 as create new project like WCF application.
If you have no knowledge how to make web service than please visit many links avilable in www.codeproject.com for biginner of web service
After that you can use that web service on your current whatever project on click or any event of .net.

Regards,
Saurabh
 
Share this answer
 
Comments
raju sharma 122 1-Jun-12 3:30am    
actually i do not have to create web project through c#.net -> new project.
what i have to do is to create web service project through another project by c# code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900