Last active
June 2, 2016 13:32
-
-
Save splinter/d9d4ee81ca3421f7ccbb6cb9213efc8a to your computer and use it in GitHub Desktop.
Sample usage of the Jaggery WS module
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
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