Announcement Announcement Module
Collapse
No announcement yet.
Problem In Getting web service output (CXF) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem In Getting web service output (CXF)

    Hi,
    Im having a problem in getting output like this

    <User id="1000" email="SampleatOne.com">
    <name>ONE</name>
    <Marks id='999' aggregate="77%">1777</Marks>
    </User>


    Actually Im using Spring with CXF and im getting output like this which i don't need

    <ns1:getUserDetailsWithMarksResponse>
    <ns1:User id="1000" email='Sampleatone.com'>
    <name>ONE</name>
    <ns1:Marks id="999" aggregate="77%">
    <Total>77/100</total>
    </ns1:Marks>
    </ns1:User>
    </ns1:getUserDetailsWithMarksResponse>


    Can anyone pls help me to get the output

    Thanks In Advance

  • #2
    The form of the soap requests and responses is given by the soap spec and wsdl, and can't be changed. What you can do is transform the response in some other xml format using xslt.

    Comment


    • #3
      Can u please give me a sample to use XSLT in webservice CXF

      Comment

      Working...
      X