Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes How to optimize namespace definitions in SOAP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to optimize namespace definitions in SOAP?" Watch "How to optimize namespace definitions in SOAP?" New topic

How to optimize namespace definitions in SOAP?

Ole Nomann

Joined: Oct 10, 2011
Posts: 1
Now this is going to be a little vague, insofar as I have a barely adequate grasp of the subject. I'm hoping that the good people in here will understand my question anyway:

I am revising a webservice that wastes a lot of bandwidth on redundant namespace definitions. To wit, the answer to the webmethod hentAlleUNILoginAnsatte is this (abbreviated):

My question is: How can I reduce the redundancy of xmlns:java="" (in order to save 60% bandwidth, and make the result at bit more human readable)? My own guess is that the java namespace should be moved outside the repeating tags, approximately like this:

But I really don't now how to do that (Oh, I have tried... ).

The technical details:

* Bea weblogic server
* Relevant: JWS Annotation Tags:

I've probably not given enough information here, but please give me a hint as to what is missing, and where to start finding it.

Regards, Ole.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to optimize namespace definitions in SOAP?
Similar Threads
sendind SOAP request
Namespace in body element how to define in WSDL
Response <item xsi:nil="true" xmlns:xsi=""/>
Namespace is removed from Responce on WebSphere in SOAP based Service