[Mapserver-users] arcims emulation and arcexplorer

Ed McNierney ed at topozone.com
Mon Jun 30 08:52:29 PDT 2003


Mark -

Well, packet-sniffing by any other name is just as useful <g>.  I just downloaded HTTPLook and managed to get a complete log of the HTTP conversation about 5 minutes after I started without writing any code...

Part of the problem is that the complete interface (for which I have no documentation) is not very "clean".  For example, not all responses are XML (cmd=GetVersion, for example).

And, as I've just learned from Chris and Sean (and confirmed), the ArcExplorer client uses the "CustomStream" parameter to select an ArcXML output format wrapped in a few bytes of binary data, which is not at all obvious in the data stream if you're expecting it to be text!

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: Howard Mark [mailto:MHoward at SpaceImaging.com]
Sent: Monday, June 30, 2003 11:08 AM
To: Ed McNierney; Sean Gillies; Mapserver Users
Subject: RE: [Mapserver-users] arcims emulation and arcexplorer


Sean, Ed

	I can't imagine why you'd want to do packet-sniffing. When I was
developing my ArcIMS emulator, I simply wrote the ArcXML dialog out to a
file. It's easy to output the URL with variables and all the XML. I'd feed
back my hand-edited XML files as a response to check syntax..... This is
simple using JAVA servlets.
I still log all requests and responses.  Here's some sample log (server
names changed to protect the innocent):

CATALOG CALLED
<?xml version="1.0" encoding="UTF-8"?><GETCLIENTSERVICES/>
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
ServiceName=catalogREQUEST = catalog
CATALOG CALLED
<?xml version="1.0" encoding="UTF-8"?><GETCLIENTSERVICES/>
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
ServiceName=Space_Imaging_Mosaic&CustomStream=FalseREQUEST =
Space_Imaging_Mosaic
<?xml version="1.0" encoding="UTF-8"?><ARCXML version="1.0.1"><REQUEST
dpi="96"><GET_SERVICE_INFO/></REQUEST></ARCXML>
SERVICEINFO CALLED203
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
cmd=getversionGetversion Request
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
cmd=getversionGetversion Request
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
cmd=getversionGetversion Request
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
cmd=getversionGetversion Request
http://<server>.spaceimaging.com/servlet/com.esri.esrimap.Esrimap
ServiceName=Space_Imaging_Mosaic&CustomStream=FalseREQUEST =
Space_Imaging_Mosaic
<?xml version="1.0" encoding="UTF-8"?><ARCXML
version="1.1"><REQUEST><GET_IMAGE autoresize="true"><PROPERTIES><MAPUNITS
units="DECIMAL_DEGREES"/><FEATURECOORDSYS id="4326"/><FILTERCOORDSYS
id="4326"/><FILTERDENSIFY tolerance="1.30258337923976E-02"/><IMAGESIZE
dpi="96" scalesymbols="true" height="561" width="549"/><ENVELOPE
minx="-105.02977105628" miny="39.7372540449187" maxx="-104.97766772111"
maxy="39.7717835433104"/><BACKGROUND color="254,253,252"
transcolor="254,253,252"/><OUTPUT type="png"/><LAYERLIST
order="true"><LAYERDEF id="FB_5M_MOSAIC:V880_5M_FUSEBLEND" name="5 Meter
FuseBlend" visible="true"/><LAYERDEF id="IK_1M_MOSAIC:V880_1M_IKONOS"
name="1 Meter Ikonos" visible="true"/><LAYERDEF
id="PROMO_IMAGES:V880_CSDATA" name="1 Meter Promotional Imagery"
visible="true"/></LAYERLIST></PROPERTIES></GET_IMAGE></REQUEST></ARCXML>
GET_IMAGE CALLED
URL CALLED = 
http://t3host/t3?userid=AIMS&passwd=AIMS&request=map&srs=EPSG:4326&format=JP
EG&width=549&height=561&layers=FB_5M_MOSAIC:V880_5M_FUSEBLEND,IK_1M_MOSAIC:V
880_1M_IKONOS,PROMO_IMAGES:V880_CSDATA&quality=QUICKEST&wmtver=1.0&bbox=-105
.02977105628,39.7372540449187,-104.97766772111,39.7717835433104

<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.0">
<RESPONSE>
<IMAGE>
<ENVELOPE minx="-105.02977105628" miny="39.7372540449187"
maxx="-104.97766772111" maxyy="39.7717835433104"/>
<OUTPUT
url="http://<IMAGE_SERVER>.spaceimaging.com/images/arcims/1053545812015.jpg"
/>
</IMAGE>
</RESPONSE>
</ARCXML>
1844 (ms response time)



Mark



-----Original Message-----
From: Ed McNierney [mailto:ed at topozone.com]
Sent: Friday, June 27, 2003 8:09 PM
To: Sean Gillies; Mapserver Users
Subject: RE: [Mapserver-users] arcims emulation and arcexplorer

Sean -

I was just about to post a similar message, asking for ArcExplorer help!

I could really use some help in trying to diagnose just why my emulator
works fine under ArcMap and does NOT work under ArcExplorer.  The two do
use somewhat different "dialects" for the conversation, but I have spent
several days of packet-sniffing, comparing the dialog with a "good"
ArcIMS server and with my server, and I cannot figure out why mine is
treated differently!

If there's anyone with ArcIMS experience, particularly someone who is
familiar with the actual HTTP dialog between the client and server,
please speak up.  I'd like to help fix Sean's problem, and I'll offer
free access to our ArcIMS USGS DRG, DOQQ, and GDT Dynamap/2000 services
if you need to be bribed <g>.

Sean, if someone intelligent joins us, I'll start posting my
observations on the dialog between client and server.

        - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: (978) 251-4242  Fax: (978) 251-1396
ed at topozone.com


-----Original Message-----
From: Sean Gillies [mailto:sgillies at frii.com]
Sent: Friday, June 27, 2003 8:57 PM
To: Mapserver Users
Subject: [Mapserver-users] arcims emulation and arcexplorer

I've been writing a Python MapScript version of Refractions' imsemu.pl.
It works with ArcCatalog/ArcMap, but with ArcExplorer I get an
error message:

org.xml.sax.SAXParseException: Document root element is missing

What is ArcExplorer expecting differently?  Another version of
Arcxml than 1.0?  Differently formed XML?  Is there any reference
for this?  I'm hoping that those who've put together the new
emulators might clue me in.  I'd like to use ArcExplorer to test
and debug my app (rather than ArcMap).

thanks,
Sean

--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


********************************************************************************
This message is intended only for the use of the Addressee and may
contain information that is PRIVILEGED and CONFIDENTIAL.

If you are not the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please erase all copies of the
message and its attachments and notify Space Imaging immediately.
********************************************************************************





More information about the MapServer-users mailing list