在本地测试网络服务
testing a webservice locally
我正在尝试从我的本地计算机连接到网络服务...我正在使用 wamp 作为本地服务器和网络服务所有者提供的 wsdl 连接器
加上一个 php 文件来获取数据和一个 XML testclient .exe 文件
我正在尝试 运行 cmd 中的 .exe 文件,但出现此错误
Testclient started ...
upload URL: http://localhost/upload/php_server_2015-10-08/server.php
filename: 4485ae5f-4f9e-4ad6-bab3-44cdc57c09d5.xml
An error occured: The content type text/html of the response message does not
match the content type of the binding (text/xml; charset=utf-8). If using a
custom encoder, be sure that the IsContentTypeSupported method is implemented
properly. The first 1005 bytes of the response were: '<br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1'
cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-
color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error:
Class 'SoapServer' not found in C:\wamp\www\upload\php_server_2015-10-
08\server.php on line <i>3</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left'
bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th
align='left' bgcolor='#eeeeec'>Function</th><th align='left'
bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec'
align='center'>0.0010</td><td bgcolor='#eeeeec' align='right'>874344</td><td
bgcolor='#eeeeec'>{main}( )</td><td
title='C:\wamp\www\upload\php_server_2015-10-08\server.php'
bgcolor='#eeeeec'>..\server.php<b>:</b>0</td></tr>
</table></font>
'.
Testclient done ... press key
有人可以问问
您收到的响应告诉您 Class 'SoapServer' not found
,这表明 Soap 扩展未启用。
检查 php.ini 行 extension=php_soap.dll
并确保它没有被禁用(前缀为 ;
)。
如果是,请删除该行前面的 ;
并重新启动 Apache。
要找到您的 php.ini,您应该查看 C:\wamp\bin\apache\Apache2.x.x\bin
(相应地替换 x ;)或者编写一个包含
的脚本
<?php phpinfo();
在浏览器 (http://localhost/.../yourscript.php) 中打开它并查找 "Loaded Configuration File"。
我正在尝试从我的本地计算机连接到网络服务...我正在使用 wamp 作为本地服务器和网络服务所有者提供的 wsdl 连接器 加上一个 php 文件来获取数据和一个 XML testclient .exe 文件 我正在尝试 运行 cmd 中的 .exe 文件,但出现此错误
Testclient started ...
upload URL: http://localhost/upload/php_server_2015-10-08/server.php
filename: 4485ae5f-4f9e-4ad6-bab3-44cdc57c09d5.xml
An error occured: The content type text/html of the response message does not
match the content type of the binding (text/xml; charset=utf-8). If using a
custom encoder, be sure that the IsContentTypeSupported method is implemented
properly. The first 1005 bytes of the response were: '<br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1'
cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-
color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error:
Class 'SoapServer' not found in C:\wamp\www\upload\php_server_2015-10-
08\server.php on line <i>3</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left'
bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th
align='left' bgcolor='#eeeeec'>Function</th><th align='left'
bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec'
align='center'>0.0010</td><td bgcolor='#eeeeec' align='right'>874344</td><td
bgcolor='#eeeeec'>{main}( )</td><td
title='C:\wamp\www\upload\php_server_2015-10-08\server.php'
bgcolor='#eeeeec'>..\server.php<b>:</b>0</td></tr>
</table></font>
'.
Testclient done ... press key
有人可以问问
您收到的响应告诉您 Class 'SoapServer' not found
,这表明 Soap 扩展未启用。
检查 php.ini 行 extension=php_soap.dll
并确保它没有被禁用(前缀为 ;
)。
如果是,请删除该行前面的 ;
并重新启动 Apache。
要找到您的 php.ini,您应该查看 C:\wamp\bin\apache\Apache2.x.x\bin
(相应地替换 x ;)或者编写一个包含
<?php phpinfo();
在浏览器 (http://localhost/.../yourscript.php) 中打开它并查找 "Loaded Configuration File"。