axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sajith" <>
Subject RE: [Axis0.94] Duplicated xmlns="" added by StAXSOAPModelBuilder
Date Tue, 21 Mar 2006 03:42:13 GMT
Well it seems like parser is not namespace aware. Quick glance in the
XMLInputFactory and saw isNamespaceAware attribute. Try that out





From: [] On Behalf Of Gaƫl
Sent: Monday, March 20, 2006 10:24 PM
Subject: [Axis0.94] Duplicated xmlns="" added by StAXSOAPModelBuilder



I've got an InputStream containing a soap envelope.
When I use StAXSOAPModelBuilder to create a SOAPEnvelope object, some extra
strings (xmlns="") are added in the resulting envelope!!!
What's the problem here? 

The code is pretty simple:

            // InputStream soapStream contains the envelope as a stream
   xmlif =;
   xmlr =
            StAXSOAPModelBuilder builder = new
            SOAPEnvelope newEnvelope = builder.getSOAPEnvelope ();

My InputStream contains something like this:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
<DmpPatientRequest xmlns="http://dmp/search/types ">
    <access xmlns="">Acces normal</access>

But in the resulting SOAPEnvelope I get: 
    <access xmlns="" xmlns="">Acces normal</access>

What is hapening here?

View raw message