Hi guys,
We are facing a problem while consuming a web service.
We have a VPN Connection with a company and trying to consume their web services.
I have the following custom binding in my application(.Net) and it works without problem.
However when I publish this service on our API Gateway, the service returns 415 error.
Any help would be appreciated.
Regards.
<?xml version="1.0" encoding="utf-8"?><configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="myUsernameOverHttpBinding02">
<textMessageEncoding messageVersion="Soap12WSAddressingAugust2004" />
<security authenticationMode="UserNameOverTransport" allowInsecureTransport="False " />
<httpsTransport />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="https://***" binding="customBinding"
bindingConfiguration="myUsernameOverHttpBinding02" contract="yyy.myContract"
name="myUsernameOverHttpBinding02" />
</client>
</system.serviceModel>
<system.net>
<defaultProxy enabled="false" useDefaultCredentials="false">
<bypasslist>
<add address="https://***"></add>
</bypasslist>
</defaultProxy>
</system.net>
</configuration>