0 Replies Latest reply on Mar 28, 2011 6:26 AM by rouadec

    jbossws confused by double namespace in request

    rouadec Newbie

      While testing a web-service installed on a jboss 5.1.0GA using the standard WS stack (I get "X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1" in my HTTP headers) an unwanted behavior appeared on the jboss side when validation the signatures.

       

      If the following request with the same namespace defined in two places is send to the jboss WS :

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> ...

           <S:Body xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> ...

           </S:Body>

      </soapenv:Envelope>

       

      JBOSS will interpret it as :

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> ...

           <soapenv:Body xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> ...

           </soapenv:Body>

      </soapenv:Envelope>

       

      And the signatures won't match since they were calculated using the S:Body version.

       

      It this behavior expected or a bug in the way jboss handle the request?