黑板SOAP Web服务php [英] Blackboard SOAP web service php

查看:116
本文介绍了黑板SOAP Web服务php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用该库来进行有关黑板网络的开发服务.

I am using this library to do the development about blackboard web service.

我已经成功注册了代理工具,并使其在管理员面板中可用.

I have successfully registered the proxy tool and make it available in the administrator panel.

已建立连接并可以使用功能. 但是,当我在Blackboard Web服务库的Gradebook中调用saveColumns时,

The connection is built and function is able to be used. But When I call the saveColumns in Gradebook in Blackboard web service library,

$coursemember_detail = $blackboard->Gradebook("saveColumns",array('courseId'=>'_50_1','columnName'=>'testing'));

返回

array(1) { ["@attributes"]=> array(1) { ["nil"]=> string(4) "true" } }

根据黑板api库SP13 ,它应该返回列的ID.

According to blackboard api library SP13, it should return the ids of the columns.

有人知道答案吗?还是有人知道这是什么问题? 如果您能为我提供一些建议和答案,那将是很棒的.谢谢!

Anyone knows the answer? Or anyone knows what problem is that? It will be great if you can provide me some advice and answer. Thanks!

推荐答案

此调用的参数应包含2个属性courseIdcolumns.在columns属性中,您将需要描述您的列,因为它将显示在成绩中心.我还没有测试列的数组,但是对于您要创建代码的单个列,它看起来像这样:

The argument for this call should consist of 2 attributes courseId and columns. In the columns attribute you will need to describe your column as it will be shown in grade center. I haven't tested an array of columns, but for a single column that you want to create your code could look like this:

$params = array();
$params['courseId'] = '_50_1';
$params['columns'] = array(
        'columnName' => 'testing',
        'possible' => "100.0",
        "scorable"=> "true",
        "showStatsToStudent"=> "true",
        "visible"=> "true",
        "visibleInBook"=> "true",
    );

$id = $blackboard->Gradebook( "saveColumns", $params );

如果一切正常,您将获得一个新创建的列ID,如下所示:_1326_1

If everything is ok you will get a newly-created column id in return like this: _1326_1

这篇关于黑板SOAP Web服务php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆