extraxt rax xml using jaxb jaxrpc

From: StopSpam <>
Date: Tue, 15 Feb 2005 19:25:14 +0100

Follow up on the discussion at:

I'm not too much into SOAP, but the problem I'm trying to solve seems
to be similar to extracting payloads from a SOAP envelope and it's SOAP body
without introducing any namespace decl., entity references etc... into the XML
This means that I'd like to retrieve the the payload as it is presented to the
parser (= exactly as enveloped).

As I think jaxrpc also uses jaxb to realize this, I'd like to know how payloads can be
extracted from SOAP envelopes as an octet stream or context free xml document using jaxb?

I hope this makes sense.
See for further

many thanks in advance

Konrad Lanz

--- Please find the relevant parts of the previous discussion
--- from below:

Kohsuke Kawaguchi wrote:

>> Btw. how is this solved for SOAP? I'm not too much into SOAP, but my problem
>> seems similar to SOAP envelopes and I think jaxrpc also uses jaxb.
>I'm curious, too. You might consider posting to
Konrad wrote:

>I need to access raw xml (an octet stream) as mentioned in
>for the creation of digital signatures over xml content.

>So far I can access the content using dom binding, but this destroys the
>document for
>signature verification purposes as the original RAW XML DATA is modified
>unmarshalling and by introducing namespaces etc..

Kohsuke Kawaguchi wrote:

>> Is it possible to read the xml content (or input stream) as presented to
>> the parser between the <XMLData> tags?
>Hmm, not really. If XJC doesn't append proper namespaces on DOM
>elements, in general by the time you marshal it out, the meaning of
>those elements may change in an unexpected way.

Konrad wrote:

>Right, but in the case of an XML Protocol which envelops other XML data,
>it might not be desirable to inherit name spaces and other context into
>designated elements. This is also true in my case, where the xml wild card
>content inside the XMLData element should be independent.
>For a more detailed explanation of the problem please refer to