douyong5476 2015-09-01 06:39
浏览 57

为什么soap Web服务在服务器上显示内部服务器错误?

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();
        }
  • 写回答

2条回答 默认 最新

  • doudao0660 2015-09-01 07:08
    关注

    Try looking in the error log file of server it would tell you the detailed description of why the error is occurring.

    Internal server errors usually occurs when server is unable to execute the script not because the script ad an error but because of its own limiations, like max_execution time, max_upload_size, post_size etc.

    评论

报告相同问题?

悬赏问题

  • ¥15 蓝桥oj3931,请问我错在哪里
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染