HTTP Authentication Module and SOAP Request Size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bkriznar

    HTTP Authentication Module and SOAP Request Size

    The problem could be reproduced like this:

    Web Service:

    [WebMethod]
    public string HelloWorld(byte[] aB)
    {
    byte[] lB = aB;
    return "Hello World";
    }



    Client:

    wsMax.Service1 lwsMax = new WindowsApplicat ion1.wsMax.Serv ice1 ();

    byte[] lB = new byte [50000];
    lwsMax.HelloWor ld (lB);


    works fine.

    If I add HTTP Authentication Module

    <httpModules>
    <add name="BasicAuth enticationModul e"
    type="Privasoft .Security.Basic AuthenticationM odule,BasicAuth Mod" />
    </httpModules>


    HelloWorld throws "Bad Request" Exception.

    If I replace

    byte[] lB = new byte [50000];

    with

    byte[] lB = new byte [30000];

    it works good, without throwing the exception.


    How can I avoid "Bad Request" Exception for a SOAP Request Size greater than
    30k in case of HTTP Authentication Module?


Working...