Skip to content

Commit

Permalink
docs: add header example
Browse files Browse the repository at this point in the history
  • Loading branch information
tiaguinho committed Jul 5, 2021
1 parent 814c5b8 commit 8779acb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,36 @@ func main() {
log.Println("State: ", result.State)
}
```

#### Set Header params

```go
soap.HeaderParams = gosoap.SliceParams{
xml.StartElement{
Name: xml.Name{
Space: "auth",
Local: "Login",
},
},
"user",
xml.EndElement{
Name: xml.Name{
Space: "auth",
Local: "Login",
},
},
xml.StartElement{
Name: xml.Name{
Space: "auth",
Local: "Password",
},
},
"P@ssw0rd",
xml.EndElement{
Name: xml.Name{
Space: "auth",
Local: "Password",
},
},
}
```

0 comments on commit 8779acb

Please sign in to comment.