Hi all,
Just came across this. I'm new here and hope it is not a known prob or (more likely) a bug in my understanding of Strophe.
If I do these calls like this ...
xmpp_stanza_set_name(method_name, "methodName");
xmpp_stanza_set_text(method_name, "examples.getStateName");
fprintf(stderr, "RPC_CALL method_name text => '%s'\n", xmpp_stanza_get_text(method_name));
... I get ...
RPC_CALL method_name text => '(null)'
If I reverse the order like ...
xmpp_stanza_set_text(method_name, "examples.getStateName");
xmpp_stanza_set_name(method_name, "methodName");
... I get ...
RPC_CALL method_name text => 'examples.getStateName'
... which is much nicer :).
So, I guess, it seems like a bug ?