SOAP SOE Credentials

Discussion created by mkoneya on Feb 19, 2011
Latest reply on Sep 28, 2011 by mkoneya
I have a SOAP SOE that I am trying to access from a .NET console application as a service reference.   The SOE resides on an ArcGIS Server that implements security.   We are using windows authentication to secure our Map Services.

Below is the code to call a method from the SOE:

using (PrintMap_From_LIS_SOE.ServiceReference3.TE_Coll_Offset_SOEPortClient te = new TE_Coll_Offset_SOEPortClient())
    string coords = te.OffsetCoords("N 94TH ST", "E CACTUS RD", 711670, 944759, "E", 140);

I was able to access the SOE before we implemented security and now I am getting this message:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

How do I pass credentials to the SOE?