gpt4 book ai didi

php - 使用 $gwservice PHP 在 groupwise 中创建约会

转载 作者:搜寻专家 更新时间:2023-10-31 21:42:55 42 4
gpt4 key购买 nike

我正在尝试通过 NOVELL 提供的 SOAP 库创建一个约会.像这样:

  $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);

$res 变量的 var 转储返回:

object(stdClass)#94 (1) {
["status"]=>
object(stdClass)#93 (2) {
["code"]=>
int(59920)
["description"]=>
string(22) "Missing session string"
}
}

我尝试输入从登录请求返回的 session 字符串,但未能创建约会。

我显然迷路了。有人对此有任何网站吗?您是否有通过 Novell 提供的 gwservice 创建的项目的任何成功片段?

最佳答案

您是否检查了登录结果是否有错误,也许您没有有效的 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";
}

关于php - 使用 $gwservice PHP 在 groupwise 中创建约会,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8226483/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com