1

我一直在尝试学习如何使用 PHP 访问知识网的肥皂服务。我正在使用从https://gist.github.com/domoritz/2012629下载的以下代码。

<?php
$auth_url = "http://search.isiknowledge.com/esti/wokmws/ws/WOKMWSAuthenticate?wsdl";
$auth_client = @new SoapClient($auth_url);
$auth_response = $auth_client->authenticate();

$search_url = "http://search.isiknowledge.com/esti/wokmws/ws/WokSearchLite?wsdl";
$search_client = @new SoapClient($search_url);
$search_client->__setCookie('SID',$auth_response->return);

$search_array = array(
'queryParameters' => array(
'databaseID' => 'WOS',
'userQuery' => 'AU=Douglas T*',
'editions' => array(
array('collection' => 'WOS', 'edition' => 'SSCI'),
array('collection' => 'WOS', 'edition' => 'SCI')
),
'queryLanguage' => 'en'
),
'retrieveParameters' => array(
'count' => '5',
'fields' => array(
array('name' => 'Date', 'sort' => 'D')
),
'firstRecord' => '1'
)
);

try{
$search_response = $search_client->search($search_array);
} catch (Exception $e) {
echo $e->getMessage();
}

print_r($search_response);
?>

该代码似乎正在工作。但是,$search_response我收到的是“用户没有此服务级别的权利 - WOKSearchLight”。我正在尝试从可以访问知识网络的机构内部的服务器访问这段数据,并且我实际上使用http://apps.webofknowledge.com/UA_GeneralSearch_input.do 连接到知识网络? product=UA&search_mode=GeneralSearch&SID=4Dd8nnfofoOm@7@5KH6&preferencesSaved= .

谁能告诉我发生了什么?我需要网站的额外许可吗?

我真的很感激任何帮助!

4

1 回答 1

2

Yes you need to register first at http://ip-science.thomsonreuters.com/info/ws_form/?agree=0&x=31&y=12 and enter your IP address, then it should work I think...

于 2014-02-12T14:18:02.657 回答