[UPHPU] PHP-XML-RPC

Smith, Jeff Jeff.Smith at hollycorp.com
Mon Aug 21 13:57:44 MDT 2006


Sorry I guess I could have posted my finding on this.  I ended up using the file wrapper method.  I didn't want to use the PEAR or xmlrpc-php libraries because they both have open security issues.  Plus I needed to keep strict record of all procedure calls for SOX compliancy. 

________________________________

From: Lonnie Olson [mailto:fungus at aros.net]
Sent: Mon 8/21/2006 11:55 AM
To: UPHPU.org List
Cc: Smith, Jeff
Subject: Re: [UPHPU] PHP-XML-RPC




On Aug 15, 2006, at 2:37 PM, Smith, Jeff wrote:

> I am trying to implement a XML-RPC server using PHP.  I need access to
> the content section of the request.  Normally this is where "$_POST"
> variable would be encode if it was Content-Type:text/html.  I don't 
> want
> to use the XML-RPC libraries out there as they are over kill for my
> purposes.  Has anyone done anything like this before?

See the PEAR library and don't reinvent the wheel if you don't have to.
http://pear.php.net/manual/en/package.webservices.xml-rpc.php

There are two ways to access the raw post data.
1. $HTTP_RAW_POST_DATA
    affected by config option always_populate_raw_post_data
    http://php.net/manual/en/ini.core.php
2. reading it from this file wrapper php://input
    http://php.net/manual/en/wrappers.php.php

--lonnie 



More information about the UPHPU mailing list