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.