Click here to Skip to main content
13,050,429 members (133,429 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 7: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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2017
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