Hey Guys,
I'm playing with XML-RPC to try and link my CMSms evironments with 3rd party databases. I know that the docs bury a small point about embedding XML-RPC from http://keithdevens.com/software/xmlrpc, but couldn't figure out where it was buried. So I added to my var/www/site/lib the v2 xml-rpc for PHP from http://phpxmlrpc.sourceforge.net/ ...
Has anyone else done any XML-RPC work within CMSms?
I am trying to parse info from FEU database and pass it into a 3rd party CRM (where emails and member newsletters will be sent from) ... my UDT looks like this:
$key = "12345";
$contactID = "abcd";
$data = "q1w2e3";
include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR. 'xmlrpc' . DIRECTORY_SEPARATOR. 'xmlrpc.inc');
include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR. 'xmlrpc' . DIRECTORY_SEPARATOR. 'xmlrpcs.inc');
$client = new xmlrpc_client("https://www.mysite.com/api/xmlrpc");
if ($client) {
$client ->return_type = "phpvals";
$client ->setSSLVerifyPeer(FALSE);
$call = new xmlrpcmsg("Service.update", array(
php_xmlrpc_encode($key), # The encrypted API key
php_xmlrpc_encode($contactID), #The contact we got from the POST
php_xmlrpc_encode($data))); # The two FEU fields we want to send
$result = $client->send($call);
}
It fatal errors on the red line
PHP Fatal error: Call to undefined method stdClass::createPayload() in /var/www/ams/lib/xmlrpc/xmlrpc.inc on line 1355
Any thoughts?
Is there a more inherent/native way to call XML-RPC from within CMSms or a module that I should be trying instead?
XML-RPC
Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Return to “Developers Discussion”
Jump to
- Official Boards
- ↳ README FIRST!!!
- ↳ Announcements
- ↳ General Discussion
- Support Boards
- ↳ CMSMS Core
- ↳ Modules/Add-Ons
- ↳ Help Wanted (commercial)
- ↳ Translations
- Community Boards
- ↳ Tips and Tricks
- ↳ CMS Show Off
- ↳ Layout and Design (CSS & HTML)
- ↳ Feature ideas
- ↳ Developers Discussion
- ↳ The Lounge
- International Discussions
- ↳ Czech/Slovak - Česky/Slovensky
- ↳ Danish - Dansk
- ↳ Dutch - Nederlands
- ↳ Aankondigingen
- ↳ Tips en Trucs
- ↳ Vertalingen & Documentatie
- ↳ Hulp gezocht (commercieel)
- ↳ Finnish - Suomi
- ↳ French - Français
- ↳ German - Deutsch
- ↳ BITTE ZUERST LESEN !!!
- ↳ Ankündigungen
- ↳ Installation und Einstellungen
- ↳ Module und Tags
- ↳ Smarty-Tipps und -Tricks
- ↳ Layout und Design
- ↳ Suchmaschinenoptimierung (SEO)
- ↳ HowTo's
- ↳ Übersetzungen
- ↳ Show Off
- ↳ Hilfe gesucht (kommerziell)
- ↳ Stammtisch
- ↳ Hungarian - Magyar
- ↳ Italian - Italiano
- ↳ Moduli/Plugins
- ↳ Lithuanian - Lietuviškai
- ↳ Darbo / bendradarbiavimo pasiūlymai ir paieška
- ↳ Persian / Farsi
- ↳ Polish - Polski
- ↳ Portuguese - Português
- ↳ Russian - русский
- ↳ Предложения и поиск РАБОТЫ
- ↳ Spanish - Español
- ↳ Swedish - Svenska
- Geekmoot Editions
- ↳ Geekmoot 2016
- ↳ Connections and Conversations
- ↳ Geekmoot 2015
- ↳ Geek Moot 2012
- ↳ Locked: Geek Moot 2010
- Old Forums
- ↳ [locked] CMSMS 2.0 Beta
- ↳ Module Developers
- ↳ Closed Issues
- ↳ [locked] Documentation0ld
- ↳ Suggestions, Modifications & Corrections
- ↳ [locked] CMSMS 1.11 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 1.10 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 2.2 Beta
- ↳ [locked] CMSMS MLE fork
- ↳ Modules/Addon patchs
- ↳ [locked] Quality Assurance
- ↳ [locked] Accessability and Usability
- ↳ [locked] Documentation
- ↳ Media and presentations about CMSMS
- ↳ [locked] Installation, Setup and Upgrade