Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-2007, 01:55 PM
New Member
 
Posts: 3
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

Help?

Thanks,

Barry King
Reply With Quote
  #2 (permalink)  
Old 12-06-2007, 09:03 AM
New Member
 
Posts: 3
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.