dev@jax-ws.java.net

Handling the prefix of SOAP header

From: Myungsik Sung <mssung_at_tmax.co.kr>
Date: Fri, 12 Jan 2007 14:44:38 +0900

Hi, JAX-WS team

I am using the lastest jaxws 2.1 checked out from mr-21 branch.
I suggest that the jaxws 2.1 handle the prefix of SOAP header.

The current jaxws 2.1 generates a SOAP Message without handling the prefix of SOAP header like the following.

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Header>
    <To xmlns="http://www.w3.org/2005/08/addressing">...</To>
    <Action xmlns="http://www.w3.org/2005/08/addressing">...</Action>
    ...


I think that if using the prefix like the following, a SOAP Message will be made simpler and more perspicuous although the first SOAP message is equal to the second logically.

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
  <S:Header>
    <wsa:To>...</wsa:To>
    <wsa:Action>...</wsa:Action>
    ...


Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Myungsik Sung