Develop an API to convert a JSON client request to xml and vise versa in SoapUI
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Develop an API to convert a JSON client request to xml and vise versa in SoapUI
Given a hosted back end service I need to develop an API. Is there a way to use the WSO2 Application Server product to develop the API and use SoapUI to develop that API that can take a client request which is given in json format and convert it to a xml format and vise versa. I am new to API creation and an explanation with detailed steps will be much appreciated.
Thanks in advance.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Given a hosted back end service I need to develop an API. Is there a way to use the WSO2 Application Server product to develop the API and use SoapUI to develop that API that can take a client request which is given in json format and convert it to a xml format and vise versa. I am new to API creation and an explanation with detailed steps will be much appreciated.
Thanks in advance.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check this video to see if this helps.
https://www.youtube.com/watch?v=L2SMZ9bbDvE
No idea about WSO2 app.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a million. This seems to be almost what I was looking for. Is there a way to create an API rather than a mock API to convert whatever client request that comes in JSON format to XML or vise versa?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if I got your question right.
Regarding conversion from Json to xml or vice-versa, it is directly depends on the data.
See below sample xml to json:
https://github.com/nmrao/groovyScripts/blob/master/json/ConvertDBResultToJson.groovy
Online demo for the same (above) is here
Regards,
Rao.
