Click here to Skip to main content
14,735,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does anyone succeed in calling wcf service using script task in ssis?
I am getting error

Could not find default endpoint element that references contract 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.
Posted
Updated 30-Jan-13 3:07am
v2

As mentioned here[^]:
"This error can arise if you are calling the service in a class library and calling the class library from another project."

In this case you will need to include the WS configuration settings into the main projects app.config if its a winapp or web.config if its a web app. This is the way to go even with PRISM and WPF/Silverlight.

Solution suggested: Use contract="IMySOAPWebService" in your config file.

Another thread[^] discussing the same.
   
Message msg = new Message();
sender.Send(msg);
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900