Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Getting Error when Consume ASMX Web Service from CRM Plugin

Posted on by
Hi,
 
I've a scenario that I need to consume ASMX Web Service on update of account/lead, I've done this for my testing purpose on Console Application but when I'm doing this on CRM Plugin, getting error that endpoint is not configured, i did the same this as on Console Application
 
I used this code in console application whicj is working fine in but in Plugin getting error in the highlighted line that /Could not find default endpoint element that references contract '******ServiceReference.ImportServerSoap' 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./
 
 
then i pass manually the url of my ASMX Web Service but not succeed

 
then getting error on the using (new OperationContextScope(webService.InnerChannel))

System.ServiceModel.CommunicationObjectFaultedException: 'The communication object, System.ServiceModel.ChannelFactory`1[TestASMXWebApiPlugin.******ServiceReference.ImportServerSoap], cannot be used for communication because it is in the Faulted state.'

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans