File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes How to alter xml output of SOAP reponse 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 alter xml output of SOAP reponse" Watch "How to alter xml output of SOAP reponse" New topic

How to alter xml output of SOAP reponse

Ranjit DK

Joined: Apr 17, 2009
Posts: 1
I’m using Axis2 to provide a web service, but it would helpful if I could customize the SOAP response.
Right now I’m getting the response as mentioned below, But I have to eliminate the tags <ns:getReportDetailsResponse> and <ns:return>

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
A similar thing bugged me for a while and still does ;-) – the relation between the WSDL document and the SOAP one.

When is SOAP a good idea in a project says -

That's basically it. So, the SOAP runtime supplies all the code for the demarshalling of the request, invoking an adapter and then marshalling the response packet.

So, the SOAP runtime is responsible for the construction of the SOAP response.

Hope it helps.

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10825

Hi Ranjit,

Welcome to the Ranch.
In future, while posting code, please use the code tags.
I have edited your existing post. As you can see it is much more readable and easier to understand.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: How to alter xml output of SOAP reponse
It's not a secret anymore!