CodeIgniter Forums

Full Version: XMLRPC complains about malformated code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]dali01[/eluser]
Hi,

I'm trying got get a CI-based XMLRPC client to work with a server written in Gambas2 (VB-like language for linux).
The server works just fine with a client written in php using XML-RPC module.
I can't see anything wrong in the response from the server.

Any ideas?

Simple client CI controller:
Code:
class Device extends Controller {

    function Device()
    {
        parent::Controller();    
    }
    
    function index()
    {

        $this->xmlrpc->set_debug(TRUE);
        $this->xmlrpc->server("127.0.0.1", 9009);
        $this->xmlrpc->method('system.program_version');

        $request = array();
        $this->xmlrpc->request($request);

        if ( ! $this->xmlrpc->send_request())
        {
            print_r($this->xmlrpc->display_error());
        }
        else
        {
            $response = $this->xmlrpc->display_response();
            var_dump($response);
        }
    }
}

Debug output:
Code:
---DATA---
HTTP/1.1 200 OK
Connection: close
Content-Length: 151
Content-Type: text/xml
Server: Gambas RPC Server

<?xml version="1.0"?>
<methodResponse>
<params>
  <param>
   <value>
    <string>0.1.178</string>
   </value>
  </param>
</params>
</methodResponse>

---END DATA---


The XML data receieved was either invalid or not in the correct form for XML-RPC. Turn on debugging to examine the XML data further.

El Forum

[eluser]dali01[/eluser]
Anyone? Please...

El Forum

[eluser]Unknown[/eluser]
Adding the following lines to the app.config to enables the unsafe header parsing.
Code:
<system.net>
    <settings>
      <httpWebRequest useUnsafeHeaderParsing = "true"/>
    </settings>
  </system.net>

El Forum

[eluser]dali01[/eluser]
[quote author="sbstn" date="1264347602"]Adding the following lines to the app.config to enables the unsafe header parsing.
Code:
<system.net>
    <settings>
      <httpWebRequest useUnsafeHeaderParsing = "true"/>
    </settings>
  </system.net>
[/quote]

What? Are you sure you replied to the right thread? This sure doesn't sound like it's got anything to do with my problem, right?

El Forum

[eluser]dali01[/eluser]
Isn't there anyone who can help?
I honestly can't see anything wrong in the output.