daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Mar 8th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   .get(
  2.     "/test",
  3.     async ctx =>
  4.       new Promise((resolve, reject) => {
  5.         soap.createClient(
  6.           wsdl,
  7.           {
  8.             request: soapReq,
  9.             endpoint: "https://matthew.us-west-2.aws.symantecdlp.com/this/"
  10.           },
  11.           function(err: string, client: any) {
  12.             if (err) reject(err);
  13.  
  14.             client.getUserInfo(getUserInfo_args, function(
  15.               err: string,
  16.               result: any,
  17.               rawResponse: any,
  18.               soapHeader: any,
  19.               rawRequest: any
  20.             ) {
  21.               if (err) {
  22.                 console.log("Response");
  23.                 console.log(rawResponse);
  24.                 console.log("Request");
  25.                 console.log(rawRequest);
  26.                 reject(err);
  27.               } else {
  28.                 ctx.body = result;
  29.                 resolve();
  30.               }
  31.             });
  32.           }
  33.         );
  34.       })
  35.   );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top