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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hi All, I am calling soap service using plugin in Dynamics 365. I am using below code for calling ---SOAP HTTPS---- service but i am getting "The provided URI scheme 'https' is invalid; expected 'http'.".

(0) ShareShare
ReportReport
Posted on by 592

#region Calling WCF Service
var myBinding = new WSHttpBinding(SecurityMode.None);
myBinding.MaxReceivedMessageSize = 2147483647;
myBinding.MaxBufferPoolSize = 2147483647;
myBinding.SendTimeout = TimeSpan.FromMinutes(3);
myBinding.ReceiveTimeout = TimeSpan.FromMinutes(3);
myBinding.OpenTimeout = TimeSpan.FromMinutes(3);
myBinding.CloseTimeout = TimeSpan.FromMinutes(3);
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Message.EstablishSecurityContext = false;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
EndpointAddress endPointAddress = new EndpointAddress("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.svc");
ChannelFactory<ICustSupportService> factory = new ChannelFactory<ICustSupportService>(myBinding, endPointAddress);
ICustSupportService channel = factory.CreateChannel();

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Bhabani,

    Try changing the "var myBinding = new WSHttpBinding(SecurityMode.None);" to "var myBinding = new WSHttpBinding(SecurityMode.Transport);"

  • Verified answer
    MS CRM DYNAMICS Profile Picture
    592 on at

    I resolved the issue by adding below line of code

    --- myBinding.Security.Mode = SecurityMode.Transport;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans