Skip to content

Instantly share code, notes, and snippets.

@sirgalleto
Created February 15, 2017 00:06
Show Gist options
  • Save sirgalleto/9178d76caacde54b9ec3675f521857cf to your computer and use it in GitHub Desktop.
Save sirgalleto/9178d76caacde54b9ec3675f521857cf to your computer and use it in GitHub Desktop.
Strong SOAP
// 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