- OpenX Community Forums
![]() ![]() |
Feb 3 2012, 02:59 PM
Post
#1
|
|
|
Beginner ![]() Group: Members Posts: 1 Joined: 10-December 11 Member No.: 171,031 |
Dear all,
I have installed openx 2.8 in ubuntu. Now i want to use OpenX API. I make a function like that : $xmlRpcHost = 'myserver'; $webXmlRpcDir = '/openx/www/api/v2/xmlrpc/'; $oClient = new XML_RPC_Client($webXmlRpcDir, $xmlRpcHost); $oClient->setdebug(true); $aParams = array( new XML_RPC_Value('user', 'string'), new XML_RPC_Value('pass', 'string') ); $oMessage = new XML_RPC_Message('ox.logon', $aParams); $oClient = getClient(); $oResponse = $oClient->send($oMessage); if (!$oResponse) { die('Communication error: ' . $oClient->errstr); } $sessionID = returnXmlRpcResponseData($oResponse); return $sessionID; But I alway received the error as following : <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value><int>105</int></value> </member> <member> <name>faultString</name> <value><string>XML error: Invalid document end at line 1</string></value> </member> </struct> </value> </fault> </methodResponse> Could you help me ? How do i resolve this problem ? Thank alot ! Best and regard ! Dao Trong Luc Handy +84963888388 Email trongluc80@yahoo.com YM trongluc80 Skype trongluc80 |
|
|
|
Feb 14 2012, 12:41 PM
Post
#2
|
|
|
Beginner ![]() Group: Members Posts: 2 Joined: 14-February 12 Member No.: 171,572 |
Hi everyone.
I am also having the same problem. When I try to run the Java example of "OpenX API Tutorial" an exception is thrown: "java.lang.IncompatibleClassChangeError: Implementing class" When I try to access the URL, the page is identical to the one exposed by trongluc80. Do anyone have any idea about this problem? |
|
|
|
Feb 14 2012, 01:34 PM
Post
#3
|
|
|
Beginner ![]() Group: Members Posts: 2 Joined: 14-February 12 Member No.: 171,572 |
Well, after some testing I managed to get a connection through the OpenX.
I realized that the problem was the creation of a XmlRpcClient, ie, in its constructor, so the upgrade versions of the example libraries started to work. Thanks for all. |
|
|
|
![]() ![]() |