Skip to content
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

Parsing of XML requests #7

Closed
robinvdvleuten opened this issue Jan 21, 2014 · 3 comments
Closed

Parsing of XML requests #7

robinvdvleuten opened this issue Jan 21, 2014 · 3 comments

Comments

@robinvdvleuten
Copy link
Contributor

First I would like to say thanks for the awesome XMLReader implementation you've written. Is it possible that you also add the code to parse incoming XML requests?

<?xml version="1.0"?>
<methodCall>
    <methodName>method.to.call</methodName>
    <params>
        <param>
            <value><i4>41</i4></value>
        </param>
    </params>
</methodCall>
@lstrojny
Copy link
Owner

Thanks for the nice compliment. Being a client only was a conscious decision as I strongly feel one should not introduce more XML/RPC APIs to the world.

@robinvdvleuten
Copy link
Contributor Author

I totally agree and I am not a big fan of XMLRPC APIs, but (too bad) some large open-source projects still support XMLRPC as remote interface.
I asked it more because I was interested in how the loop of the parser would solve a structure like the request XML where you have both a methodName string value and a params array structure next to each other. Your parser now only handles a response in an array structure.

@lstrojny
Copy link
Owner

Probably the loop get’s two modes in generally, first checking for the method name and then deserializing the parameters. But I don't really know, as I never tried it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants