Skip to main content

How to alter xml output of SOAP reponse

2 replies [Last post]
ranjit_d
Offline
Joined: 2009-04-17

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 and

.
.
.

Does anybody have idea about how to do it?

Thanks in advance!

i have added wsdl, xsd, and service.xml details below,

<?xml version="1.0" encoding="UTF-8"?>

xyz web services

org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier

axis2ServiceEndpoint

<?xml version="1.0" encoding="UTF-8"?>

Output XML schema

..................

.............................

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ipsi
Offline
Joined: 2009-02-04

It would help if you provided a working example. There is code missing from the WSDL.

For example, where is the sws:ResponseMessage element?

ranjit_d
Offline
Joined: 2009-04-17

Please check this wsdl file content. i verified the output content object of type OMElement at axis2endpoint. it contains only the tag and its content

But when i check the xml content on the browser it shows



.
.
.


can we eliminate return and getReportDetailsResponse tags using some config with wsdl?