Saturday, May 03, 2008

I have created - for everyone who has sent me a class and a Web service URL - a web service that can be leveraged by the mobile device application for the project.

Some examples are

John's pricing service

Tom's Restaurant service

All the services provide basic CRUD functionality for each class ... create, read, update, delete ... and are based on my DataManagementService. John, for example, has three classes, thus he has quite a few more functions in his service than Tom. Depending on their business logic not all of the methods may be used.

It is important to note that every class has an ID property with which an object can be identified.

Creating all the "different" Web services, was quite easy. In Tom's case I just had to find "DataItem" in my code and replace it with "Restaurant" ...

If you want to see the code behind this take a look at the DataManagementService project in the code folder on the G-drive.

The data.xml files are stored at ../fpdb/data.xml . That means in the fpdb folder right below your personal folder on the Web server, as this folder has the needed write permissions. In case you do want to view your data.xml you need to setup a "network location" to your fpdb folder (in my case http://www.746.sba.uwm.edu/mhaines/fpdb) (see FAQ for instructions).

MH

Note: The generateDataFile method is used to create a data file if none exist. However, I did create one already for each Web service. If the generateDataFile method is used all existing data will be lost!

Technorati : ,

Powered by Zoundry

Search
Navigation
On this page....
Archives
<September 2008>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Aggregate Me!
RSS 2.0 | Atom 1.0 | CDF
Categories
Blogroll
Contact me
Send mail to the author(s) E-mail
Themes
Administration