Created
March 1, 2016 15:01
-
-
Save chexov/1cf97afe7542a2833c08 to your computer and use it in GitHub Desktop.
soap js magick
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
| params | |
| { host: '5.2.125.212:50006', | |
| wsdl: '/ws/scHumanTaskControl.wsdl:HumanTaskControlWS?WSDL' } | |
| > params['path'] = '5.2.125.212:50006' | |
| '5.2.125.212:50006' | |
| > var soapClient = easysoap.createClient(params); | |
| undefined | |
| > soapClient.getAllFunctions() | |
| Promise { <pending> } | |
| > .then((functionArray) => { console.log(functionArray); }) | |
| Invalid REPL keyword | |
| > .catch((err) => { throw new Error(err); }); | |
| Invalid REPL keyword | |
| > | |
| > soapClient.getAllFunctions().then((functionArray) => { console.log(functionArray); }) | |
| Promise { <pending> } | |
| > [ 'getAllHumanTaskRequestHeaders', | |
| 'getAllHumanTaskRequests', | |
| 'getAssignedHumanTaskRequests', | |
| 'getHumanTaskOutput', | |
| 'getHumanTaskRequest', | |
| 'getHumanTaskRequestsByJobIds', | |
| 'getUnassignedHumanTaskRequests', | |
| 'submitHumanTaskResult', | |
| 'version_1_3_1_0' ] | |
| > soapClient.getMethodParamsByName('getAllHumanTaskRequests')..then((methodParams) => {console.log(methodParams); }) | |
| ... ) | |
| ... '; | |
| SyntaxError: Unexpected token . | |
| at Object.exports.createScript (vm.js:24:10) | |
| at REPLServer.defaultEval (repl.js:225:25) | |
| at bound (domain.js:287:14) | |
| at REPLServer.runBound [as eval] (domain.js:300:12) | |
| at REPLServer.<anonymous> (repl.js:417:12) | |
| at emitOne (events.js:95:20) | |
| at REPLServer.emit (events.js:182:7) | |
| at REPLServer.Interface._onLine (readline.js:211:10) | |
| at REPLServer.Interface._line (readline.js:550:8) | |
| at REPLServer.Interface._ttyWrite (readline.js:827:14) | |
| > soapClient.getMethodParamsByName('getAllHumanTaskRequests')..then((methodParams) => {console.log(methodParams); }); | |
| ... ; | |
| ... );l | |
| ... l | |
| ... } | |
| ... | |
| > | |
| > | |
| > soapClient.getMethodParamsByName('getAllHumanTaskRequests').then((methodParams) => {console.log(methodParams); }); | |
| Promise { <pending> } | |
| > { request: | |
| [ { name: 'getAllHumanTaskRequests', | |
| namespace: 'tns', | |
| type: 'getAllHumanTaskRequests' } ], | |
| response: | |
| [ { name: 'getAllHumanTaskRequestsResponse', | |
| namespace: 'tns', | |
| type: 'getAllHumanTaskRequestsResponse' } ] } | |
| > soapClient.call({ | |
| ... method: 'getAllHumanTaskRequests', | |
| ... params: { }) | |
| ... | |
| > soapClient.call({ method: 'getAllHumanTaskRequests'}) | |
| Promise { <pending> } | |
| > | |
| (To exit, press ^C again or type .exit) | |
| > soapClient.call({ method: 'getAllHumanTaskRequests'}).then((callResponse) => { console.log(callResponse);}) | |
| Promise { <pending> } | |
| > | |
| > | |
| > | |
| > | |
| > | |
| > | |
| > soapClient.call({ method: 'getAllHumanTaskRequests'}).then((callResponse) => { console.log(callResponse);}).catch((err) => { throw new Error(err); }); | |
| Promise { <pending> } | |
| > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment