[mapguide-internals] MapGuide RESTful Web Service
Haris Kurtagic
haris at sl-king.com
Thu Sep 6 02:36:06 EDT 2007
I haven't done anything yet with Apache Mod but I believe it shouldn't
be a problem.
Part of code which is ISAPI depended is small and simple so my guess
would be that it should be ok.
I implemented ISAPI extension as a pool of working threads and using
http keep-alive connection.
I think it could be improved perfomance also for standard mapagent
requests ( I haven't really tested for perfomance improvements ).
Haris
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Robert
Bray
Sent: Thursday, September 06, 2007 5:26 AM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] MapGuide RESTful Web Service
Harris,
This is totally cool. I can't wait to experiment with it. You say below
it is built as an ISAPI extension, would it be possible at some point to
also package it as an Apache Mod?
Bob
Haris Kurtagic wrote:
> Yes, you are right. I have designed couple of those URI (very simillar
> to one you described) and I am playing with adding new Maps, Layers.
>
> 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: Wednesday, September 05, 2007 7:25 PM
> To: MapGuide Internals Mail List
> Subject: RE: [mapguide-internals] MapGuide RESTful Web Service
>
>
> It strikes me that REST would be a great addition to repository (not
> just session) management too. All of the resources are accessible by
> pseudo-URL already (Library://). I'm not sure how you would deal with
> things like resource data / config documents though...
>
> Imagine going to http://localhost/rest/library and getting:
>
> <ul>
> <li><a href="TestData" class="Folder">TestData</a></li>
> <li><a href="Nanaimo" class="Folder">Nanaimo</a></li>
> <li><a href="Samples" class="Folder">Samples</a></li>
> <li><a href="RasterTest.FeatureSource"
> class="FeatureSource">RasterTest</a></li>
> <li><a href="RasterTest.LayerDefinition"
> class="LayerDefinition">RasterTest</a></li>
> </ul>
>
> Or going to http://localhost/rest/library.js and getting
>
> { features: [
> { "type": "Folder", name="TestData",
> uri="http://localhost/rest/library/TestData" },
> { "type": "Folder", name="Nanaimo",
> uri="http://localhost/rest/library/Nanaimo" },
> { "type": "Folder", name="Samples",
> uri="http://localhost/rest/library/Samples" },
> { "type": "FeatureSource", name="RasterTest",
> uri="http://localhost/rest/library/RasterTest.FeatureSource" },
> { "type": "LayerDefinition", name="RasterTest",
> uri="http://localhost/rest/library/RasterTest.LayerDefinition" }
> ]
> }
>
> Or going to http://localhost/rest/library.xml and getting the default
> EnumerateResources output.
>
> The beauty of this is that not only could the directory listings be
> returned in multiple representations, but so could the actual
resources.
> The JSON work with the MapAgent is defining some standard XML-to-JSON
> mapping that could be used for JSON representations of the XML
> resources. I don't think it's worth reformatting the output to be
more
> JSON-like, as the effort required to manage two semantically different
> representations would be excessive.
>
> Jason
>
> -----Original Message-----
> From: Haris Kurtagic
> Subject: [mapguide-internals] MapGuide RESTful Web Service
>
> My colleague Simon Pelicon and I are working on adding a Web Service
> functionality to Map Guide Open Source.
>
> We are trying to implement it as RESTful Web Service.
> _______________________________________________
> 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