I've been trying to consume a service using WSClient in WSDL mode, but the response is always a array with an empty string.
我一直在尝试使用WSDL模式下的WSClient来使用服务,但是响应总是一个带有空字符串的数组。
I'm using WSO2 WSF for PHP(WSO2 Web Services Framework for PHP) and my PHP version is 5.3.
我将WSO2 WSF用于PHP(WSO2 Web服务框架用于PHP),我的PHP版本是5.3。
I think the problem could be the size of the response(I know its big). There is a way to define maxReceivedMessageSize and maxStringContentLength?
我认为问题可能是反应的大小(我知道它的大)。有一种方法可以定义maxreceivedmessagze和maxStringContentLength吗?
What should I do? There is a "WSO2 WSF for PHP" alternative library?
我应该做什么?有“WSO2 WSF for PHP”替代库吗?
Code:
代码:
function getCatalog($options, $input)
{
$client = new WSClient($options);
// get proxy object reference form client
$proxy = $client->getProxy();
//return $proxy->BuscaCatalogo($input);
var_dump($proxy->BuscaCatalogo($input));
}
Output:
输出:
array(1) {
["BuscaCatalogoResult"]=> string(0) ""
}
Log Message: [Thu Dec 13 11:00:59 2012] [error] soap_builder.c(329) Error occurred when building node
日志信息:[Thu Dec 13 11:00:59 2012] [error] soap_build .c(329)在构建节点时发生错误
-- SOLVED This topic is little old, but here is an alternative for WSO2, https://code.google.com/p/wse-php/source/browse/examples/soap-wsa-example.php?r=407b920367574e85f1302a76ec5a2991b746d79c.
—解决这个问题的方法有点过时,但是这里有一个替代方法,可以使用WSO2, https://code.google.com/p/wse-php/source/browse/examples/soap-wsa-example.php?
OBS: I'm a PHP developer
我是一个PHP开发人员
1 个解决方案
#1
1
WSO2 PHP project is deprecated. The project is no longer maintained.
不赞成使用WSO2 PHP项目。项目不再被维护。
#1
1
WSO2 PHP project is deprecated. The project is no longer maintained.
不赞成使用WSO2 PHP项目。项目不再被维护。