开发者

PHP Zend XML-RPC - Any way to disable the 'nil' in requests?

I'm using Zend XML-RPC Client library to send XML requests to another non-PHP XML RPC server.(it's a java JBoss install, but I don't have control to change it/patch it/hack it). One request I'm making has a <nil/> element, which is a XML-RPC extension. The XML-RPC server I'm talking to doesn't support that because the request fails with Failed to parse XML-RPC request: Unknown type: nil.

Is there any way to tell Zend to not sen开发者_开发知识库d the <nil/> value and send something else instead? Others have asked this before: http://framework.zend.com/issues/browse/ZF-1919


I don't think so, however:

The array of parameters for the remote method can contain native PHP types, 
Zend_XmlRpc_Value objects, or a mix of each. 

You actually have full control over the type of parameters passed to the remote method. Converting null values to empty strings before sending the request should be trivial, isn't it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜