Hello, I’d like to know how to validate documents. For instance, I have this document type (based on JSON) where an example of an accepted input is like:
Now, during the flow service, I want to make sure that the inserted input follows exactly like such format. So if even so much the name of the elements are different, then it catches an error. Therefore, if the input is like this:
@DINESH_J Can you tell me about how to put in the conformsTo part? I get the idea that you’re directing to the JSON Document Type you just made, but I’m not sure how to locate that package-wise.
I get the idea that you use this:
testRESTPackage (Package) → people (JSON Document Type)
Is that correct or wrong?
Then, what if the location is this, how do I change that to conformsTo?
testRESTPackage (Package) → documents (folder) → people (JSON Document Type)
@kristain , In webMethods if we are referring against any elements at runtime it should be always fully Qualified Name . The fully qualified service name is comprised of two parts: a folder identifier and the service name
testRESTPackage(Folder name )–> People (element name).
so just right click and copy the name from designer of your JSON documentType and provided as confirmTo of validate service