Community
Participate
Working Groups
Build Identifier: 2.2.0 Hi, SQL statement generated as collection contains repetitive xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" declaration. I.e.: <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <srvc:getDataResponse xmlns="urn:PGDB" xmlns:srvc="urn:PGDBService"> <srvc:result> <sRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>1</id> <text1>t1</text1> </sRecord> <sRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>2</id> <text1>t1</text1> </sRecord> </srvc:result> </srvc:getDataResponse> </env:Body> </env:Envelope> Could it be moved please to the envelope, body or better yet wrapper element to avoid repetition and save on the size of the document? It becomes an noticeable overhead on big collections. Thank you. Reproducible: Always Steps to Reproduce: 1. Define SQL statement as collection 2. Generate WebService 3. Invoke it
Created attachment 192149 [details] Builder Configuration
I've reproduced the problem ... now see if I can fix it
Created attachment 195134 [details] Proposed fix.
Created attachment 195135 [details] Supporting and modified test cases.
Created attachment 196138 [details] Proposed fix v2 - added XML Schema namespace declaration as well
Created attachment 196139 [details] Supporting test cases v2 - adjusted instance docs to reflect XML Schema namespace declaration being added
We now write out both the XML Schema and XML Schema Instance namespace declarations on the <envelope> element. Reviewed by: michael.norman@oracle.com Tests: all unit tests pass as expected; SQLAsCollectionTestSuite Revision: 9423
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink