Conversion of XSD to JSON in Apigee

Hi All,

I have a POC , where I am working on options to convert a XSD file to JSON file. Kindly let me know if there are any out of box policies or any java jar's to achieve this.

Kindly let me know your thoughts on this.

Thanks in advance!

0 4 1,224
4 REPLIES 4

Did you mean, converting XML to JSON? If so, yes, there is an out of the box policy to do that, XML2JSON https://docs.apigee.com/api-platform/reference/policies/xml-json-policy

If you really mean XSD to JSON, can you explain in a bit more detail what you're trying to achieve?

XSD is a way to specify how to convert document formats (typically to/from XML), whereas JSON is a document format itself... You can think of it this way: A JSON object will contain data, an XSD object will contain instructions on how to convert data from one format to another...

Hi @deboraelkin,

I am looking for ways to convert a WSDL file to JSON file.I am looking for any java jar's which can do this conversion. Please let me know your thoughts on this.

Thanks!

A WSDL is a way to specify the interface of a SOAP based web service.

Are you perhaps referring to converting a SOAP based web service into a REST based API (which accepts and returns JSON objects)? If so, Apigee can automatically generate such an API based on the web service specification (ie: its WSDL)

Exposing a SOAP service as an API proxy | Apigee Docs


https://docs.apigee.com › api-platform › develop › exposing-soap-service-...

Hi @deboraelkin,

Thanks!.I will look into this link.