[mapguide-internals] MapGuide RESTful Web Service prototype

Haris Kurtagic haris at sl-king.com
Sun Sep 16 06:26:57 EDT 2007


Hi,

I have put draft of things I am trying to do with MapGuide RESTful Web
Service. I have put this description on my web page
(www.sl-king.com/mgrest) but I think it would be better on wiki pages of
MapGuide ? If so then I would really appreciate some help with Wiki
pages, never done it before.
I hope I will get your suggestions how to proceed with MapGuide REST.

Here is a description:

RESTful Web Service for MapGuide or MgREST  is designed to support
MapGuide context management, rendering and feature services.
MgREST is following several principles: Addressability, Statelessness,
Connectedness 
MgREST response format is XML or JSON or JSONP. URI query parameters
supported are: _method, _callback, _format.
Query Parameter _method is used to override actual HTTP request method.
It is used in two cases: JSONP and  when server will not support DELETE,
PUT etc.
Query Parameter _callback is used to define name of java script for
JSONP and _format to define format of output ( XML or JSON ).
Used Resource Request's in a prototype viewer:
/Hello ; method: GET
/Session ; method: POST ; Request parameters: Username & Password
/Session[ID]/Map[ID]/Image.Png[Filter]; method: GET ; Resource: Image
/Session[ID]/Map[ID]/Image.Jpg[Filter]; method: GET ; Resource: Image
/Session[ID]/Map[ID]/Features[Filter]; method: GET ; Resource:
representation of features ( which are selected using Filter parameters)
/LayerDefinition[ID]/LegendIcon[ID]; method: GET ; Resource: Icon 
/StartWebLayout ; method: POST ; Parameters: Username & Password ;
Resource: Representation of Runtime WebLayout/Layer

ID represents unique identifier to access resource - in MapGuide usually
it means Resource Id or in case of LegendIcon it is more complex with
several properties.
Filter - are properties and their values which defines criteria to
return subset of resource 


Thanks,
Haris



-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason
Birch
Sent: Friday, September 14, 2007 5:20 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RESTful Web Service prototype

I don't suppose that you have the calls to the API documented?

If you can provide a link to download the isapi extension, that would be
cool.

I know that this is alpha, but thought I'd pass along a couple viewer
comments.  
In IE:

 - Legend updates don't seem to trigger a refresh immediately, the way
they do in FF
 - Selection throws an error

Jason

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Haris
Kurtagic
Sent: Friday, September 14, 2007 06:37
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RESTful Web Service prototype

Few more things:
- Our server has very limited output bandwidth so (I would encourage to
install it on your desktop and server)
- Works with IE 7 and Firefox 


Simon just told me that we made mistake when putting viewer on web, when
I made first post, now it should be ok.

Haris

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Haris
Kurtagic
Sent: Friday, September 14, 2007 3:11 PM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] MapGuide RESTful Web Service prototype

Hi,

 

Simon and I have build first protoype of MapGuide RESTful service.

You can get more info here www.sl-king.com/mgrest

 

Main Features:

*	Use MapGuide as RESTful service 
*	Run MapGuide viewer from desktop 
*	No need for web tier (php ,java ,net) 
*	Use simultaneously same Map in different views or use Maps from
different sites in one viewer
*	Add to existing MapGuide functionality - backward compatible
*	ISAPI extension with HTTP keep-alive connection implemented with
pool of worker threads

Download viewer from
http://www.sl-king.com/mgrest/download/MgRestViewer_0_1.rar

 

There is a viewer which is served from our web server
http://www.sl-king.com/mgrestviewer

but I will encourage you to download viewer ( html and js) and run it
from desktop.

 

 

Comments are very much welcomed.

 

Thanks,

Haris

_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list