I have written a soap web service with php language , it works on localhost correctly ,but when i upload it on server i can see wsdl file of that and add its URL in soapUI, but when i call function of that it shows Internal Server Error.
server's OS is centos6 and php version is php54 and php soap already exists.
what is wrong?
<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();
}