Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
[no name] 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?

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!
 
Share this answer
 
C#
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900