asp.net mvc 3 - MVC3 Consuming java web services only works with ip address -
i calling java web service asp.net mvc web application. web service works if endpoint address in web.config references server ip address or localost. when replace ip adderess host name can not find server.
here service section of web.config
<system.servicemodel> <bindings> <basichttpbinding> <binding name="testinterfacebeanservicesoapbinding" 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> <client> <endpoint address="http://myserver:8080/ets-impl-2.0/testinterfacebean" binding="basichttpbinding" bindingconfiguration="testinterfacebeanservicesoapbinding" contract="testservice.testinterfacebean" name="testinterfacebeanport" /> </client> </system.servicemodel>
try url ( http://myserver:8080/ets-impl-2.0/testinterfacebean ) in browser. host resolved correctly?
you use nslookup myserver find out if servername being resolved same ip address expecting be.
Comments
Post a Comment