Why am I getting 400 bad request when calling a .Net 2.0 web service from WCF over https? -
i have web service contains method need run generate report. web service method written in .net 2.0 , works fine on test system runs on same server live system. difference live version uses https.
whenever change endpoint address live service , run application 400(bad request) errors iis.
is there specific configuration setting need change in wcf settings in app.config work https?
the generated app.config settings created "add service reference" follows:
<system.servicemodel> <bindings> <basichttpbinding> <binding name="reportssoap" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard" maxbuffersize="65536" maxbufferpoolsize="524288" maxreceivedmessagesize="65536" messageencoding="text" textencoding="utf-8" transfermode="buffered" usedefaultwebproxy="true"> <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="16384" /> <security mode="transport" > <transport clientcredentialtype="none" proxycredentialtype="none" realm="" /> <message clientcredentialtype="username" algorithmsuite="default" /> </security> </binding> </basichttpbinding> </bindings> <client> <endpoint address="https://www.mysite.com/subdir/subdir/reports.asmx" binding="basichttpbinding" bindingconfiguration="reportssoap" contract="systemreports.reportssoap" name="reportssoap" /> </client> </system.servicemodel>
yes have change binding configuration use transport security.
<bindings> <basichttpbinding> <binding name="yourcurrentbindingname" ...> <security mode="transport" /> </binding> </basichttpbinding> </bindings>
Comments
Post a Comment