2010-01-19 34 views
1

我對WS進行了一些測試。我用多種方法創建了一個wsdl。無法從ServiceEndpointAddress創建AxisService

但我只可以執行第1種方法,失敗的人,給我下面的錯誤:

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) 

任何想法什麼不順心?

回答

0

如果您使用的是WebSphere,那麼這是由於WebSphere中的一個錯誤。 指...

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

本地修訂

Not using "/" for context root. 

問題摘要

**************************************************************** 
* 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) 
+1

鏈接只有答案並不歡迎堆棧溢出。 – hims056 2012-12-04 11:20:47