AnsweredAssumed Answered

.Net Custom Binding Implementation

Question asked by zifirr on Apr 24, 2017
Latest reply on May 4, 2017 by Stephen_Hughes

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.



<?xml version="1.0" encoding="utf-8"?><configuration>    
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />  

           <binding name="myUsernameOverHttpBinding02">    
                <textMessageEncoding messageVersion="Soap12WSAddressingAugust2004" />      
              <security authenticationMode="UserNameOverTransport" allowInsecureTransport="False " /> 
                   <httpsTransport />       

          <endpoint address="https://***" binding="customBinding"
bindingConfiguration="myUsernameOverHttpBinding02" contract="yyy.myContract"
name="myUsernameOverHttpBinding02" />    

    <defaultProxy enabled="false" useDefaultCredentials="false">   
        <add address="https://***"></add>