Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: A problem with RPC::Any::Server::XMLRPC::CGI

by trwww (Priest)
on Sep 21, 2010 at 01:19 UTC ( #860972=note: print w/replies, xml ) Need Help??


in reply to A problem with RPC::Any::Server::XMLRPC::CGI

Are you using an RPC client in another language besides perl?

See http://search.cpan.org/~rjray/RPC-XML/lib/RPC/XML.pm#Data_Classes.

The RPC::XML::string class is what you need.

Replies are listed 'Best First'.
Re^2: A problem with RPC::Any::Server::XMLRPC::CGI
by Anonymous Monk on Sep 22, 2010 at 07:50 UTC
    RPC client is in another language... The problem is XMLRPC::CGI returns different parameters types depending on the situation.

    if "2" is passed back, some kind pf number type is returned.

    if "hello" is passed back, string type is returned.

    My client is not flexible to handle returned values which can change their types depending on the content.

      Ok, I found it.

      This is what have to be used.

      $RPC::XML::FORCE_STRING_ENCODING=1;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://860972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2019-03-23 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (114 votes). Check out past polls.

    Notices?