Hi,
From the stacktrace, you're using axis2 jaxws implementation but not
cxf.
You need remove axis2 from your dependency and add cxf-rt-frontend-
jaxws dependency if you're using maven pom.xml.
Or remove axis2 jar from your classpath and ensure cxf-rt-frontend-
jaxws.jar is in the classpath.
Freeman
On 2011-5-18, at 上午2:16, vsv001 wrote:
I am a newbie to cxf. I am seeing the error message
ServiceDescription.updateEndpointDescription: Can not do a getPort
on a port
added via addPort().
My code is . I get the error during the getPort call.
Service SISservice = Service.create(SIS_SERVICE_NAME);
SISservice.addPort(SIS_PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING,
_primaryServiceEndpoint);
CWSSIC = SISservice.getPort(SIS_PORT_NAME,
ICWSServiceInformation.class);
javax.xml.ws.WebServiceException:
ServiceDescription.updateEndpointDescription: Can not do a getPort
on a port
added via addPort(). PortQN:
{http://schemas.ipcommerce.com/CWS/v2.0/
ServiceInformation}ServiceInfoProcessing_ICWSServiceInformation
at
org
.apache
.axis2
.jaxws
.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
at
org
.apache
.axis2
.jaxws
.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
at
org
.apache
.axis2
.jaxws
.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118)
at
org
.apache
.axis2
.jaxws
.description
.impl
.ServiceDescriptionImpl
.updateEndpointDescription(ServiceDescriptionImpl.java:487)
at
org
.apache
.axis2
.jaxws
.description
.impl
.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:
354)
at
org
.apache
.axis2
.jaxws
.description
.DescriptionFactory.updateEndpoint(DescriptionFactory.java:178)
at
org
.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:
556)
at
org
.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:
479)
at javax.xml.ws.Service.getPort(Unknown Source)
I appreciate your help.
Thank you
--
View this message in context:
http://cxf.547215.n5.nabble.com/Error-Can-not-do-a-getPort-on-a-port-added-via-addPort-tp4404350p4404350.html
Sent from the cxf-user mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference