Created
February 15, 2017 00:06
-
-
Save sirgalleto/9178d76caacde54b9ec3675f521857cf to your computer and use it in GitHub Desktop.
Strong SOAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Method to save a json object schema | |
function saveJsonDescription(client, service) { | |
const fileDestination = './'; | |
const description = client.describe(); | |
const serviceJobListDescription = description.RTIServiceOrderService.RTIServiceOrderPort[service].input.body; | |
jsonfile.writeFile(`${fileDestination}${service}.schema.json`, serviceJobListDescription, function (err) { | |
if(err) throw new Error(err); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment