我已經用php語言編寫了soap web服務,它在localhost上正常工作,但是當我在服務器上上傳時,我可以看到wsdl文件並在soapUI中添加它的URL,但是當我調用它顯示的內部函數服務器錯誤。爲什麼soap web服務在服務器上顯示內部服務器錯誤?
服務器的操作系統是centos6和PHP版本是php54和PHP肥皂已經存在。
有什麼不對?
<xs:element name="getServices">
<xs:complexType>
<xs:sequence>
<xs:element name="username" type="xs:string"/>
<xs:element name="password" type="xs:string"/>
<xs:element name="mobileNum" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
$client = new SoapClient("http://IpAddress/ws/ws?wsdl");
try {
$response = $client->getServices(
array(
'username' => 'username',
'password' => 'pass',
'mobileNum' => '1111111',
));
return $response;
}
catch(Exception $e)
{
return $e->getMessage();
}
我檢查錯誤日誌文件,但沒有錯誤,當我再次調用我的soapclient時,沒有任何東西被添加到這個錯誤日誌文件。 – h3dgh
access.log – Arpita
它只是顯示:[01/Sep/2015:11:53:18 +0430]「POST/patch HTTP/1.1」500 - 「 - 」「PHP-SOAP/5.5.6」 – h3dgh