Welcome Guest, Not a member yet? Register   Sign In
XML-RPC can't get data from jsp server,please share of your ideas,th'x again.
#1

[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

&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;soapenv:Envelope xmlnsConfusedoapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<soapenv:Body>
<soapenv:Fault>
&lt;faultcode xmlns:ns1="http://xml.apache.org/axis/"&gt;ns1:Client.NoSOAPAction</faultcode>
<faultstring>no SOAPAction header!</faultstring>
<detail>
&lt;ns2:hostname xmlns:ns2="http://xml.apache.org/axis/"&gt;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)
#2

[eluser]GSV Sleeper Service[/eluser]
you're trying to use XMLRPC to connect to a SOAP server
#3

[eluser]Unknown[/eluser]
En,So there is any solution for SOAP in Codeigniter.
#4

[eluser]wiredesignz[/eluser]
Yep there is, Welcome to CI forums.




Theme © iAndrew 2016 - Forum software by © MyBB