使用PHP的SOAP请求不起作用-PHP getLastRequest没有响应

使用PHP的SOAP请求不起作用-PHP getLastRequest没有响应,php,soap,soap-client,Php,Soap,Soap Client,我们正在将一个web服务写入UNIFACE 9.3。我们的服务提供了一个WSDL。我们在第一次测试中使用了SOAPUi,我们想在更多的测试中使用PHP,但是PHP什么也没有给我们!为什么? <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:uniface:applic:wrapped:services:WEBSOAPWSV"> <soapen

我们正在将一个web服务写入UNIFACE 9.3。我们的服务提供了一个WSDL。我们在第一次测试中使用了SOAPUi,我们想在更多的测试中使用PHP,但是PHP什么也没有给我们!为什么?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"    xmlns:urn="urn:uniface:applic:wrapped:services:WEBSOAPWSV">
<soapenv:Header/>
<soapenv:Body>
    <urn:INFO>
        <urn:SP_IN>OCCURRENCE=TEST</urn:SP_IN>
    </urn:INFO>
</soapenv:Body>
</soapenv:Envelope>
PHP getFunctions提供了以下功能:

array(6) {
[0]=> string(41) "ACCEPTResponse ACCEPT(ACCEPT $parameters)"
[1]=> string(35) "EXECResponse EXEC(EXEC $parameters)"
[2]=> string(35) "INFOResponse INFO(INFO $parameters)"
[3]=> string(41) "INSERTResponse INSERT(INSERT $parameters)"
[4]=> string(35) "QUITResponse QUIT(QUIT $parameters)"
[5]=> string(41) "UPDATEResponse UPDATE(UPDATE $parameters)" } 

答案是没有!为什么?非常感谢。

我真的不懂SOAP,我刚刚问了一个关于SOAP调用的问题,但是如果您将代码稍微更改为:

// change here
$options        = array( 'trace' => 1, 'exceptions' => 1);

$client = new SoapClient("http://patch-server:8080/uniface/services/websoapwsvdlw?wsdl", $options);

var_dump($client->__getFunctions());
$args = array('OCCURRENCE', 'TEST');

// change here..
$result = $client->INFO($args);
echo "Request:\n" . $client->__getLastRequest() . "\n";

谢谢你的帮助。。。但这仍然不起作用-(没有要求!
// change here
$options        = array( 'trace' => 1, 'exceptions' => 1);

$client = new SoapClient("http://patch-server:8080/uniface/services/websoapwsvdlw?wsdl", $options);

var_dump($client->__getFunctions());
$args = array('OCCURRENCE', 'TEST');

// change here..
$result = $client->INFO($args);
echo "Request:\n" . $client->__getLastRequest() . "\n";
$client = new SoapClient($url, array("trace" => 1));