Open mayur2011 opened 4 years ago
Hey :wave:
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
Please Help me setup below SOAP request xml which contains AuthHeader also.