Ask a Question

Develop an API to convert a JSON client request to xml and vise versa in SoapUI

TaraWilfred
New Contributor

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.

4 REPLIES 4

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.

nmrao
Champion Level 3

@TaraWilfred,

Please check this video to see if this helps.

https://www.youtube.com/watch?v=L2SMZ9bbDvE

No idea about WSO2 app.


Regards,
Rao.

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?

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

http://ideone.com/7Jrqkd



Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: