Click here to Skip to main content
11,922,381 members (31,650 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
hi i use C# web services with java when i send data it's work fine but
when i send byte[]>20k

Exception in thread "AWT-EventQueue-0" The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'simage'. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 40290.

Posted 24-Apr-13 8:36am
ThePhantomUpvoter 24-Apr-13 13:43pm
Okay so your error message is telling you want is wrong and what you need to do to correct it so what is your question and/or problem?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The error message does seem to be rather specific - it even explains what you have to do you fix the problem.

Given that you have been here for six years, you really should have been capable of working this out for yourself!
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

if you use NetFrameWork 4.0, you need to remove "name=myBinding" . I don't know why, but it works.
Service Side:
  <binding maxReceivedMessageSize="2147483647">
   maxNameTableCharCount="2147483647" />
   <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
   <serviceMetadata httpGetEnabled="true"/>
   <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
   <serviceDebug includeExceptionDetailInFaults="true"/>   
 <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

Thanks you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 453
1 Dave Kreskowiak 335
2 Sergey Alexandrovich Kryukov 263
3 Richard MacCutchan 225
4 ppolymorphe 175
0 OriginalGriff 7,231
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,356
3 George Jonsson 2,865
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web01 | 2.8.151120.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100