[mapguide-users] ColdFusion and CFOBJECT and XML parsing
Robert Bray
robert.bray at autodesk.com
Tue May 9 00:16:27 EDT 2006
Scott,
In theory you can use either the CFOBJECT approach or the CFHTTP
approach with MapGuide, however I don't know anyone who has really
experimented much with either. According to this article,
http://www.adobe.com/devnet/coldfusion/articles/java.html, the CFOBJECT
approach can be used as follows:
<CFOBJECT action="Create" type="java" class=" org.osgeo.mapguide.MgMap"
name=" myMap">
<CFSET myMap.Open(resourceService, "Dublin Map")>
Before this will work the MapGuide Java APIs need to be accessible to
Cold Fusion. Unfortunately I am not a CF expert so I don't really know
how to do that, but I think I read something that indicated this could
be done via the CF Administrator application. Try searching the web for
more articles related to using Java objects with CF and I bet you can
make it work without too much trouble.
MapGuide also has a full CGI based interface (used exclusively by
Studio) that can be used with CFHTTP (similar to the way it is used
below with ArcXML); however the CGI API is not documented at this point
in time. Documenting it is on our list of things to do, but the Web API
and Developers Guide have higher priority at the moment.
Bob
_____
From: Andy Morsell [mailto:amorsell at spatialgis.com]
Sent: Monday, May 08, 2006 3:43 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] ColdFusion and CFOBJECT and XML parsing
Hi Scott,
Since it looks like nobody else is doing this yet, perhaps there is a
market for a 3rd party developer to create some ColdFusion "wrapper"
objects for the MapGuide Open Source API. I'm not quite sure how this
would be done, but since the entire app is open source, it should be
possible.
Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com
_____
From: Scott Hameister [mailto:scotth at mpower-tech.com]
Sent: Monday, May 08, 2006 2:25 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] ColdFusion and CFOBJECT and XML parsing
Anyone yet find a way to use coldfusions CFOBJECT or other method to
connect to the Mapguide yet (JAVA?)?
Can the map be hit in Coldfusion in a send and response XML way Like we
can do with ArcIMS???
Example:
<cfsavecontent variable="xmlrequest">
<ARCXML version="1.1">
<REQUEST>
<GET_FEATURES
outputmode="xml" geometry="false" attributes="true"
globalenvelope="true">
<LAYER
id="<cfoutput>#sLayerID#</cfoutput>"/>
<SPATIALQUERY subfields="<cfoutput>#tempShapeString#
#tempIDString#</cfoutput>"
where="<cfoutput>#tempQueryString#</cfoutput>"></SPATIALQUERY>
</GET_FEATURES>
</REQUEST>
</ARCXML>
</cfsavecontent>
<cfhttp timeout="45" method="post"
url="#SESSION.esrifullpath#&ClientVersion=4.0.1&CustomService=Query">
<cfhttpparam encoded="no"
type="body" name="ArcXMLRequest" value="#xmlrequest#">
</cfhttp>
Just looking for a Starting point and I can take it from there and be a
sounding board for the rest of the coldfusion community.
Scott Hameister
Director of Product Development
mPower Technologies
<mailto:scotth at mpower-tech,> scotth at mpower-tech
<mailto:scotth at mpower-tech.com> .com
T: 877-269-6971| T: 920-830-4053
501 S Nicolet Road Appleton, WI 54914
http://mpower-tech.com <http://mpower-tech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060508/91c33a9c/attachment.html
More information about the Mapguide-users
mailing list