locked
How do I call an external WebService in a Plugin? RRS feed

  • Question

  • I am trying to call an external WebService in a CRM plugin and I am stuck. WebService entries usually want to have configuration information in the app.config file, which can't be used in a Plugin. I found that I can create an instance of

    BasicHttpBinding and EndpointAddress in a stand-alone application but when I do the same thing in a plugin I get an exception:

    "Could not load type 'System.ServiceModel.HttpBindingBase' from assembly 'System.ServiceModel"

    "Operation could destabilize the runtime."

    I have searched around and I can't find an answer to this, but it seems others are doing it. Is there some other way to reference the WebService?  I am referencing the WebService using Visual Studio 2013 and the "Add Service Reference" functionality.

    -Thanks

    Monday, May 26, 2014 12:00 AM

Answers

All replies