Select to view content in your preferred language

How to access WCF service using extensible API for ArcGIS SharePoint ?

2155
1
02-28-2012 07:42 AM
RogerF
by
Regular Contributor
Hi

Have anyone tried calling WCF service using extensible API for ArcGIS SharePoint and developed a custom tool ? any example / pointers will be appreciated !!

Thanks
Roger
0 Kudos
1 Reply
ArghaBera
Emerging Contributor
Hi,

You need to explicitly define the WCF service end point. Because if you are using WCF service in any custom tool which is deployed on the SharePoint MAP WEBPART ,in that case it won�??t be able to read the WCF service endpoint from  ServiceReferences.ClientConfig.

Use below code to create the WCF service endpoint through your code.

  BasicHttpBinding basicBinding = new BasicHttpBinding();
  basicBinding.MaxBufferSize = 2147483647;
  basicBinding.MaxReceivedMessageSize = 2147483647;
  EndpointAddress endPoint = new EndpointAddress(@�?�http://abc:5555/Service.svc�?�);
  ServiceClient client = new ServiceClient(basicBinding, endPoint);

Regards,
Argha
0 Kudos