Results 1 to 3 of 3

Thread: Problem In Getting web service output (CXF)

  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Default 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. #2
    Join Date
    Sep 2004
    Posts
    1,086

    Default

    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    2

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •