Skip to content
New issue

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

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

Already on GitHub? # to your account

client.addSoapHeader() dynamic SOAP header #1062

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

kqkq
Copy link
Contributor

@kqkq kqkq commented Apr 25, 2019

I need to add a "message ID" (a random UUID) on each SOAP request. But I found client.addSoapHeader() won't accept a function as a parameter. The dynamic SOAP header feature only works in server.addSoapHeader(). So I made some change to enable it for the client.

I'm relatively new here. I wonder if you are interested in this feature or I just misunderstand the documentation and the dynamic header should be added in another way.

If I am right and you also believe the feature should be added; I will create test cases for it and get the documentation updated.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 93.045% when pulling beb9a23 on kqkq:client-dynamic-soap-header into 2f033b1 on vpulim:master.

@coveralls
Copy link

coveralls commented Apr 25, 2019

Coverage Status

Coverage increased (+0.04%) to 93.326% when pulling 8bf9068 on kqkq:client-dynamic-soap-header into 2f033b1 on vpulim:master.

@kqkq kqkq force-pushed the client-dynamic-soap-header branch from beb9a23 to f34267b Compare April 25, 2019 15:17
@jsdevel
Copy link
Collaborator

jsdevel commented Apr 25, 2019

please add a test

@kqkq kqkq force-pushed the client-dynamic-soap-header branch from f34267b to e7abf10 Compare April 27, 2019 10:28
@kqkq kqkq force-pushed the client-dynamic-soap-header branch from e7abf10 to 8bf9068 Compare April 29, 2019 03:45
@kqkq
Copy link
Contributor Author

kqkq commented Apr 29, 2019

Tests updated 😀

@jsdevel jsdevel merged commit b089134 into vpulim:master Apr 29, 2019
@jsdevel
Copy link
Collaborator

jsdevel commented Apr 29, 2019

thanks!

@kqkq kqkq deleted the client-dynamic-soap-header branch April 30, 2019 03:45
lfantone pushed a commit to flybondi/node-soap that referenced this pull request May 20, 2019
* Fixed some issues with xsd elements (vpulim#1057)

* Fixed some issues with xsd elements

* Made the fix more specific to the particular usecase

* Added a test for aliased namespaces

* Release v0.27.0

* Move @types/request to dependencies (vpulim#1059)

soap's d.ts files depend on request. Unfortunately, since request
doesn't ship its own types, that means consumers of soap also need
@types/request. Currently @types/request is just a dev dependency, which
doesn't get installed by `npm install`. The fix is to move
`@types/request` to the dependencies list.

The error looks like this:

```
node_modules/soap/lib/client.d.ts(4,26): error TS7016: Could not find a declaration file for module 'request'. '../../../tests/cases/user/soap/node_modules/request/index.js' implicitly has an 'any' type.
```

Note that this only shows up when consumers compile with --strict, which is
fairly common.  Typescript's user-code tests include soap and detected
it after 0.27 shipped.

* Release v0.27.1

* Updated read me to reflect changes in soap.listen (vpulim#1060)

* Updated Read.me to reflect changes in soap.listen

* Updated Readme.md

* Updated Readme.md

* Updated Readme.md

* types: move forceSoap12Headers to IWsdlBaseOptions (vpulim#1063)

"forceSoap12Headers" works on server since bcc41e6. So, this option
should be available to server as well.

* client.addSoapHeader() dynamic SOAP header (vpulim#1062)

* Added support for parsing of doubles and floats. (vpulim#1065)

* Added support for parsing of doubles and floats.
package-lock updated due to out-of-date version.

* Reverting changed package-lock file.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants