To call .asmx webservice in Sharepoint Solution

I meet a requirement to utilise .asmx webservice inside my sharepoint code, i tried adding service reference its working fine in console application and when i try the same in Sharepoint solution it gives me the error like 

" Could nt locate the End point element that reference the contract and name " , even though i added the required <bindings> and <client> in to my web.config in < system.servicemodel> section...

Any Idea to resolve this.. ? please.. 

August 31st, 2015 12:51pm

Hi Murali,

What is your SharePoint solution? A farm solution or sandbox solution?

It seems that when we call a custom web service in sandbox solution, we need to deploy a Full Trust Proxy.

Please refer to the link below for more details:

http://blog.brianbeach.com/2011/09/sharepoint-2010-full-trust-proxy.html

Best regards,

Victoria

Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 2:54am

Hi victoria,

Thanks for your answer anyway...

My solution is farm deployment solution , actually i could not access that endpoint in two locations, one is that i have to access it from sharepoint visual webpart and other one is from timer job .

I got to resolve that issue by placing the endpoint bindings in <system.servicemodel> in web config for visual webpart and owstimer.config for timer job...

Your Answer for this query is like a learn for me in case of usage of Sandbox solution.

Thanks again

September 7th, 2015 2:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics