I am new to SOAP and I need to use it here.
I am trying to send a SOAP request to an external endpoint.
For it to work I have to sign the SOAP request multiple times using certificates and encrypt it.
I tried the node-soap package using the WSSecurityCert function giving it the private key, public key and the password but this only lets me sign it once.
Using the function setSecurity twice didn't add two signatures.
How I understand it the soap package lets you configure everything but only creates the XML in the end. That means I can only view the created XML after I have sent it.
My questions are:
- Is there a way to only sign the XML and get it back and then sign it again and encrypt everything in the end? Doing the process manually.
- Are there any other active packages or ways to achive this using nodejs?
try doing this