[ Home ] [ Idea ] [ Submit News using XML–RPC] [ Submit News ] [ Nuke 4.3 Integration ] [ Display News ] [ Add RSS ] [ Task List ] [ Discussion Forums ] [ Retrieve News in XML ] [ Channel ] [ Screen Shots ] [ Archives ] [ Tutorial for retrieving news ] [ Tutorial for submitting news ] [ Download OCS Directory ]
The XML – RPC interface provided at NGOID news network to submit news items is PostNews.php. To post articles in NGOID news network, a XML – RPC call has to be made to PostNews.php.
PostNews.php : This file takes care of inserting data into "NGOID news network" database. It contains one function named SubmitNewsNgoid. The function definition is as follows
function SubmitNewsNgoid($params)
$params is an object of XML–RPC Message type. This message contains 6 parameters. They are as follows
Eg: Java V/s C++
Java is completely object oriented. C++ supports use of pointers, whereas Java doesnt.
- "Anonymous"
subject: Java V/s c++
story: the entire description
topic_name: Object Oriented Programming concepts
name: Anonymous
URL: http://gyanquest.net
Sitename: GyanQuest
Here is a sample code that submits the above article with the news network. The code is written in PHP.To rewrite the code in other languages, refer to documentation provided at www.xmlrpc.com
<?
$rpc_message = new xmlrpcmsg('i3c.ngoiddb',array(new xmlrpcval($subject,"string"),new xmlrpcval($story,"string"),new xmlrpcval($topic_name,"string"),new xmlrpcval($name,"string"),new xmlrpcval($url,"string"),new xmlrpcval($sitename,"string")));
$rpc_client = new xmlrpc_client("/PostNews.php","ngoid.sourceforge.net",80);
$recieve=$rpc_client->send($rpc_message);
$value=$recieve->value();
?>
The database used on the NGOID Server is a MySQL database, currently it has one table named stories. The stories table has the following fields
Code for integration of an information portal with the news network is available. The example shows integration with a PHP–Nuke 4.3 based portal. ( http://www.gyanquest.net).PHP–Nuke is a news automated system specially designed to be used in Intranets and Internet. Thanks to the PHP–Nuke team for coming out with an excellent information portal.
For more details on NGOID, Click here
Copyright © i3Connect, Inc. Use of the material is covered by the i3Connect Community License. i3Connect™ is a trademark of i3Connect, Inc. All other trademarks here are properties of their respective owners. i3Connect is not responsible for the authenticity of the news feeds provided on the site.