wood burning stoves 2.0*
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
Author

How to alter xml output of SOAP reponse

Ranjit DK
Greenhorn

Joined: Apr 17, 2009
Posts: 1
Hi,
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: 1167
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: 10170
    
    8

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.
http://faq.javaranch.com/java/UseCodeTags

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to alter xml output of SOAP reponse
 
Similar Threads
Axis2 Issue, Please Help!
XmlException on calling WSDL2Java
axis2/webshpere response != axis2/glassfish response........ why?
What is "portName" in Webservice Invocation Framework.
Need help in writing WebService client using XMLBeans