Results 1 to 2 of 2

Thread: XML-RPC Frustrating Problem

  1. #1
    kellysmith is offline Junior Member
    Join Date
    Aug 2008
    Posts
    2

    Default XML-RPC Frustrating Problem

    Hey guys, as you can see I'm new to the ZF community. I just recently started learning the framework and I'm relatively inexperienced with it so far. I am trying to set up XmlRpc client/server interaction between different parts of my application and I am getting this annoying error when I try to make an Call.

    Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\Network\ZendSkeleton\library\Zend\XmlRpc\Reques t.php on line 414

    Fatal error: Call to undefined method domdocument::appendChild() in C:\Network\ZendSkeleton\library\Zend\XmlRpc\Reques t.php on line 415

    Here is the code I'm running just as a simple test to see if I can get something to work.

    [PHP]<?php
    require_once 'Zend/XmlRpc/Client.php';

    $client = new Zend_XmlRpc_Client('http://localhost/XmlRpc');

    $result = $client->call('test.sayHello');

    // $result is a native PHP type

    [/PHP]

    If anyone could give me any sort of advice I would greatly appreciate it.

  2. #2
    kellysmith is offline Junior Member
    Join Date
    Aug 2008
    Posts
    2

    Default Fixed

    Well after doing a lot of research and getting very lucky I found out why it was doing that.. It was a problem with my php configuration.

    Apparently for windows users you want to disable the php_domxml.dll extension which is enabled by default in some WAMPs such as XAMPP. (dono bout linux users)

    Just thought I'd let you know if anyone else is having this problem.

Similar Threads

  1. Frustrating Database Error
    By Matt1776 in forum Databases
    Replies: 2
    Last Post: 09-24-2008, 06:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •