apache - How to edit / format XML response in web service -


i using apache axis2 write first web service. following official link.
observed if call sample stockquoteservice given in link, gives following indented response :

<ns:getpriceresponse xmlns:ns="http://pojo.service.quickstart.samples/xsd">    <ns:return>42</ns:return> </ns:getpriceresponse>   

i want response in specific xml format

<answers>     // answers should in single `<answers>` tag.   <answer> answer1 </answer>   // each answer should in `<answer>` tag.   <answer> answer2 </answer> </answer> 

how can format xml response , add xml tag ?

~ajinkya.

you should use xsl transformations (xslt) this.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -