call third party web service from wcf service -
i have call third party web service wcf service library. when call third party web service test application, there no problem, when call wcf service, there error:
an error occurred while receiving http response xxx.svc/ws. be...
i've added third party web service add service reference. bindings web service generated automatically as:
<wshttpbinding> <binding name="wshttpbinding_xxxservice" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" bypassproxyonlocal="false" transactionflow="false" hostnamecomparisonmode="strongwildcard" maxbufferpoolsize="524288" maxreceivedmessagesize="65536" messageencoding="text" textencoding="utf-8" usedefaultwebproxy="true" allowcookies="false"> <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="16384" /> <reliablesession ordered="true" inactivitytimeout="00:10:00" enabled="false" /> <security mode="none"> <transport clientcredentialtype="windows" proxycredentialtype="none" realm="" /> <message clientcredentialtype="windows" negotiateservicecredential="true" /> </security> </binding> </wshttpbinding> bindings of wcf service different:
<basichttpbinding> <binding name="basichttpbinding" 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="none"> <transport clientcredentialtype="none" proxycredentialtype="none" realm="" /> <message clientcredentialtype="username" algorithmsuite="default" /> </security> </binding> </basichttpbinding> bindings wcf service automatically generated in test app.config file, bindings third party service generated inside wcf appl config.
what doing wrong?
i've found solution. problem web application didn't use web service configuration configured in web config file. made direct call instead through proxy. called web service code, , input same settings in web config web service programatically , added proxy address through can pass through network.
Comments
Post a Comment