Easy Web Services
Creating a Web API
Issue: 10.1 (November/December 2011)
Article Description: No description available.
Article Length (in bytes): 5,099
Starting Page Number: 81
RBD Number: 10012
10012.zip Updated: Tuesday, November 1, 2011 at 12:44 PM
Related Web Link(s):
Known Limitations: None
Excerpt of article text...
This event allows your web application to handle specific URLs differently. These URL are ones that are within the path "/special". For example, when running locally, URLs that look like this would be handled by SpecialHandleURL:
There is only a single parameter to this event: Request As WebRequest which will contain everything you need to process the request.
This event is incredibly useful because it essentially allows you to use Real Studio Web Edition to make web services.
Simple Web Service
We will create a simple web service that will add two numbers and return the result as XML.
First, create a web application project. In App.SpecialhandleURL add this code:
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.