English 中文(简体)
D. 关于WSDL申请的分部分编号
原标题:Segmentation Fault on WSDL request on PHP

我在现场根据对营地的湿式湿度模式样本,形成了这一简单的例子。

    <?php

try {

    $client = new WSClient(array("wsdl"=>"http://footballpool.dataaccess.eu/data/info.wso?wsdl",
                                 ));

    $proxy = $client->getProxy();   

    $result = $proxy->TopGoalScorers(array( iTopN =>1));

    echo "TEST!!!<br />";

    echo  <pre> ;
    print_r($result);
    echo  </pre> ;

} catch (Exception $e) {

        echo "Message = ".$e->getMessage();
}
?>

If I execute this script in a web browser i got a http 324 error ERR_EMPTY_RESPONSE And when i execute it in a shell it seems to work but at the end i get a segmentation fault error.

采用卷宗号为wsdl-11-cent. . . . . .

If this line

$result = $proxy->TopGoalScorers(array( iTopN =>1));

不会出现分部分错误。

I m using wsf wso2 framework for php version 2.1.0 libxml version 2.7.8 libxslt version 1.1.26 PHP Version 5.3.6-13ubuntu3.6 Ubuntu 11.10.

在我的营地里,i i ve补充说

include_path = ".:/usr/share/php:/usr/lib/php5/20090626/wsf_c/scripts"

[wsf]
wsf.home="/usr/lib/php5/20090626/wsf_c"
;log_level2 shows warnings and errors
;wsf.log_level=2 
;wsf.log_path="/var/log/wsf"

i ve在(etc/php5/conf.d/wsfini)中添加了这一延伸。

; configuration for php WSF module
extension=wsf.so

Is my server misconfigurated? Or there are some errors in my php script? Thanks in advance. Francesco.

问题回答

我的同感。

考虑到“WSO2 WSF for PHP”项目没有活动,我认为最好不要在生产中使用。

最好的工作或许是写出 Java代理服务,与原来的服务进行沟通,并将诸如JSON到PHP等物品退回。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签