使用 PHP 访问知识网络的 SOAP 服务 [英] SOAP service for accessing web of knowledge using PHP

查看:24
本文介绍了使用 PHP 访问知识网络的 SOAP 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力学习如何使用 PHP 访问知识网的肥皂服务.我正在使用下面的代码,我从 https://gist.github.com/domoritz/2012629.

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

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

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?

我非常感谢您的帮助!

推荐答案

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

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...

这篇关于使用 PHP 访问知识网络的 SOAP 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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