2008年12月4日星期四

Re: [fw-webservices] HELP: zend xmlrpc client behind firewall/proxy

I assume the xmlrpc will use Zend_Http therefore you should just need
to initialize the proxy adpater before you call the xmlrpc.

http://framework.zend.com/manual/en/zend.http.client.adapters.html#zend.http.client.adapters.proxy

Heres one I use:

Zend_Loader::loadClass( 'Zend_Http_Client' );
// Use the proxy if we are local people...
$config = array(
'adapter' => 'Zend_Http_Client_Adapter_Proxy',
'proxy_host' => '10.1.1.1',
'proxy_port' => 8080
);

// Instantiate a client object -
Zend_Service_Akismet will use this
$client = new
Zend_Http_Client('http://rest.akismet.com', $config);
}

$akismet = new Zend_Service_Akismet( $wpAPIKey, $blogURL );

2008/12/4 Brent Clements <brent.clements@gmail.com>:
> Hi All,
>
> I have searched forums, the mailing list, and google and have come up short.
> I know this has to be a common issue but can't find any information on how
> to do it.
>
> How does one utilize a zend xmlrpc client behind a firewall or proxy? How do
> I set my proxy settings?
>
> Thanks!
> BC

--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

没有评论: