|
| How to limit namespace output in a weblogic webservice using xmlbeans |
 |
Thu, 13 Dec 2007 05:59:36 -080 |
Hi there.
We're using xmlbeans as input and ouput of our webservices on a weblogic 9.2.0
server. This works great, except that the output produced is really large due to
the fact that namespace declarations are on almost every line in the response.
Since I am NOT invoking the save/xmlText methods myself, I cannot pass in the
appropriate XmlOptions object to control the output format.
Here is a snippet from the soap response taken from the WebLogic Test Client:
=============================
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<m:getResponse xmlns:m="http://services">
<miem:Response xmlns:miem="http://miem.com/miemm"
RequestId="test" ResponseId="test_response"
Status="SUCCESS"
Completed="2007-12-13T08:52:16.103-05:00">
<hits:Report xmlns:hits="http://miem.com/hits">
<hits:Entry xmlns:urn="ic:ism:v2" urn:type="U"
Id="2000090">
<md:Flag xmlns:md="http://miem.com/md"
value="US" />
<md:MMSI xmlns:md="http://miem.com/md"
value="366958460" />
<md:Name xmlns:md="http://miem.com/md"
value="BALTIMORE" />
=============================
As you can see, the 'md' namespace declaration is repeated on each 'Entry'
element. How can I push the namespace declarations up to the top-level
element?
Thanks for any help you can provide!
|
| Post Reply
|
|
|
|
|
|
|
|
|
|