Hi I have this part of code:
xmlenc.encrypt(message, options509, function(err, result) { message = result console.log("asdsadasdasdasdsa",result) }) and then I have this part of code: xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<" + envelopeKey + ":Envelope " + xmlnsSoap + " " + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + encoding + this.wsdl.xmlnsInEnvelope + '>' + ((self.soapHeaders || self.security) ? ( "<" + envelopeKey + ":Header>" + (self.soapHeaders ? self.soapHeaders.join("\n") : "") + (self.security && !self.security.postProcess ? self.security.toXML () : "") + "</" + envelopeKey + ":Header>" ) : '' ) + "<" + envelopeKey + ":Body" + (self.bodyAttributes ? self.bodyAttributes.join(' ') : '') + (self.security && self.security.postProcess ? ' Id="_0"' : '') + ">" + message + "</" + envelopeKey + ":Body>" + "</" + envelopeKey + ":Envelope>"; Isse is that the second part execute before first part. I need somehow block first part so that program will continue with first part of code gets result. Other way is to put second part of code in first part of code but then I get error as this.wsdl.xmlnsInEnvelope does not set. How can I block first part of code or how to achive that "this.wsdl. xmlnsInEnvelope" will be set -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/bd5bc022-b651-4e84-a8d2-d39ad896c6dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.