[英]Creating an appointment in groupwise with $gwservice PHP
I am trying to create an apointment trough the SOAP library provided by NOVELL . 我试图通过NOVELL提供的SOAP库创建一个apointment。 Like so: 像这样:
$appointment = new Appointment();
$appointment->source = 'personal';
$appointment->class = 'Private';
$appointment->security = 'Normal';
$appointment->subject = 'TEST';
$appointment->startDate = '20110101T000000Z';
$appointment->endDate = '20110102T000000Z';
$appointment->allDayEvent = true;
$sir = new sendItemRequest();
$sir->item = $appointment;
$res = $gwservice->sendItemRequest($sir);
A var dump on the $res
variable returns: $res
变量上的var转储返回:
object(stdClass)#94 (1) {
["status"]=>
object(stdClass)#93 (2) {
["code"]=>
int(59920)
["description"]=>
string(22) "Missing session string"
}
}
I tried to put the session string, that is returned from the loginrequest, but fail to create an appointment. 我试图放入从loginrequest返回的会话字符串,但无法创建约会。
I am obviosuly lost. 我很丢脸。 Anyone have any insite on this? 有人对此有任何不满吗? Do you have any succesfull snippet of a created item trough the gwservice provided by Novell? 您是否通过Novell提供的gwservice获得了创建项目的成功片段?
Did you check the login result for errors, maybe you don't have a valid session. 您是否检查了登录结果中的错误,可能是您没有有效的会话。
<?php
$lres = $gwservice->loginRequest($lr);
// check for errors
if ( $lres->code != 0 )
{
print "code: " . $lres->code . " - " . $lres->description . "\n";
}
else if ( $lres['status']->code == 0 )
{
// save off the session string
$gwservice->session = $lres['session'];
print "name: " . $lres['userinfo']->name . "\n";
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.