gowsdl
gowsdl copied to clipboard
Possibility to update http header later to http client.
Possibility to add http header later to http client. Possibility for assigning Authorization header to http client
In my case there is a system in between SOAP server which authenticates with Keycloak and I would need to pass the Authorization token in every call with the fresh token in HTTP Header.
for _, client := range clients {
allHeaders := make(map[string]string)
for key, value := range client.GetHttpClientHeaders() {
allHeaders[key] = value
}
allHeaders["Authorization"] = token
client.SetHttpClientHeaders(allHeaders)
}
@c4milo can we merge this I need this functionality as well