Select to view content in your preferred language

Accessing ArcGIS Geometry Service in .NET

607
1
08-08-2010 10:34 AM
MeleKoneya
Frequent Contributor
We have an ArcGIS server Geometry Service and I would like to add it to a VS 2008 windows application and use the Project capabilities of the Geometry Service to project points from Lat/Long to State Plane.

I have been successful at bringing the Geometry Service into the VS 2008 project as a servcie reference via its WSDL, but don't understand how to create an instance of the Geometry Service.

The following link shows an example:

http://resources.esri.com/help/9.3/arcgisserver/apis/soap/index.htm

Geometry_GeometryServer pGS = new Geometry_GeometryServer();

I don't understand how the new Geometry_GeometryServer is created as it does not show in intellisense and errors when I tried to build the project.

Please help with some code samples including and references and using statements needed.

Thanks,

Mele
0 Kudos
1 Reply
MeleKoneya
Frequent Contributor
I needed to add the WSDL as a web service using the advanced properties in VS 2008 and not as a Service Reference.

It is working now.
0 Kudos