Select to view content in your preferred language

Consuming WCF Soap service in arcgis soe 10.2.1

3265
1
02-11-2015 06:11 AM
mohannainar2
Deactivated User

Hi,

We have wcf soap service 3rd party  (purpose : single and batch geocoding) , we were using this soap service in ArcGIS 10.2.1 SOE , it works for single line geocoding , when we call for batch geocoding it throws error message The batch geocode method is "GeocodeAddresses" .

objResponse =   obj.GeocodeAddresses(objWsHeader, AddressRequest, out oResponse);

We are getting error on the above line..

Error Message:    

        Could not find
        default endpoint element that references contract
        'EGMBatchService.BatchWS' in the ServiceModel client configuration
        section. This might be because no configuration file was found for
        your application, or because no endpoint element matching this
        contract could be found in the client element

     

   
0 Kudos
1 Reply
nicogis
MVP Frequent Contributor

you can create the binding of your web.config programmatically.

CustomBinding binding = new CustomBinding();
// Create a SymmetricSecurityBindingElement.
SymmetricSecurityBindingElement ssbe =
    SecurityBindingElement.CreateSspiNegotiationBindingElement(true);
// Add the SymmetricSecurityBindingElement to the BindingElementCollection.
binding.Elements.Add(ssbe);
binding.Elements.Add(new TextMessageEncodingBindingElement());
binding.Elements.Add(new HttpTransportBindingElement());

and follow the properties  of your web.config

0 Kudos