-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Unable to prepare a soap request which require Authheader #49
Comments
Hey 👋 I was faced with the same problem and here's how I managed to solve it: httpClient := &http.Client{
Timeout: 5 * time.Second,
}
soap, err := gosoap.SoapClient("http://some/fancy/location.wsdl", httpClient)
if err != nil {
log.Fatalf("SoapClient error: %s", err)
}
//set your auth headers here
soap.HeaderParams = gosoap.HeaderParams{
"AuthHeader" : map[string]interface{}{
"Username" : "admin",
"Password" : "7338b6c1702d",
},
}
//execute request
// _, err = soap.Call("SomeAction", params) This is in reference to #8 . I hope its not too late, cheers |
thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please Help me setup below SOAP request xml which contains AuthHeader also.
The text was updated successfully, but these errors were encountered: