Wcf config binding issue for large packets
-
2012年8月9日 10:42
Hi Everyone,
I'm trying to create a WCF web service to parse XML strings but the packages are getting bigger and now i get the " The maximum message size quota for incoming messages (65536) has been exceeded" error.
What i'm i doing wrong :-(
Below is my web.config.
Could somebody give me a suggestion? :-)
tnx!
Martijn Vaandering
<system.serviceModel> <services> <service behaviorConfiguration="defaultBehavior" name="NovaObjectService.NovaObjectWebService"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="httpBinding" contract="NovaObjectService.INovaObjectWebService" /> </service> </services> <bindings> <basicHttpBinding> <binding name="httpBinding" maxBufferSize="500000" maxReceivedMessageSize="500000" /> </basicHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name="defaultBehavior"> <serviceMetadata httpGetEnabled="True"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel>
すべての返信
-
2012年8月9日 17:07
Increase the maxReceivedMessageSize property of your binding. Double it like this. You have to increase maxBufferSize too.
<binding name="httpBinding" maxBufferSize="131072" maxReceivedMessageSize="131072" />
131072 = 65536 (default value) x2
- 編集済み Pantelis.Ar 2012年8月9日 17:11
- 回答の候補に設定 Otomii LuModerator 2012年8月10日 5:02
- 回答としてマーク Otomii LuModerator 2012年8月16日 8:47
-
2012年8月10日 5:02モデレータ
Thanks for Pantelis's reply.
One more link for explaining the maxReceivedMessageSize property
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d2090703-eb60-46f4-adf7-31127338a0a0/
- 回答としてマーク Otomii LuModerator 2012年8月16日 8:47
-
2012年8月10日 8:14
Tnx folks! :-)
is my syntax ok? because i still get the error in "WcfTestClient"
Martijn
-
2012年8月10日 8:59
omg... i'm a real pebkac... WCF test client has a config too...
- 編集済み Martijn Vaandering 2012年8月10日 9:00

