parameter settings in the//app.config file
<?xml version="1.0"?><configuration> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="Wshttpbinding_iservice"closetimeout="00:01:00"Opentimeout="00:01:00"receivetimeout="00:10:00"sendtimeout="00:01:00"bypassproxyonlocal="false"transactionflow="false"Hostnamecomparisonmode="StrongWildcard" maxbufferpoolsize="2147483647" maxreceivedmessagesize=" 2147483647" messageencoding="Text"textencoding="Utf-8"usedefaultwebproxy="true"allowcookies="false"> <readerquotas maxdepth=" +"Maxstringcontentlength="8192"Maxarraylength="16384"Maxbytesperread="4096"Maxnametablecharcount="16384"/> <reliablesession ordered="true"inactivitytimeout="00:10:00"enabled="false"/> <security mode="Message"> <transport clientcredentialtype="Windows"Proxycredentialtype="None"Realm=""/> <message clientcredentialtype="Windows"Negotiateservicecredential="true"Algorithmsuite="Default"/> </security> </binding> </wsHttpBinding> </b indings> <client> <endpoint address="http://localhost/wz/Service.svc"binding="Wshttpbinding"bindingconfiguration="Wshttpbinding_iservice"contract="Serviceref.iservice"name="Wshttpbinding_iservice"> <identity> <userprincipalname value="test-xuqi\aspnet"/> </identity> </endpoint> </client> </system.serviceModel> <startup><supportedruntime version="v4.0"sku=". netframework,version=v4.0"/></startup></configuration>
parameter settings in the//web.config file
<?xml version="1.0"encoding="Utf-8"?><configuration> <connectionStrings> <add name="ConnectionString"connectionstring="Data source= (description= (address= (protocol=tcp) (host=20.20.10.100) (port=1521)) (Connect_data= (SERVICE_NAME= (ORCL))); User Id=se; Password=se;pooling=true; Min Pool size=20; Max Pool size=100;"Providername="System.Data.OracleClient"/> </connectionStrings> <system.web> <compilation debug="true"targetframework="4.0"/> </system.web> <system.serviceModel> <bindings> <basicHttpBinding><binding name="wz_ws_servicebinding" maxbuffersize="2147483647 " maxbufferpoolsize="2147483647 " maxreceivedmessagesize=
"
2147483647
" />
</basicHttpBinding> </bindings> <services> <service name="Wz_ws. Service"> <endpoint binding="Wshttpbinding"bindingconfiguration=""contract="Wz_ws. IService"/> </service> </services> <behaviors> <serviceBehaviors> <behavior> ; <!--to avoid leaking metadata information, set the following values before deployment tofalseand delete the above metadata end point--<servicemetadata httpgetenabled="true"/> <!--to receive the fault exception details for debugging, set the following values totrue。 Before deployment, set tofalseTo avoid leaking exception information--<servicedebug includeexceptiondetailinfaults="true"/> </behavior> </serviceBehaviors> </behaviors> <servicehostingenvironment Multi Plesitebindingsenabled="true"/> </system.serviceModel> <system.webServer> <modules runallmanagedmodulesforallrequests="true"/> </system.webServer> </configuration>
WebService MaxReceivedMessageSize: The maximum message size quota for incoming messages (65536) has been exceeded