使用 PHP 访问知识网络的 SOAP 服务

编程入门 行业动态 更新时间:2024-10-23 12:30:57
本文介绍了使用 PHP 访问知识网络的 SOAP 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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

$search_url = "http://search.isiknowledge/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/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/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/info/ws_form/?agree=0&x=31&y=12 并输入您的 IP地址,那么我认为它应该可以工作...

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

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

更多推荐

[db:关键词]

本文发布于:2023-04-26 06:29:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1130516.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:知识   网络   PHP   SOAP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!