Results 1 to 2 of 2

Thread: [SOLVED] PHP SOAP Woes with displayName

  1. #1
    Join Date
    Nov 2007
    Rep Power

    Default [SOLVED] PHP SOAP Woes with displayName

    I can't seem to create a displayName from a php page using the SOAP api. It basically wants to close the <a> tag with <a n="displayName">, which the SOAP interpreter doesn't like.

    I tried googling this problem, and someone else is obviously having the same issue (see below link), but I've not found a resolution.

    PHP: SoapParam->__construct() - Manual



    Barry King

  2. #2
    Join Date
    Apr 2007
    Rep Power

    Default code snip

    Very briefly, you need to do something like this ($id is the Zimbra account ID):

    $var = "<id>$id</id>";
    $var .= "<a n=\"displayName\">John Smith</a>";
    $params = array( new SoapVar($var, XSD_ANYXML) );
    $this->lastResult = $this->soapClient->__soapCall('ModifyAccountRequest', $arguments, $options ,$soapHeader);

    This obviously snipped and abridged from a larger class, but hopefully that will get you on the path.

Similar Threads

  1. [SOLVED] Simple SOAP Admin Example In PHP
    By mikes2277 in forum Developers
    Replies: 11
    Last Post: 07-23-2011, 01:00 AM
  2. PHP SOAP vs Zimbra
    By Corey Scott in forum Developers
    Replies: 14
    Last Post: 02-05-2011, 03:41 AM
  3. PHP SOAP create appointment example
    By AddGun in forum Developers
    Replies: 13
    Last Post: 09-27-2010, 04:41 PM
  4. php CreateAccountRequest via SOAP
    By bookatechie in forum Developers
    Replies: 2
    Last Post: 05-02-2007, 11:28 AM

Posting Permissions

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