3

我正在尝试通过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 成功创建项目的片段?

4

1 回答 1

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";
}
于 2011-12-14T01:00:09.537 回答