Skip to content

Instantly share code, notes, and snippets.

@splinter
Last active June 2, 2016 13:32
Show Gist options
  • Save splinter/d9d4ee81ca3421f7ccbb6cb9213efc8a to your computer and use it in GitHub Desktop.
Save splinter/d9d4ee81ca3421f7ccbb6cb9213efc8a to your computer and use it in GitHub Desktop.
Sample usage of the Jaggery WS module
var ws = require('ws');
var log = new Log();
var stub = new ws.WSStub('http://api.bioinfo.no/wsdl/EchoService.wsdl');
Object.keys(stub.services.EchoService.operations).forEach(function(key){log.info('key ' + key)});
var sayHi = stub.services.EchoService.operations.SayHi;
var payload = sayHi.payloadXML();
payload = payload.replace('?','Meow');
log.info(sayHi.request(payload));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment