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.'