Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API (xmlrpc) problem
02-11-2013, 11:48 PM,
#1
API (xmlrpc) problem
I'm trying to connect/login with the API following the conventions in the example on this page:
http://www.weberp.org/wiki/APIDocumentation

Something is going wrong when I call xmlrpcval to try to set the values of the $Parameters array, I'm not sure why because I haven't strayed much from the example above.

Code:
<?php
$dbname = "smt_weberp";
$username = "zzzzzzzzz";
$password = "zzzzzzzzz";

echo ("<p>Testing webERP API login...</p>");

include ("xmlrpc/lib/xmlrpc.inc");

$ServerURL = "http://webtest/webERP/api/api_xml-rpc.php";
$DebugLevel = 2;

$Parameters = array();
echo ("<p>We've made it this far!</p>");

$Parameters['DatabaseName'] = xmlrpcval($dbname);
$Parameters['Username'] = xmlrpcval($username);
$Parameters['Password'] = xmlrpcval($password);
echo ("This doesn't show up!");
var_dump($Parameters);
?>

The location of the xmlrpc include is correct (I've put echos in there to verify and they print out fine) and the URL for api_xml-rpc.php is good (not that I'm even getting that far yet.) I have all of the contents of the "xmlrpc" folder in the proper place within the folder of the php file I've posted above (sitting on the same web server as the webERP installation but in a different folder under the root.)

My "We've made it this far!" prints, but "This doesn't show up!", well, doesn't show up, and the var_dump doesn't show either. I'm not sure if my 'DatabaseName' parameter key is correct but at this point all I'm trying to do is format these parameters with xmlrpcval and this seems to be stopping PHP parsing.

I must be missing a very simple step but I don't see anything going on in the example that I'm failing to do here. Can anybody set me straight?

I'm running php version 5.3.5 on the web server, if that matters.

Thank you for any help!
Reply


Messages In This Thread
API (xmlrpc) problem - by SMT Corp - 02-11-2013, 11:48 PM
RE: API (xmlrpc) problem - by phil - 02-12-2013, 02:06 PM
RE: API (xmlrpc) problem - by phil - 02-13-2013, 06:08 AM
RE: API (xmlrpc) problem - by SMT Corp - 02-14-2013, 03:09 AM
RE: API (xmlrpc) problem - by phil - 02-14-2013, 07:28 AM
RE: API (xmlrpc) problem - by SMT Corp - 02-19-2013, 08:16 AM
RE: API (xmlrpc) problem - by phil - 02-19-2013, 08:53 AM
RE: API (xmlrpc) problem - by SMT Corp - 02-26-2013, 01:38 AM
RE: API (xmlrpc) problem - by phil - 02-26-2013, 05:33 AM
RE: API (xmlrpc) problem - by SMT Corp - 02-26-2013, 06:51 AM
RE: API (xmlrpc) problem - by weberp-forums - 02-26-2013, 11:35 PM
RE: API (xmlrpc) problem - by SMT Corp - 02-26-2013, 11:47 PM
RE: API (xmlrpc) problem - by weberp-forums - 02-26-2013, 11:58 PM
RE: API (xmlrpc) problem - by SMT Corp - 02-27-2013, 01:10 AM
RE: API (xmlrpc) problem - by weberp-forums - 02-27-2013, 01:15 AM
RE: API (xmlrpc) problem - by Gamini - 03-14-2013, 06:02 PM
RE: API (xmlrpc) problem - by etabaraz - 03-28-2013, 11:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)