Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to consume soap service with SSL using plugin in dynamics 365?

Posted on by 256

Hi All,

I want to consume SOAP service with SSL (https://.....................................................) using plugin in dynamics 365?

Please provide any solution or code for this?

Thank you!

*This post is locked for comments

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to consume soap service with SSL using plugin in dynamics 365?

    You should not get "The provided URI scheme 'https' is invalid; expected 'http'" error if you change from BasicHttpBinding to BasicHttpsBinding.

    You can however received some other error like "Internal error" or some other fault.

    Are you still receiving the same error?

    Also, please note that the binding info depends upon the service you are consuming like in my case I had to use custom binding as the service was using SOAP12 version.

  • AnkitSinghal Profile Picture
    AnkitSinghal 256 on at
    RE: How to consume soap service with SSL using plugin in dynamics 365?

    yes, i have tried

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to consume soap service with SSL using plugin in dynamics 365?

    did you try changing BasicHttpBinding to BasicHttpsBinding?

  • AnkitSinghal Profile Picture
    AnkitSinghal 256 on at
    RE: How to consume soap service with SSL using plugin in dynamics 365?

    That link is working for only "http" type but i am using "https".

    if i use "https" soap service them i faced "The provided URI scheme 'https' is invalid; expected 'http'" error.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to consume soap service with SSL using plugin in dynamics 365?

    Try this-

    code.msdn.microsoft.com/How-to-call-External-WCF-42c4490d

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: How to consume soap service with SSL using plugin in dynamics 365?

    Hi,

     what exactly is the problem?

     Sandbox plugins do have some limitations(look for "Web Access" here: msdn.microsoft.com/.../gg334752.aspx), but, other than that.. well, you cannot use a configuration file, so if you need to configure the bindings etc, you'll have to do it in code:

    https://stackoverflow.com/questions/3703844/consume-a-soap-web-service-without-relying-on-the-app-config

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans