Click here to Skip to main content
Rate this: bad
good
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
 
err:
Exception in thread "AWT-EventQueue-0" javax.xml.ws.soap.SOAPFaultException: 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.
 
p.h
Posted 24-Apr-13 8:36am
Comments
ThePhantomUpvoter at 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
good
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!
  Permalink  
Rate this: bad
good
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:
 
 
 
<system.serviceModel>
 <bindings>
  <basicHttpBinding>
  <binding maxReceivedMessageSize="2147483647">
   <readerQuotas
   maxDepth="2147483647"
   maxStringContentLength="2147483647"
   maxArrayLength="2147483647"
   maxBytesPerRead="2147483647"
   maxNameTableCharCount="2147483647" />
   
  </binding>
  </basicHttpBinding>
 </bindings>
 <behaviors>
  <serviceBehaviors>
  <behavior>
   <!-- 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"/>   
  </behavior>
  </serviceBehaviors>
 </behaviors>
 <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
 </system.serviceModel>
 

 
Thanks you
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 269
1 OriginalGriff 240
2 CPallini 195
3 Maciej Los 177
4 BillWoodruff 173
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


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