Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9089403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:08:27+00:00 2026-06-16T22:08:27+00:00

Most of the current docs are with reference to SOAP-to-JSON, I was hoping whether

  • 0

Most of the current docs are with reference to SOAP-to-JSON, I was hoping whether there are any reference material or tutorials when using WSO2 ESB to transform JSON response object to SOAP service. Thanks in advance.

Sample service:
http://api.statsfc.com/premier-league/table.json?key=free

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:08:28+00:00Added an answer on June 16, 2026 at 10:08 pm

    You can achieve this with a configuration similar to the following; (We must set the “messageType” property to “text/xml” to engage the SOAP message builder when responding back to the client.)

    <proxy xmlns="http://ws.apache.org/ns/synapse" name="JSONToSOAPService" transports="https,http">
       <target>
          <outSequence>
             <log level="full"/>
             <property name="messageType" value="text/xml" scope="axis2"/>
             <send/>
          </outSequence>
          <endpoint>
             <address uri="http://api.statsfc.com/premier-league/table.json?key=free"/>
          </endpoint>
       </target>
       <description></description>
    </proxy>
    

    But if your JSON response object is exactly same as the one you get from the sample service that you’ve provided (ie., if it is an array of anonymous objects), the ESB is going to cut down the response to include only the first element (see following SOAP response).

    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
        <soapenv:Body>
            <position>1</position>
            <team_id>10260</team_id>
            <team>Manchester United</team>
            <played>21</played>
            <won>17</won>
            <drawn>1</drawn>
            <lost>3</lost>
            <for>54</for>
            <against>28</against>
            <difference>26</difference>
            <points>52</points>
            <info>championsleague</info>
        </soapenv:Body>
    </soapenv:Envelope>                    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using HTMLPurifier in a current project and I'm not sure about the most
I have been using Asynctask most of time, but in the current app the
Here is my most current code that is not sending any values to the
So in most current browsers there is the feature of Tabs, is there a
I've started looking at jQuery's built-in tabs functionality here: http://docs.jquery.com/UI/Tabs Is there any way
Apologies, my question may be incorrect, but CLIENT_LOCALE seems like the current most-likely culprit:
Problem: From the most current day per person, count the number of consecutive days
I have 6 months of data, how do I replicate only the most current
I'm supporting 10.4+ by picking the most-current API at runtime: if ([fileManager respondsToSelector:@selector(removeItemAtPath:error:)]) [fileManager
When accessing http://www.example.net , a CSV file is downloaded with the most current data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.