That Was Huge Help That really helped, but now I'm getting another error that is just as mysterious. Here is the code I came up with:
$options = array('uri' => "urn:zimbraMail");
$params = array(
new SoapParam("<s d=\"20080131T100000\" /> <e d=\"20080131T120000\" />
<at a=\"him\" /> <at a=\"her\" /> ", 'm')
);
try {
echo "creating header<br>";
$soapHeader = new SoapHeader(
'urn:zimbra',
'context',
new SoapVar('<ns2:context><authToken>' . $authToken . '</authToken></ns2:context>', XSD_ANYXML)
);
echo "trying<br>";
$result = $soapClient->__soapCall(
"CreateAppointmentRequest",
$params,
$options,
$soapHeader
); //<== line 80
echo "executed<br>";
}
and the error is:
SoapFault exception: [soap:Server] system failure: java.lang.NullPointerException in /calendar/index.php:80 Stack trace: #0 /calendar/index.php(80): SoapClient->__soapCall('CreateAppointme...', Array, Array, Object(SoapHeader)) #1 {main}
I have been trying to run the $set:debug 1 in my search window, but it either hangs or I an error like "Your skin won't allow some tree...". So I'm not sure how correct my syntax is.
Thanks all for your help.
K
Last edited by kinihepu; 01-30-2008 at 04:06 PM..
|