JBoss Community

jbossws confused by double namespace in request

created by rouadec in JBoss Web Services - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community