Webservice Limit 8192 Characters

mjhigginsmjhiggins Member Posts: 57
edited 2014-09-04 in NAV Three Tier
Hi,

we have published a webservice and the web developers are getting an error posting to this, where the XML file is greater than 8192 characters. Anyone know how to increase this limit?

thank

Comments

  • ara3nara3n Member Posts: 9,255
    There is a setting in custom setting file.

    <!--
    Maximum permitted size of a SOAP Services request, in kilobytes
    -->
    <add key="SOAPServicesMaxMsgSize" value="1024" />
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • mjhigginsmjhiggins Member Posts: 57
    Hi, thanks for the reply, I should have mentioned that it was 2009 R2. this setting does not appear to be available?

    thanks
  • pdjpdj Member Posts: 643
    I just tried in my NAV 2009 SP1 with a 10kb request, and it works fine. (had to add 23 different items in a web-shop)
    Maybe you should "upgrade" to NAV 2009 SP1? ;-) Sorry, that is not funny :-(

    My web service is not using XMLPorts, but simply uses a BigText as parameter. How is yours defined?
    (It is a hell to handle regarding encoding, but that is a different story)
    Regards
    Peter
  • mjhigginsmjhiggins Member Posts: 57
    Hi

    thanks for the upgrade tip. maybe to classic and dataports!

    The webservice is a simple page webservice (creating a header and lines)

    thanks
  • aniishaniish Member Posts: 27
    Hi,
    There is a setting in custom setting file in NAV 2009R2
    <!--
    Maximum permitted size of a Web Services request, in kilobytes
    -->
    <add key="WebServicesMaxMsgSize" value="512"></add>

    Thanks, Gaurav
Sign In or Register to comment.