Select to view content in your preferred language

Using WmsLayer

1672
3
01-20-2011 12:36 AM
by Anonymous User
Not applicable
Original User: athahabee

Hello,
I'm trying to use the ArcGIS API for silverlight with Navteq MapTP WMS service, they are saying that this is possible with ArcMap, and showing a video sample for that.
When I tried to use this service inside the WmsLayer, it displayed nothing. I've tried the same service URL with ArcGIS explorer, and it gave me the following message:
Failed to connect to "my service url".
I'm using the following service URL:
http://maptp50.map24.com/map24/webservices1.5?mid=WSE000229958&VERSION=1.1.1
The MID parameter is the MapID provided by Navteq to authenticate my map requests
Any help is appreciated...
0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: SharpGIS

This is probably because this domain doesn't have a client access policy file in place, so Silverlight is not allowed to talk directly to it. In that case, you will need to use a local proxy and set the proxy url to use this.

http://maptp50.map24.com/ccrossdomain.xml
http://maptp50.map24.com/clientaccesspolicy.xml
0 Kudos
by Anonymous User
Not applicable
Original User: athahabee

Thanks Morten for your answer,
I think I have no problem with accessing the file, because I'm trying to do the same using different products, and I'm getting the following:
using ArcGIS online explorer:
The service is not accessible. This may be due to the security policy on the server

using ArcGIS Desktop:
Failed to connect to "my service url".

Using ArcGIS API for silverlight:
Nothing

I've tried to do the same with Quantum GIS 1.6, and I've get the following message:
-----------------
Advertised GetMap URL

  http://maptp50.map24.com/map24/webservices1.5?mid=WSE000229958&

is different from GetCapabilities URL

  http://maptp50.map24.com/map24/webservices1.5?mid=WSE000229958&SERVICE=WMS&REQUEST=GetCapabilities&V...

This might be an server configuration error. Should the URL be used?
------------------
However, if I hit the YES button, I can see the map, and it works fine.

I've also tried to add the same map to Gaia  3.4.2, and I got the map with no errors, but still I can't see it using the ArcGIS products 😞
Any suggestions ?
Regards,
0 Kudos
dotMorten_esri
Esri Notable Contributor
As mentioned you NEED either a clientaccesspolicy.xml file on that server, or you need to use a proxy. If you don't do either of these things, it will NOT work with any Silverlight client. This is a browser/server security thing, and not something you can compare to using "Quantum GIS".

Please read these blogs posts as well to better understand and debug the issue:
http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/31/Using-services-across-schemes.aspx
0 Kudos