简体   繁体   中英

SOAP service for accessing web of knowledge using PHP

I have been trying to learn how to access the soap services of Web of knowledge using PHP. I am using the code below, which I downloaded from 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);
?>

The code seems to be working. However, the $search_response I receive is "User has no entitlement for this service level - WOKSearchLight". I am trying to access this piece of data from a server that is inside an institution that has access to the web of knowledge, and I am actually connected to web of knowledge using http://apps.webofknowledge.com/UA_GeneralSearch_input.do?product=UA&search_mode=GeneralSearch&SID=4Dd8nnfofoOm@7@5KH6&preferencesSaved= .

Can anyone tell me what is happening? Do I need an extra permission of the site?

I really appreciate any help!

是的,您需要先在http://ip-science.thomsonreuters.com/info/ws_form/?agree=0&x=31&y=12进行注册,然后输入您的IP地址,然后我认为它应该可以工作...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM