Important alert: (current site time 7/15/2013 7:45:44 AM EDT)
 

winzip icon

[ A SIMPLE ] webmethod tutorial

Email
Submitted on: 3/8/2004 6:23:55 PM
By: lonetron 
Level: Advanced
User Rating: By 5 Users
Compatibility: VB.NET, ASP.NET
Views: 50299
author picture
(About the author)
 
     Why publish an n API to the Internet? Much like a web page, when you make an API public to the Internet, you are indiscriminately authorizing and inviting anyone on the planet to use your web method. This does not necessarily mean you grantee how long your API will be available or how well it will work, just that you have chosen to make it public at the moment. Search engines use this sort of technology to encourage people to automate use of their searching services, AI Chatbot communities such as the P2B (Person to Bot) Consortium use public API for allowing people to create, train and deploy AI chatbots from anywhere to anywhere in the world, Comic book venders use public APIs to allow anonymous business partners to market their comic books. In short, public APIs make anonymous B2B (Business to Business) relationships more feasible. Not all .net web methods are used for public APIs, for example, some .net web methods require passwords or use WSSecurity to limit who can use them. Although non-public API’s often use .net web methods, they are outside the scope of this article. How to publish an API to the Internet? The internet has a central repository of web methods called “Planet API” and can be reached at http://www.PlanetAPI.com/ Planet API allows you to suggest an .net web service for review. The web service is posted for review and users anonymously test and comment your public API. Should TANU sentinel determine that your public API is not useful to the public, then it is removed. Otherwise it is made available for other organizations to utilize. It is important to properly document your .net web methods before submitting them to Planet API. Document each web method with only the information that is absolutely necessary for most users to understand what the web method is for. This can usually be done in 8 - 20 words per method. If you have more questions about Planet API then you can ask on the Planet API website or ask in the Chatbot! Cyber Community.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 9 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

5/12/2004 3:22:56 PM

i don't know about this vb.net .so how to learn this one .i want basically.so which book is best and where can i find,but i want learn in online is very best . so can u give the best idea
(If this comment was disrespectful, please report it.)

 
7/9/2004 9:17:28 AM

how about 3rd grade

(If this comment was disrespectful, please report it.)

 
4/29/2005 11:25:15 PM

Ur code has good
(If this comment was disrespectful, please report it.)

 
9/7/2005 3:31:21 AMdsoftnet

Learnt how we can send own xml structure, but one question that when I call web service method, why I am getting XmlNode in my program, where as from service I am sending as XmlDocument?

Must be some idea behind it, can you share ?

Amit
(If this comment was disrespectful, please report it.)

 
2/21/2006 5:14:45 AMsuthan

Hai....
I am trying to send HTML mail but i was unabel to send I am usin ASP.NET we are finding CDO.ERROR Message
say some solution
(If this comment was disrespectful, please report it.)

 
1/22/2007 3:15:55 AMsteve

nice !!!
(If this comment was disrespectful, please report it.)

 
4/23/2007 10:59:17 AMdiwaker

it's gud
(If this comment was disrespectful, please report it.)

 
5/21/2007 3:06:29 AMsip

i want to lesson vb.net 2003

please tell me
tanks
(If this comment was disrespectful, please report it.)

 
4/28/2013 4:13:16 AMkeyvan

ok
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.