Hi Hilmar,

I'm not familiar with the content of this web.config, so I tried to add the 
info in the webHttpBinding section.
But the error keeps popping up.
This is my file before I tried to change it, do you know where I should 
insert/change the parameter?

<?xml version="1.0"?>
<configuration>
  <system.diagnostics />
  <system.web>
    <compilation debug="false" targetFramework="4.0" />
    <!--authentication must be configured on IIS Application level. It 
can't be configured in virtual directories.-->
    <authentication mode="Forms">
      <forms cookieless="UseCookies" timeout="150" />
    </authentication>
    <!--allow access to all paths, in other words: Disable forms 
authentication for all paths-->
    <authorization>
      <allow users="*" />
    </authorization>
  </system.web>
  <!--Deny access to all MobileServices for unknown users, except for the 
Authentication service 
      In other words: "Enable" forms authentication for all services 
located in MobileServices, except for Authentication.svc-->
  <location path="MobileServices">
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
  </location>
  <location path="MobileServices/Authentication">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
  <!--End MobileServices Configuration section-->
  <system.serviceModel>
    <standardEndpoints>
      <webHttpEndpoint>
        <standardEndpoint name="" helpEnabled="true" 
automaticFormatSelectionEnabled="true" maxReceivedMessageSize="65535" />
      </webHttpEndpoint>
    </standardEndpoints>
    <bindings>
      <webHttpBinding>
        <!-- REST services interface -->
        <binding name="restServiceBinding" maxReceivedMessageSize="8388608">
          <!--
                        Setting maxReceivedMessageSize to 8388608 ( = 8 MiB 
) increases
               the maximum size for REST requests, which defaults to 64 kiB.
               
               Because of WCF weirdness, we must also increase the reader
                        quotas even though this service does not use XML:
                    -->
          <readerQuotas maxStringContentLength="8388608" />
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </webHttpBinding>
      <basicHttpBinding>
        <binding name="RqlWebService">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service name="OpenText.WS.MS.WebServices.Elements">
        <endpoint address="" behaviorConfiguration="JsonFormating" 
bindingConfiguration="restServiceBinding" binding="webHttpBinding" 
contract="OpenText.WS.MS.WebServices.IElementsServiceContract" />
      </service>
      <service name="OpenText.WS.MS.WebServices.LanguageVariants">
        <endpoint address="" behaviorConfiguration="JsonFormating" 
bindingConfiguration="restServiceBinding" binding="webHttpBinding" 
contract="OpenText.WS.MS.WebServices.ILanguageVariantsServiceContract" />
      </service>
      <service name="OpenText.WS.MS.WebServices.RqlWebService">
        <endpoint bindingConfiguration="RqlWebService" 
contract="XmlServerSoapPort" binding="basicHttpBinding" />
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="JsonFormating">
          <webHttp defaultBodyStyle="Bare" 
defaultOutgoingResponseFormat="Json" helpEnabled="true" 
faultExceptionEnabled="false" />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" 
multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule" />
      <remove name="AntiCsrfModule" />
      <remove name="CookieModule" />
    </modules>
    <httpProtocol>
      <customHeaders>
        <add name="Cache-Control" value="no-cache, no-store, 
must-revalidate" />
        <add name="pragma" value="no-cache" />
        <add name="Expires" value="0" />
      </customHeaders>
    </httpProtocol>
    <!--<rewrite><rewriteMaps><rewriteMap name="StaticRewrites"><add 
key="/cms/WebService/RDCMSXmlServer.wsdl" 
value="/cms/Webservice/RqlWebService.svc?wsdl" 
/></rewriteMap></rewriteMaps><rules><rule name="Rewrite rule1 for 
StaticRewrites"><match url=".*" /><conditions><add 
input="{StaticRewrites:{REQUEST_URI}}" pattern="(.+)" 
/></conditions><action type="Rewrite" url="{C:1}" appendQueryString="false" 
/></rule></rules></rewrite>-->
    <handlers>
      <remove name="MSSoap" />
    </handlers>
  </system.webServer>
</configuration>


Regards,
Bart


Op dinsdag 10 februari 2015 15:50:24 UTC+1 schreef Hilmar Bunjes:
>
> Hi Bart,
> could you try in MS\Web\WebServuce\web.config to set the 
> maxStringContentLength in the following place:
>
> <binding maxReceivedMessageSize="1000000">
> <readerQuotas maxDepth="32" maxStringContentLength="819200"...>
>
> to a higher value like "8388608" (8MB)?
>
> Best,
> Hilmar
>
>
> On Tuesday, February 10, 2015 at 3:12:07 PM UTC+1, Bart wrote:
>>
>> Hi,
>>
>> I'm having some issues when I try to copy a text element from one page to 
>> another using the SmartAPI libraries (version 1.0.4) in the 11.2 version of 
>> the CMS.
>> These are some of the instructions I use, they are placed within a for 
>> loop to handle only certain elements:
>>
>>                                 var elementSrc = 
>> (IValueElement<string>)elt;
>>                                 var elementDst = 
>> (IValueElement<string>)createdPage[elt.Name];
>>                                 elementDst.Value = elementSrc.Value;
>>                                 elementDst.Commit();
>>
>> The error 413 occurs when I try to execute the commit instruction.
>> The text element contains a large amount of text, and I know I have to 
>> configure a parameter (MaxReceivedMessageSize) somewhere, or try to change 
>> it programmatically, but I'm not succeeding in doing so.
>>
>> If anybody knows how to solve this, feel free to let me know.
>>
>> Regards,
>> Bart
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to