Skip to content

Commit

Permalink
fix: namespace actions with open like WDSL describes
Browse files Browse the repository at this point in the history
this is related to an issue on the main branch hooklift#243  We are just hardcoding a fix for opengi use within the org
  • Loading branch information
Roxxers committed Feb 14, 2024
1 parent 039e0b6 commit 24b3010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion soap/soap.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type SOAPEnvelopeResponse struct {
type SOAPEnvelope struct {
XMLName xml.Name `xml:"soap:Envelope"`
XmlNS string `xml:"xmlns:soap,attr"`
XmlOpen string `xml:"xmlns:open,attr"`
Headers []interface{} `xml:"soap:Header"`
Body SOAPBody
}
Expand Down Expand Up @@ -410,7 +411,8 @@ func (s *Client) call(ctx context.Context, soapAction string, request, response
retAttachments *[]MIMEMultipartAttachment) error {
// SOAP envelope capable of namespace prefixes
envelope := SOAPEnvelope{
XmlNS: XmlNsSoapEnv,
XmlNS: XmlNsSoapEnv,
XmlOpen: "www.opengi.co.uk",
}

envelope.Headers = s.headers
Expand Down

0 comments on commit 24b3010

Please sign in to comment.