-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic support for WSS Security header: new structs WSSSecurityH…
…eader, WSSUsernameToken and its child structs WSSUsername and WSSPassword. XML namespace problems are dealt with by using vania-pooh's workaround: golang/go#9519 (comment) Convenience function "NewWSSSecurityHeader" to ease header creation (the header is not automatically added to the SOAP client). "SetHeader" method is kept for compatibility. There is a new "AddHeader" method to add headers to the SOAP call. There is now support for several headers instead of only one. Cosmetic changes in header_tmpl.go to sort import names alphabetically. Sample code: ... hdr := myservice.NewWSSSecurityHeader("sampleuser", "samplepassword", "1") // "1" is for 'mustUnderstand' attribute; empty if not specified myserviceClient.AddHeader(hdr) ...
- Loading branch information
Showing
3 changed files
with
108 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters