-
Notifications
You must be signed in to change notification settings - Fork 95
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
Handling Nil in the XML-RPC #84
Comments
There's this pull request, but it doesn't implement decoding: #75 |
Looking at the spec nil values are not allowed, so whatever API you are talking to might not be XML-RPC. - http://xmlrpc.com/spec.md |
All of the mentioned resources are not the offical spec. Python also has an option to allow None as a type but the option is not spec conform and as such their implementations all differ a bit. As this library is in minimal maintenance mode I would guess that such a feature is really out of scope. |
nil is supported in almost every library i can find there |
Yes that is true, but that link explicitly names SOAP in its title which is a somewhat similar but different protocol. |
nil is indeed an extension, but it's a very useful one for obvious reasons and is also a widespread one (as can be inferred from it being mentioned on the wiki page). According to old notes Java's apache-xmlrpc client was the only one which didn't either support it out of the box (as php does, somewhat problematically) or via a flag (python, ruby). However it supports userland extensions so a client can hook in a custom type provider to handle nils when that's what the server needs. |
This project is a major help in for me and it freed up a lot of hours of my time.
This is not a bug it is an Enhancement request
but I think that this library is not parsing the nil values from XML-RPC to GO the right way
GO-PLAYGROUND
for example i have this XML-RPC
and I am trying to parse it into this type structure
in some cases, it will throw an error, and in some cases it will ignore the XML-RPC nil value and define the pointer as an empty value,
for example, if the XML-RPC has a nullable string and the type has a pointer type of a string the parser shouldn't define the string in a nil case it should leave it nil
The text was updated successfully, but these errors were encountered: