Roshil K
Roshil K

Reputation: 2705

Connect xamarin with HTTPS WCF service( WShttpbinding with a security mod MessageWithtransport)

We have an existing Soap HTTPS WCF service with WShttpBinding with a security mode of TransportWithMessageCredentials.Can I consume this WCF service inside my IOS Xamarin application? I already consumed basichttpbinding WCF service after created the proxy of the WCF service inside the Ios application.Can Anyone tell me how to consume the HTTPS WShttpBinding binding WCF service to my Xamarin application?

Upvotes: 2

Views: 2796

Answers (1)

JKennedy
JKennedy

Reputation: 18799

To my knowledge you cannot use WSHttpBinding:

From this Question I would use:

PCL:

 BasicHttpBinding bind= new BasicHttpBinding(BasicHttpSecurityMode.Transport);

Web.config Binding:

  <basicHttpBinding>
    <binding name="BasicSecure">
      <security mode="Transport" />
    </binding>
  </basicHttpBinding>

Upvotes: 4

Related Questions