For the ArcGIS Map Web Part, I successfully connected to sampleserver1.arcgisonline.com or sampleserver3.arcgisonline.com, but I tried to browse and connect to my ArcGIS server's REST service, it said "Connection Error: Unable to connect to http://myserver/arcgis/rest/services/mymap/mapserver". I don't understand why?
Can anyone confirm that, when you want to consume any WMS in the ArcGIS web part, that the host server of the WMS must have the ClientAccessPolicy.xml and/or CrossDomain.xml files installed on the server?
If this is the case, is it not a problem when you want to consume WMSs from other organisations? With more and more GIS data being published as WMS, would we have to contact each organisation that publishes a WMS we wish to consume and ask them to kindly add the url of our SharePoint server to their xml files to enable us to access it (assuming some of these organisations aren't willing to open access to all potential users - eg. for fear of heavy traffic on their server)?
And likewise, if we wish to publish our own WMS for consumption by other organisations, we'd have to add their urls to our .xmls files?
Thanks.
I think you are misunderstanding the concept of crossdomain and clientaccesspolicy. If it is a publicly available WMS, the crossdomain.xml and clientaccesspolicy.xml will typically "wildcard" the access to these specific services - so that it is not necessary to include each foreign domain in the xml file. If the WMS shall be restriced in access, you can use the XML files to restrict the access to the WMS to individual computers or domains. So I definitely would suggest to use crossdomain.xml and clientaccesspolicy.xml on your webserver root to allow or restrict foreign access.