-
Notifications
You must be signed in to change notification settings - Fork 197
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
unmarshal support for onvif soap response #2
Comments
I agree. large xml file is too tedious to handle. |
a little busy ,but PRs are always welcomed.😊 |
Hi! I used this code for unmarshalling type ProfileResponse struct {
And for getting profiles: profiles.Body.GetProfilesResponse.Profiles |
if anybody has figured out the unmarshalling of XML responses please let me know , or if someone has started working , we can collaborate... |
Any progress on this? |
I have done this in a kind of hacky way :
and then you just unmarshal into the Response struct
|
Works flawlessly, thank you 👍 |
thanks this does work for string, but integers are set to 0, even if there is a valid response in the body
And the response
|
@cedricve make sure your struct is correct for which you are unmarshalling. You will need to understand the types.
also fields like Resolution point to another struct which is like this:
xsd Int is basically these structs are autogenerated from ONVIF's xsd |
Hi, do we have concrete solution on this issue (other than the solution mentioned above) or anybody working on this and planning to release in near future. |
currently there is soap xml marshaling tags only for the request structs.
for response structs there are no xml unmarshal capabilities.
planning to add that support? there is any technical limitation to have that implemented or its only a matter of mapping each struct?
The text was updated successfully, but these errors were encountered: