Select to view content in your preferred language

ArcGis 9.2 and ARCGIS API for Silver light 4

932
2
08-03-2010 03:02 AM
ChethanaAmai
Deactivated User
Does ARCGIS API for Silver light 4    supports  ArcGis 9.2 SOAP/BINARY map services  ?
0 Kudos
2 Replies
RexHansen
Esri Contributor
No.  The ArcGIS Silverlight API is designed to work with ArcGIS Server services via REST, which was first introduced with ArcGIS Server 9.3.   To use SOAP services (ArcGIS Server and otherwise) in Silverlight, you need to generate the client side proxies.  The .NET SDK and Silverlight SDK include a SOAP toolkit to generate the proxies for you.  New in Silverlight 3 (and available in 4) is the SlSvcUtil command line utility to generate SOAP proxies for the Silverlight platform.  You'll find the utility in %Program Files%\Microsoft SDKs\Silverlight\v4.0\Tools.   You can download the wsdls for ArcGIS Server 10 services here: http://help.arcgis.com/EN/arcgisserver/10.0/apis/soap/Pre-generated_proxies.htm

Once you have the wsdls, you can use SlSvcUtil.exe to generate a single class that contains all the proxies and value object types:

SlSvcUtil.exe *.wsdl /language:CS
/namespace:"*,ESRI.ArcGIS.SOAP.Silverlight" /out:ESRI.ArcGIS.SOAP.Silverlight.cs


Note the parameter "*.wsdl" which indicates that all wsdl files in the current directory will be processed.  You will see a series of errors indicating that numerous types have already been declared.  This is expected since the same types are defined in multiple wsdls - you can ignore the error. 

At this point you can use VS2010 or csc.exe to build a Silverlight library from the cs file.  You can download an example Silverlight-ArcGIS Server SOAP app here: http://rexhansen.com/2009/01/consuming-arcgis-server-soap-services.html   It's an old post, but the code still applies.

Note, ArcGIS Server SOAP XML is designed for public use.  SOAP Binary is only designed for ArcObjects clients (e.g. ArcMap).
0 Kudos
ChethanaAmai
Deactivated User
Thank you very much.
0 Kudos