Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to do pre action before sending soap request #55

Open
neilpalima opened this issue Jan 6, 2023 · 1 comment
Open

Way to do pre action before sending soap request #55

neilpalima opened this issue Jan 6, 2023 · 1 comment

Comments

@neilpalima
Copy link

Is there a way where we can do something before sending the soap message?
In my use case, I need to get the soap body and then use this to generate an authorization header.

const client = await createClientAsync("wsdl path");
// get soap body
// do something
client.addHttpHeader('Authorization', 'something generated based on key and soap body') // add soap header
client.CallSoapMethodAsync();
@gomain
Copy link

gomain commented Jan 7, 2023

You may want to look into node-soap Client. The client returned by this library is essentially that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants