VS Auto-generated WebService configuration file after deployment to IIS6, the service call fails the workaround

Source: Internet
Author: User

Recently, in the project need to reference Java published WebService, after adding a service reference, call everything OK.

The configuration is as follows:

<system.serviceModel>        <bindings>            <basicHttpBinding>                <binding name= " Securityserviceimplservicesoapbinding "  maxbufferpoolsize=" 2147483647 "  maxreceivedmessagesize=" 2147483647 "/>            </basicHttpBinding>        </bindings>        <client>            <endpoint address= "Http://10.10.10.10:80/securityService"                binding= "BasicHttpBinding" bindingconfiguration= " Securityserviceimplservicesoapbinding "                contract=" Service.isecurityservice "name=" SecurityServiceImplPort "/ >        </client>    </system.serviceModel>

Deployed to IIS6, the service could not be called, tossing an afternoon, and finally figuring out the reason for the configuration file:

The following changes are followed:

<system.serviceModel>    <bindings>      <wsHttpBinding>        <binding name= "Wshttpbinding_ Iupservice "closetimeout=" 00:01:00 "          opentimeout=" 00:01:00 "receivetimeout=" 00:10:00 "sendtimeout=" 00:01:00 "          bypassproxyonlocal= "false" maxbufferpoolsize= "524288" maxreceivedmessagesize= "65536"          usedefaultwebproxy = "true" allowcookies= "false" >          <security mode= "None"/>        </binding>      </wshttpbinding >    </bindings>    <client>      <endpoint address= "http://10.10.10.10:80/UpService/ Upservice.svc "        binding=" Wshttpbinding "bindingconfiguration=" Wshttpbinding_iupservice "        contract=" Permissionservice.iupservice "name=" Wshttpbinding_iupservice "/>    </client>  </ System.servicemodel>

Modified the configuration, the service calls normally.

The reason for this is that the VS version is probably relatively high, so the generated WebService configuration file, IIS6, is not recognized, the configuration file needs to be detailed configuration details.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.