通过WSO2中的WSO2 ESB和API Manager连接到公开的Soap Soap服务

时间:2015-10-07 05:57:57

标签: soap wso2 integration wso2esb wso2-am

我正在使用WSO2 ESB和API管理器作为RESTful公开,需要使用简单SOAP绑定连接到Backend服务。 Api Manager在我的场景中是必不可少的,所以不能忽视它。

我已配置两者但面临身份验证中的一些问题。

下面是描述问题的错误日志。

 [2015-10-06 18:10:59,721] ERROR - APIUtil Unauthorized client domain :null. Only


"[]" domains are authorized to access the API.
[2015-10-06 18:10:59,727] ERROR - AbstractKeyValidationHandler Error while valid
ating client domain

org.wso2.carbon.apimgt.api.APIManagementException: Unauthorized client domain :n
ull. Only "[]" domains are authorized to access the API.
        at org.wso2.carbon.apimgt.impl.utils.APIUtil.checkClientDomainAuthorized
(APIUtil.java:3916)
        at org.wso2.carbon.apimgt.keymgt.handlers.AbstractKeyValidationHandler.c
heckClientDomainAuthorized(AbstractKeyValidationHandler.java:92)
        at org.wso2.carbon.apimgt.keymgt.handlers.AbstractKeyValidationHandler.v
alidateSubscription(AbstractKeyValidationHandler.java:73)
        at org.wso2.carbon.apimgt.keymgt.service.APIKeyValidationService.validat
eKey(APIKeyValidationService.java:157)
        at org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationServiceI
mpl.validateKey(APIKeyValidationServiceImpl.java:131)
        at org.wso2.carbon.apimgt.impl.generated.thrift.APIKeyValidationService$
Processor$validateKey.getResult(APIKeyValidationService.java:278)
        at org.wso2.carbon.apimgt.impl.generated.thrift.APIKeyValidationService$
Processor$validateKey.getResult(APIKeyValidationService.java:266)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadP
oolServer.java:176)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2015-10-06 18:10:59,749] ERROR - APIUtil Unauthorized client domain :null. Only
 "[]" domains are authorized to access the API.
[2015-10-06 18:10:59,750]  WARN - APIAuthenticationHandler API authentication fa
ilure due to Unclassified Authentication Failure

请建议我在哪里做错了。

请注意,我使用了一个简单的公开可用的Soap服务。

1 个答案:

答案 0 :(得分:0)

这可能是因为您的令牌已过期。因此,在identity.xml上设置以下值

AccessTokenDefaultValidityPeriod to -1 

并重新启动服务器

了解更多信息 https://docs.wso2.com/display/AM190/Token+API#TokenAPI-Configuringthetokenexpirationtime