hii,
i want to implement a webservices in my website . how can i implement it what its procedure ? can any1 help me out?
some references ?
Thanx in advances..!!
Regards,
Altaf ....
[email protected]
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 29, 2010, 9:29 PM EDT
for creating a webservice add and webservice file from add new item.. its having the extension .asmx
when you open it The first line of the file will look like This line will instruct the compiler to run on Web Service mode and the name of the C# class. We also need to access the Web Service namespace. It is also a good practice to add a reference to the System namespace.
The SecurityWebService class should inherit the functionality of the Web Services class. Therefore, we put the following line of code:
When you specify the Method attribute "WebMethod" then it becomes public for all.
now you can view your service in broswer...
You can call the Web Service directly using the HTTP GET method.The syntax for directly calling the Web Service using HTTP GET is
http://server/webServiceName.asmx/functionName?parameter=parameterValue
Add a discovery file now. Web Service discovery is the process of locating and interrogating Web Service descriptions, which is a preliminary step for accessing a Web Service.
It is not compulsory to create a discovery file for each Web Service. Here is a sample discovery file for our securities Web Service.
Name is sample.disco and save it to the same directory as the Web Service.
Now Deploying the Web Services from development to staging or production is very simple. Similar to ASP.NET applications, just copy the .ASMX file and the .DISCO files to the appropriate directories, and you are in business.
Please mark "Do you like this post" if it helps you.