Register or Login to Your Account
How to convert json to string? and convert that string to xml? and how to validate that xml with xsd? need a proper explanation and also validation logic with a validate method.. Kindly reply
In 9.x, we have built-in services in WmPublic package (WmPublic.pub.json.*) 1.pub.json:documnetToJSONString 2.pub.json:jsonStreamToDocument 3.pub.json:jsonStringToDocumnet convert your JSON string into document and then documentToXMLString use below service to validate your input xml (read built-in services guide for reference) 1.pub.schema:createXSD 2.pub.schema:validate --> If your are using 8.x or below write java service to convert json string into xml.
Thanks Venu.
Tomas
How to convert json to string? and convert that string to xml?
and how to validate that xml with xsd?
need a proper explanation and also validation logic with a validate method..
Kindly reply
Venu
In 9.x, we have built-in services in WmPublic package (WmPublic.pub.json.*)
1.pub.json:documnetToJSONString
2.pub.json:jsonStreamToDocument
3.pub.json:jsonStringToDocumnet
convert your JSON string into document and then documentToXMLString
use below service to validate your input xml (read built-in services guide for reference)
1.pub.schema:createXSD
2.pub.schema:validate
--> If your are using 8.x or below write java service to convert json string into xml.
Tomas
Thanks Venu.