[GIS] Handling XML from within ArcGIS Server environment

arcgis-serverxml

In my company, there is a web service that serves geographic data stored in a remote dababase through an URL. This service makes queries to the database and encodes the required data in XML format. So, to query data from a table (for example User), I do something like:

http://myCompanyName/service/QueryUserTable

So the service returns back to the client's browser a XML with all users stored in that table. Now, I would like to do the same from ArcGIS software: The thing would be connect this desktop application to that remote service, retrieve that XML file and parse it but all inside ArcGIS environment, not using other scripts or programs outside it. Is it possible? :S

Just in case it is not possible to do what I said, what is the best approach to handle and manage traffic in XML using ArcGIS?


It is a good idea and I like the way of retrieving the parameters like this long link you pasted. Didn't know about that module since I am pretty new with ESRI software.

But there is another constraint I did not mention in my first post. As the company is big, there is another "handicap" or problem: At this beginning stage I will have no control over the remote service, another developers group will "decide" how to encode the data. I mean, I think I cannot decide if the remote service is SOAP or not, REST or not and therefore, I don't know the XML tags they will use for the encoding. Maybe I can use the module you mention to connect to the service but I am not sure how data will be served on the other counterpart…

I guess I will be told the general schema of the files, and then I have to try to connect ArcGIS to that remote service and prepare some scripts to parse the incoming XML and allow non-IT users to use it in their layers…

Does it make sense? What do you think? It is a bit difficult to explain!

Best Answer

why dont you use ArcGIS SOAP or REST service interfaces. it already gives you what you want... it has query field which returns the result as html,json,kmz and amf too..

you can check out some service here, at least in terms of giving an idea...

This is an example service link, will return you id:129 object properties:

http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Unemployment_Rate/MapServer/1/query?text=129&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=&time=&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=&f=pjson

Related Question