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. |