This content has been marked as final.
Show 4 replies
-
1. Re: Namespace declaration in every element of web service re
thomas.diesler Aug 1, 2006 9:09 AM (in response to gori)What version of JBossWS is this?
What style/use is this? -
2. Re: Namespace declaration in every element of web service re
nerbrate Aug 14, 2006 5:41 AM (in response to gori)I'm wondering about the exact same thing.
We use jbossws-1.0.2.GA on jboss-4.0.4.GA
document, literal, wrapped (style, use, paramstyle)
It is a jsr181 ws-endpoint with a ejb3 stateless session bean service endpoint.
From the response generated by our web-service:<ns_doc:doc xmlns:ns_doc='http://service.our.website.org/jaws'> <ns_doc:docId>XXXXXXXXX</ns_doc:docId> <ns_doc:documents> <ns_doc:agreement xmlns:ns_doc='http://service.our.website.org/jaws'> <ns_doc:agreementCode xmlns:ns_doc='http://service.our.website.org/jaws' xsi:nil='1'/> <ns_doc:agreementType xmlns:ns_doc='http://service.our.website.org/jaws'>XXXXXXX</ns_doc:agreementType> <ns_doc:customerNumber xmlns:ns_doc='http://service.our.website.org/jaws'>12345678</ns_doc:customerNumber> <ns_doc:valid xmlns:ns_doc='http://service.our.website.org/jaws'>false</ns_doc:valid> </ns_doc:agreement> </ns_doc:documents>
The node "doc" contains the declaration of the ns_doc namespace, and all nodes directly below this one does not. But all further nested elements contain the namespace declaration even though they all use the same namespace.
In large messages the duplicated namespace declarations make the messages uneccessary large and very hard to read for a human. -
4. Re: Namespace declaration in every element of web service respon
hvnter Feb 8, 2011 10:39 AM (in response to thomas.diesler)I encounter the same problem in JBossWS 2.0.1 SP2 (native).
When I print the XML from a Document object it looks fine. But when I add the same Document object to a SOAPBody object and then print the results from the method extractContentAsDocument() the namespace is declared in every element.
https://issues.jboss.org/browse/SOA-2869
Message was edited by: Albert Örwall