You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Cristian Opincaru <cr...@gmail.com> on 2005/08/31 13:21:17 UTC
xmlns="" in SOAP Reply
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" <http://www.opengis.net/wfs%22>>
<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"<http://www.w3.org/2001/XMLSchema-instance%22>
>
<soapenv:Body>
<wfs:WFS_Capabilities updateSequence="0" version="1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" <http://www.opengis.net/wfs%22>>
<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
Re: xmlns="" in SOAP Reply
Posted by Cristian Opincaru <cr...@gmail.com>.
Thanx! It works!
I've been strugguling for 1 day on this thing.
Best regards,
Cristian
On 8/31/05, Michael <ax...@gmail.com> wrote:
>
> make sure your DocumentBuilderFactory is namespace aware
> i.e. setNamespaceAware(true)
>
> On 31/08/05, Cristian Opincaru <cr...@gmail.com> 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
> >
>
Re: xmlns="" in SOAP Reply
Posted by Michael <ax...@gmail.com>.
make sure your DocumentBuilderFactory is namespace aware
i.e. setNamespaceAware(true)
On 31/08/05, Cristian Opincaru <cr...@gmail.com> 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
>