[eluser]Unknown[/eluser]
Hi!every body, here is my problem:
when i using the class XML-RPC,
if i test it under the mannual descirbe there is all nomal--all the cilent is php as well as server.
But when i want get xml data from other type server for instance jsp,it's running abnormaly.Here is my code block,
please share of your ideas and opinions,th'x much.
function index()
{
$this->xmlrpc->set_debug(true);
$this->xmlrpc->server('http://192.168.6.71/services/TestForYou?wsdl', 80);//Server is JSP
$this->xmlrpc->method('echo0');//echo0 is the method which get data from server
$request = array();
$this->xmlrpc->request($request);
if ( ! $this->xmlrpc->send_request())
{
echo $this->xmlrpc->display_error();
}
else
{
echo '<pre>';
print_r($this->xmlrpc->display_response());
echo '</pre>';
}
}
Here is the reflect errors:
---DATA---
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml;charset=utf-8
Date: Tue, 01 Apr 2008 08:26:53 GMT
Server: Apache-Coyote/1.1
Connection: close
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns
oapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
<faultstring>no SOAPAction header!</faultstring>
<detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">S2-chentianyu</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
---END DATA---
Did not receive a '200 OK' response from remote server. (HTTP/1.1 500 Internal Server Error)