-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/composite properties and authentication #8
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8 +/- ##
==========================================
- Coverage 71.26% 70.52% -0.74%
==========================================
Files 3 3
Lines 174 190 +16
==========================================
+ Hits 124 134 +10
- Misses 47 52 +5
- Partials 3 4 +1
Continue to review full report at Codecov.
|
Just adding here some info about params := gosoap.Params{
"String": "value",
"Test": map[string]interface{}{
"Test2": "value2",
},
"Booking": []map[string]interface{}{
map[string]interface{}{
"Booking": map[string]interface{}{
"Day": "asd",
"Room": "lol",
},
},
},
} Becomes: <Booking>
<Booking>
<Day>asd</Day>
<Room>lol</Room>
</Booking>
</Booking>
<Test>
<Test2>value2</Test2>
</Test>
<String>value</String> |
@Fale Maybe I have a fringe case, but is it possible to add attributes to params as well as values? See params := gosoap.Params{
"Booking": []map[string]interface{}{
map[string]interface{}{
"Booking": map[string]interface{}{
"AccountInfo": map[string]interface{}{
`xml:"num,attr"`: "12345",
`xml:"secret,attr"`: "topsecret",
`xml:"country,attr"`: "US",
`xml:"laungauge,attr"`: "en",
},
"Day": "asd",
"Room": "lol",
},
},
},
} <Booking>
<Booking>
<AccountInfo num="12345" secret="topsecret" country="US" language="en" />
<Day>asd</Day>
<Room>lol</Room>
</Booking>
</Booking> Might also be related to #23 |
This is further work I did on top of #4
This does: