Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .get(
- "/test",
- async ctx =>
- new Promise((resolve, reject) => {
- soap.createClient(
- wsdl,
- {
- request: soapReq,
- endpoint: "https://matthew.us-west-2.aws.symantecdlp.com/this/"
- },
- function(err: string, client: any) {
- if (err) reject(err);
- client.getUserInfo(getUserInfo_args, function(
- err: string,
- result: any,
- rawResponse: any,
- soapHeader: any,
- rawRequest: any
- ) {
- if (err) {
- console.log("Response");
- console.log(rawResponse);
- console.log("Request");
- console.log(rawRequest);
- reject(err);
- } else {
- ctx.body = result;
- resolve();
- }
- });
- }
- );
- })
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement