Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzi1 authored May 9, 2020
1 parent 5100b2d commit 0ba782f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions soap/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func doRoundTrip(c *Client, setHeaders func(*http.Request), in, out Message) err
URNAttr: c.URNamespace,
NSAttr: c.Namespace,
TNSAttr: c.ThisNamespace,
XSIAttr: XSINamespace,
//XSIAttr: XSINamespace,
Header: c.Header,
Body: in,
}
Expand All @@ -114,9 +114,9 @@ func doRoundTrip(c *Client, setHeaders func(*http.Request), in, out Message) err
if req.NSAttr == "" {
req.NSAttr = c.URL
}
if req.TNSAttr == "" {
/*if req.TNSAttr == "" {
req.TNSAttr = req.NSAttr
}
}*/
var b bytes.Buffer
err := xml.NewEncoder(&b).Encode(req)
if err != nil {
Expand Down

0 comments on commit 0ba782f

Please sign in to comment.