web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error consuming Web Service CRM Online

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm consuming a SOAP Web service on CRM Online plugin, anytime I make the call I get an error on the Message Encoding.

How do I go about solving this? I attached an image of error and my code snippet below.

Any help would be appreciated.

ErrorBinding.PNG.

HttpBinding.PNG

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    It looks like you are not setting the basic binding on your WCF call because the error is referencing a different binding - can you post the rest of you code?

  • Community Member Profile Picture
    on at

    Scott,

    Here is the snippet for the rest of the code:

    //Http Binding and its properties...

               var myBinding = new BasicHttpBinding();

               myBinding.Name = "BasicHttpBinding_Service";

               myBinding.BypassProxyOnLocal = false;

               myBinding.TextEncoding = UTF8Encoding.UTF8;

               myBinding.MessageEncoding = WSMessageEncoding.Mtom;

               myBinding.Security.Mode = BasicHttpSecurityMode.Transport;

                    

               var endpoint = new EndpointAddress(@"EndPointAddress");

               var request = new SomeMethod(myBinding, endpoint);

  • Suggested answer
    Community Member Profile Picture
    on at

    Since you are using the CRM online version and the plugin is in isolation mode.

    The External service access is limited: You cannot not access via IP, you have to use friendly name, and your service have to be verified, in this case, you have to host your service in Azure server for testing.

    Please check below link for more information:

    community.dynamics.com/.../196179

  • Community Member Profile Picture
    on at

    I have a few questions:

    1. What is the process of using a friendly name in the service?

    2. How do I get the service verified?

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

#2
Abdullah13 Profile Picture

Abdullah13 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans