Select to view content in your preferred language

How to call ArcObjects from Silverlight 3?

741
3
05-20-2010 06:56 PM
BaohuaTao
Deactivated User
I tried to get the mile post for the clicked point in the highway map. In ADF, we were able to do so by calling ArcObjects. Is there a way to do this similar thing in SilverLight 3?

Any help would be greatly appreciated!

Thanks!
Baohua
0 Kudos
3 Replies
sw1
by
Deactivated User
I was using Services to call ArcObjects such as Server connection and CreateFeatureWoekspace. You have two options to get ArcGIS server connection, by using ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection or ESRI.ArcGIS.Server.GISServerConnection. When connection established, you can create server context by using ServerObjectManager. After server context is ready, you can enjoy ArcObjects..... Once should know is to save the context to session variable so you do not have to recreate in next service if session still alive. You need to following property for your services
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]

Once your own ArcGIS services are ready, you are ready request from silverlight.

Good luck!
0 Kudos
BaohuaTao
Deactivated User
Thanks, guys! I will try to see if it works for me.
Baohua
0 Kudos