我尝试使用部署在我的OpenShift帐户上的Web服务上的php调用我的Web服务
我收到了错误
“SoapFault异常:[S:Server] java.lang.NullPointerException in ...”
我已经尝试了不同的方法来调用它但仍然无法调用它
尝试在localhost上部署的相同Web服务,它可以完美地运行
尝试捕获时检索到的错误 $ SOAPClient = new SoapClient(“web service url here”); 它返回null
PHP代码
//=============================== Try the web Service Connection =====================================
try {
$SOAPClient = new SoapClient("http://cloudmarket-yatohime.rhcloud.com/SCMWebServices/CreateMarketWebService?wsdl");
$result = $SOAPClient->launchSCM();
if (!$result) {
$_SESSION['msg'] = "CreateMarketWebService error";
}
} catch (Exception $e) {
$_SESSION['msg'] = $e;
}
//======================================================================================================
错误
SoapFault异常:[S:Server] java.lang.NullPointerException in /home/yatohime/smartcloudmarket.com/processes/bid.php:52堆栈追踪:
0 /home/yatohime/smartcloudmarket.com/processes/bid.php(52):SoapClient-> __ call('sendTraderSubmi ...',Array)#1
/home/yatohime/smartcloudmarket.com/processes/bid.php(52): SoapClient-> sendTraderSubmission(Array)#2 {main}