|
如果用本地的服务端按手册上所述则一切正常代码如下function index(){ $this->xmlrpc->set_debug(true); $this->xmlrpc->server('http://192.168.6.71/services/TestForYou?wsdl', 80);//当前的服务端是JSP的 $this->xmlrpc->method('echo0');//是服务端的一个方法 $request = array(); $this->xmlrpc->request($request); if ( ! $this->xmlrpc->send_request()) { echo $this->xmlrpc->display_error(); } else { echo ''; print_r($this->xmlrpc->display_response()); echo ''; }}以下是反馈的错误信息---DATA---HTTP/1.1 500 Internal Server ErrorContent-Type: text/xml;charset=utf-8Date: Tue, 01 Apr 2008 08:26:53 GMTServer: Apache-Coyote/1.1Connection: close ns1:Client.NoSOAPAction no SOAPAction header! S2-chentianyu ---END DATA---Did not receive a '200 OK' response from remote server. (HTTP/1.1 500 Internal Server Error) |
|