I've been strugguling for 1 day on this thing.
Best regards,
Cristian
On 8/31/05, Michael <[EMAIL PROTECTED]> wrote:
make sure your DocumentBuilderFactory is namespace aware
i.e. setNamespaceAware(true)
On 31/08/05, Cristian Opincaru <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to insert a document in the body of a SOAP reply and I'm getting
> xmlns="" in the reply.
>
> Here's the document that I try to insert:
> <?xml version=" 1.0" encoding="UTF-8"?>
> <wfs:WFS_Capabilities updateSequence="0" version="1.0.0"
> xmlns:wfs="http://www.opengis.net/wfs " >
> <wfs:Service>test</wfs:Service>
> </wfs:WFS_Capabilities>
>
> Here's the SOAP message:
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope
>
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd=" http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <wfs:WFS_Capabilities updateSequence="0" version="1.0.0"
> xmlns:wfs="http://www.opengis.net/wfs">
>
> <wfs:Service xmlns:wfs="">test</wfs:Service>
>
> </wfs:WFS_Capabilities> </soapenv:Body>
> </soapenv:Envelope>
>
> In my code I simply call addDocument(myDocument).
>
> Does anybody have an ideea? I looked at some previous emails in the list,
> found that it was a bug but it's supposed to be fixed (I'm using AXIS 1.2.1)
> ...
>
> Cristian
>
