Blackboard SOAP web service php

人走茶凉 提交于 2020-01-25 04:47:24

问题


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.

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

It returns

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

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!


回答1:


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

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



来源:https://stackoverflow.com/questions/30294472/blackboard-soap-web-service-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!