WebService output

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

WebService output

Marc.Benimeli
Hi,

I have the following message when I invoke a WebService :

"Cannot output a namespace node for the default namespace when the
element is in no namespace"

The original file is test.xml
I serialize the output data with processor xml-converter and
xml-file-serializer in the file : serialize.xml

I don't understand the message.

Can I have some explanation please ?

Marc


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

test.xml (100 bytes) Download Attachment
serialize.xml (704 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebService output

Erik Bruchez
Administrator
Marc,

That's a Saxon error, so you must have some XSLT in there.

It's a sometimes tricky error, but you can usually fix it up by adding
prefixes to elements.

-Erik

[hidden email] wrote:

> Hi,
>
> I have the following message when I invoke a WebService :
>
> "Cannot output a namespace node for the default namespace when the
> element is in no namespace"
>
> The original file is test.xml
> I serialize the output data with processor xml-converter and
> xml-file-serializer in the file : serialize.xml
>
> I don't understand the message.
>
> Can I have some explanation please ?
>
> Marc
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="utf-8" ?>
>
>     <test>Test XML</test>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <NoticeXMLResponse xmlns:delegation="http://orbeon.org/oxf/xml/delegation" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns="http://Mobydoc/MobyWeb">
>  <NoticeXMLResult>
>   <test>Test XML</test>
>  </NoticeXMLResult>
> </NoticeXMLResponse>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: WebService output

Alessandro  Vernet
Administrator
In reply to this post by Marc.Benimeli
Marc,

As a side-node, this is also answered in the FAQ:
http://www.orbeon.com/ops/doc/home-faq#saxon-namespace-node

In general, when you have elements in a namespace, I think it is a
good practice to always use prefixes for those elements. This way you
will avoid this type of errors, but maybe more importantly you will
avoid human mistakes that commonly happen when you have a default
namespace declared in a document.

Alex

On 12/7/05, [hidden email] <[hidden email]> wrote:

> Hi,
>
> I have the following message when I invoke a WebService :
>
> "Cannot output a namespace node for the default namespace when the
> element is in no namespace"
>
> The original file is test.xml
> I serialize the output data with processor xml-converter and
> xml-file-serializer in the file : serialize.xml
>
> I don't understand the message.
>
> Can I have some explanation please ?
>
> Marc
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>

--
Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet