Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to alter xml output of SOAP reponse

 
Ranjit DK
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic