【问题标题】:Creating an appointment in groupwise with $gwservice PHP使用 $gwservice PHP 在 groupwise 中创建约会
【发布时间】:2011-11-22 12:03:33
【问题描述】:

我正在尝试通过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"
    }
}

我尝试放置从登录请求返回的会话字符串,但未能创建约会。

我显然迷路了。有人有这方面的网站吗?您是否通过 Novell 提供的 gwservice 对创建的项目进行了成功的 sn-p?

【问题讨论】:

  • 我看不到您通过会话信息发送的位置。

标签: php groupwise


【解决方案1】:

您是否检查了登录结果是否有错误,可能您没有有效的会话。

<?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";
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    相关资源
    最近更新 更多