here is my code, please find out problems for me $params = array(
new SoapVar('<m d="'..'">
<e t="f" a=" my email address" />
<inv method="REQUEST" type="event" fb="B" transp="O" status="CONF" allDay="0" name="Test">
<s d="20080919T090000"/>
<e d="20080919T103000"/>
<at a="my email address" role="REQ" ptst="AC" rsvp="1"/>
<or a="my email address"/>
</inv>
<mp ct="multipart/alternative"><mp ct="text/plain"><content/></mp><mp ct="text/html"><content/></mp></mp>
<su>Test </su>
</m>', XSD_ANYXML)
);
try {
$soapHeader = new SoapHeader(
'urn:zimbra',
'context',
new SoapVar('<ns2:context><authToken>' . $zim->zimbra_auth . '</authToken></ns2:context>', XSD_ANYXML)
);
$result = $client->__soapCall(
"CreateAppointmentRequest",
$params,
$options,
$soapHeader
);
echo "done<br><br>";
echo $client->__getLastRequest() . "<br><br>";
echo $client->__getLastResponse() . "<br><br>";
echo "executed<br>";
} catch (Exception $e) {
echo "exception caught<br><br>";
echo $client->__getLastRequest() . "<br><br>";
echo $client->__getLastRequestHeaders() . "<br><br>";
echo $client->__getLastResponseHeaders() . "<br><br>";
echo $client->__getLastResponse() . "<br><br>";
echo $exception . "<br><br>";
} |