无法从 ServiceEndpointAddress 创建 AxisService

发布于 2024-08-18 12:08:48 字数 1407 浏览 4 评论 0原文

我在 WS 上做了一些测试。我用多种方法创建了一个 wsdl。

但我只能执行第一种方法,其他方法失败并给出以下错误:

javax.xml.ws.ProtocolException: CWWSS7200E: Unable to create AxisService from ServiceEndpointAddress 
atorg.apache.axis2.jaxws.ExceptionFactory.createProtocolException(ExceptionFactory.java:199)
atorg.apache.axis2.jaxws.ExceptionFactory.makeProtocolException(ExceptionFactory.java:97)
atorg.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1256)
atorg.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:975)
atorg.apache.axis2.jaxws.marshaller.impl.alt.DocLitBareMethodMarshaller.demarshalFaultResponse(DocLitBareMethodMarshaller.java:412)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:421)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:384)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:308)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:158)
    at $Proxy28.deleteContainer(Unknown Source)
atcom.privasia.etp.ldoprocess.service.DeleteContainerProcessPortProxy.deleteContainer(DeleteContainerProcessPortProxy.java:83)
    at DeleteContainerTest.main(DeleteContainerTest.java:48) 

知道出了什么问题吗?

I do some testing on WS. I create a wsdl with multiple method.

But I only can execute the 1st method, others failed and give me error below:

javax.xml.ws.ProtocolException: CWWSS7200E: Unable to create AxisService from ServiceEndpointAddress 
atorg.apache.axis2.jaxws.ExceptionFactory.createProtocolException(ExceptionFactory.java:199)
atorg.apache.axis2.jaxws.ExceptionFactory.makeProtocolException(ExceptionFactory.java:97)
atorg.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1256)
atorg.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:975)
atorg.apache.axis2.jaxws.marshaller.impl.alt.DocLitBareMethodMarshaller.demarshalFaultResponse(DocLitBareMethodMarshaller.java:412)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:421)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:384)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:308)
atorg.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:158)
    at $Proxy28.deleteContainer(Unknown Source)
atcom.privasia.etp.ldoprocess.service.DeleteContainerProcessPortProxy.deleteContainer(DeleteContainerProcessPortProxy.java:83)
    at DeleteContainerTest.main(DeleteContainerTest.java:48) 

Any Idea what goes wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岛歌少女 2024-08-25 12:08:48

如果您正在使用 WebSphere,那么这是由于 WebSphere 中的错误造成的。
请参阅...

PK96567:CWWSS7200E:无法在上下文中从 SERVICEENDPOINTADD RESS 创建 AXISSERVICE根目录是“/”

本地修复

不使用“/”作为上下文根。

问题总结

<前><代码>************************************************ ******************
* 受影响的用户:IBM WebSphere Application Server V7.0 用户 *
* JAX-WS Web 服务 *
****************************************************** **************
* 问题描述:部署 JAX-WS Web 服务时 *
* 使用“/”作为上下文根,客户端 *
* 无法访问网络服务。 *
****************************************************** **************
* 推荐: *
****************************************************** **************
当使用“/”作为上下文部署 JAX-WS Web 服务时
root,Web 服务运行时不解析请求 URL
正确。

结果是客户端无法访问网页
服务。

ffdc日志中可能出现如下异常:

CWWSS7200E:
无法从 ServiceEndpointAddress 创建 AxisService

com.ibm.wsspi.wssecurity.core.SoapSecurityException.format(SoapS
安全异常.java:100)

com.ibm.ws.wssecurity.util.Axis2Util.isServiceProvider(Axis2Util
.java:109)

com.ibm.ws.wssecurity.handler.WSSecurityConsumerHandler._invoke(
WSSecurityConsumerHandler.java:231)

If you are using WebSphere then it is due to a bug in WebSphere.
refer...

PK96567: CWWSS7200E: UNABLE TO CREATE AXISSERVICE FROM SERVICEENDPOINTADD RESS WHEN CONTEXT ROOT IS "/"

Local fix

Not using "/" for context root.

Problem summary

****************************************************************
* USERS AFFECTED:  IBM WebSphere Application Server V7.0 users *
*                  of JAX-WS web services                      *
****************************************************************
* PROBLEM DESCRIPTION: When a JAX-WS web service is deployed   *
*                      using "/" as context root, a client     *
*                      cannot access the web service.          *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When a JAX-WS web service is deployed using "/" as the context
root, the web services runtime doesn't parse the request URL
correctly.

The result is that the client cannot access the web
service.

The following exception may occur in the ffdc log:

CWWSS7200E:
Unable to create AxisService from ServiceEndpointAddress
at
com.ibm.wsspi.wssecurity.core.SoapSecurityException.format(SoapS
ecurityException.java:100)
at
com.ibm.ws.wssecurity.util.Axis2Util.isServiceProvider(Axis2Util
.java:109)
at
com.ibm.ws.wssecurity.handler.WSSecurityConsumerHandler._invoke(
WSSecurityConsumerHandler.java:231)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文