Welcome Guest, Not a member yet? Register   Sign In
xml-rpc server specify request format
#1

[eluser]Unknown[/eluser]
Hello,

I am very new to CodeIgniter.

I have a server in PHP running with CI. I have Java / VB clients that need to connect to this server and get data using XML-RPC.

I have tried using the example in the Xml-RPC guide for the server:
http://ellislab.com/codeigniter/user-gui...mlrpc.html
The test server is running in my local machine.

However, I get an error when I try to call the server. For client, I am trying to use a simple html form that post the data and calls the server. Shouldnt it work?
I need to specify the format for the Clients to connect and I could not find a good enough documentation.

client code :

---------------------------------------------
<?php
$xml='
<?xml version="1.0"?>
<methodCall>
<methodName>Greetings</methodName>
<params>
<param>
<value>How is it going?</value>
</param>
</params>
</methodCall>
';
$xml = htmlspecialchars($xml);
?&gt;

&lt;form method='post' action='http://localhost/testci/index.php/xmlrpc_server'&gt;
&lt;input type='text' name='xml' value='&lt;?php echo $xml;?&gt;'&gt;
&lt;input type='submit' name='submit' value='submit'&gt;
&lt;form&gt;

-----------------------------

I get the error :
XML Parsing Error: not well-formed
Location: http://localhost/testci/index.php/xmlrpc_server
Line Number 1, Column 6:array(2) {
-----^


Thanks.
#2

[eluser]Unknown[/eluser]
Found the reply at :

http://stackoverflow.com/questions/78287...-html-form

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB