.net - Strange Error Message Submitting from InfoPath to WCF Service -


i'm building infopath form (infopath 2010) , in custom code i'm calling wcf service programatically part of submit action below:

driverhours.driverhours allhours = new driverhours.driverhours(); bool spec;

    xpathnavigator mynav = this.maindatasource.createnavigator();      string alldata = mynav.outerxml;     alldata = alldata.replace("my:", "");     result = allhours.savedriverhoursbystring(alldata); 

savedriverhoursbystring takes string of xml data, saves database on backend via wcf.

when submit block executes, following error shows on last line:

system.web.services.protocols.soapheaderexception formatter threw exception while trying deserialize message: there error while trying deserialize parameter http://tempuri.org/:xml. innerexception message 'there error deserializing object of type system.string. maximum string content length quota (8192) has been exceeded while reading xml data. quota may increased changing maxstringcontentlength property on xmldictionaryreaderquotas object used when creating xml reader. line 208, position 21.'.  please see innerexception more details.    @ system.web.services.protocols.soaphttpclientprotocol.readresponse(soapclientmessage message, webresponse response, stream responsestream, boolean asynccall)    @ system.web.services.protocols.soaphttpclientprotocol.invoke(string methodname, object[] parameters)    @ hrsservicetemplate.driverhours.driverhours.savedriverhoursbystring(string xml)    @ hrsservicetemplate.formcode.formevents_submit(object sender, submiteventargs e)    @ microsoft.office.infopath.internal.formeventshost.onsubmit(docreturnevent pevent)    @ microsoft.office.interop.infopath.semitrust._xdocumenteventsink2_sinkhelper.onsubmitrequest(docreturnevent pevent) 

now i'm aware solution increase content length on web.config of wcf service. below web.config file now, , error still occurs:

<?xml version="1.0"?> <configuration>   <connectionstrings>    <!--<add name="ifms_connection" connectionstring="data source=aaaa;user id=aaaa;password=abcdefg;"/>    -->     <add name="ifms_connection" connectionstring="data source=(description=(address_list=(address=(protocol=tcp)(host=aaaa)(port=1521)))(connect_data=(service_name = orcldevl)));user id=aaa;password=aaaa;"/>    </connectionstrings>   <system.web>    <httpruntime maxrequestlength="2147483647" />    <compilation debug="true" targetframework="4.0" />   </system.web>   <system.servicemodel>      <bindings>       <wshttpbinding>          <binding name="nosecuritybinding"  maxreceivedmessagesize="2147483647">           <readerquotas              maxdepth="2147483647"              maxstringcontentlength="2147483647"              maxarraylength="2147483647"              maxbytesperread="2147483647"              maxnametablecharcount="2147483647" />            <security mode="none">             <transport clientcredentialtype="none"/>             <message establishsecuritycontext="false"/>           </security>           </binding>       </wshttpbinding>        </bindings>       <services>      </services>     <behaviors>             <servicebehaviors>         <behavior>           <!-- avoid disclosing metadata information, set value below false , remove metadata endpoint above before deployment -->           <servicemetadata httpgetenabled="true" />                  </behavior>         <behavior name="metadataanddebug">           <servicemetadata httpgetenabled="true" />            <servicedebug             includeexceptiondetailinfaults="true"/>          </behavior>       </servicebehaviors>     </behaviors>      <servicehostingenvironment multiplesitebindingsenabled="true" />   </system.servicemodel>  <system.webserver>     <modules runallmanagedmodulesforallrequests="true"/>   </system.webserver>  </configuration> 

any ideas? in particular i'm wondering missing config entries, thanks!

it may have updated configuration on server side, not configuration of client.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -