PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » XML_RPC » Bug #4205

Need an alias for <methodName>

Details

Request #4205Need an alias for <methodName>
Submitted2005-04-22 16:44 UTC
Fromstevan dot koprivica at gmail dot com
Assigneddanielc
StatusClosed
PackageXML_RPC
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2005-04-22 16:44 UTC] stevan dot koprivica at gmail dot com

Description:
------------
Sutiation here: windows client, and php xmlrpc server. I believe versions are irrelevant.

Some delphi components and its serialize functions are creating message like:

<methodCall>
...
<RPCmethodName>blahblah</RPCmethodName>
</methodCall>

and XML_RPC expects <methodName>. It's quite easy to tweak this in RPC.php (and do it each time new version is published) or to add some preg_replace on $HTTP_RAW_POST_DATA in the starting lines of xmlrpc server.

Reproduce code:
---------------
"Patch" for RPC.php would be in function XML_RPC_ee($parser_resource, $name)... line 388 (in RPC.php,v 1.66):

case 'METHODNAME':
case 'RPCMETHODNAME':

instead of

case 'METHODNAME':

Is there a chance this "patch" of RPC.php to become offical?