【发布时间】:2016-01-07 01:00:49
【问题描述】:
我正在尝试从本地计算机连接到 Web 服务...我使用 wamp 作为本地服务器和 Web 服务所有者提供的 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
有人可以帮忙吗
【问题讨论】:
标签: php xml web-services wsdl