gpt4 book ai didi

wso2 - 调用 wso2 管理服务 SOAPUI

转载 作者:行者123 更新时间:2023-12-02 08:40:08 25 4
gpt4 key购买 nike

我正在研究 wso2 管理服务。对于 AuthencticationAdmin,我得到的 url 为 http://localhost:9763/services/AuthenticationAdmin?wsdl

现在,当我使用 admin,admin,127.0.0.1 进行登录操作时,返回 true。

ESB 控制台显示已登录。

现在,当我点击注销操作时,我没有得到任何响应。

我还注意到响应的 header 不包含任何 session ID。

我的 ESB 是 4.6.0。

登录请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.services.core.carbon.wso2.org">
<soapenv:Header/>
<soapenv:Body>
<aut:login>
<!--Optional:-->
<aut:username>admin</aut:username>
<!--Optional:-->
<aut:password>admin</aut:password>
<!--Optional:-->
<aut:remoteAddress>127.0.0.1</aut:remoteAddress>
</aut:login>
</soapenv:Body>
</soapenv:Envelope>

登录响应:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:loginResponse xmlns:ns="http://authentication.services.core.carbon.wso2.org">
<ns:return>true</ns:return>
</ns:loginResponse>
</soapenv:Body>
</soapenv:Envelope>

在响应中,当我点击登录时,我看到,在底部我只在标题中得到 6 个元素,如下所示:

> Date Tue, 25 Jun 2013 14:31:42 GMT
> Transfer-Encoding chunked
> #status# HTTP/1.1 200 OK
> Content-Type text/xml; charset=UTF-8
> Connection Keep-Alive
> Server WSO2-PassThrough-HTTP

现在,我没有获得 session ID。你能指出我哪里出错了吗?

我的场景是我想登录 WSO2,然后点击其他一些管理服务操作。

最佳答案

在使用 Java 客户端调试一段时间后(参见我的其他回答),我注意到 SOAPUI 端点没有使用我在 Java 客户端中使用的 9443 端口。请参见下图。

enter image description here

8243 端口由 SOAPUI 从 WSDL 获取。

当我将 SOAP UI 端点端口从 8243 更改为 9443 时,JSESSIONID 会在响应中返回,如下所示:

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=573D42750DE6C0A287E1582239EB5847; Path=/; Secure; HttpOnly
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 26 Jun 2013 22:14:20 GMT
Server: WSO2 Carbon Server

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:loginResponse xmlns:ns="http://authentication.services.core.carbon.wso2.org"><ns:return>true</ns:return></ns:loginResponse></soapenv:Body></soapenv:Envelope>

我不知道端口 8243 和 9443 之间有什么区别,或者为什么一个返回 JSESSIONID 而另一个不返回。

关于wso2 - 调用 wso2 管理服务 SOAPUI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17311766/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com