I'm trying to build a webservice against the WSDL at http://www.xignite.com/xRealTime.asmx?WSDL

I generated the client using wsdl2Java included the -exsh flag. However, when I run the SOAP client, I get the following exception:

Note: The web service works perfectly when I access from Axis2 generated client, but I'd really like to use CXF. So please help!

EXCEPTION STACK TRACE:
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find a message part matching name {http://www.xignite.com/services/}Header. Possible values are [{http://www.xignite.com/services/}Time, {http://www.xignite.com/services/}Symbol, http://www.xignite.com/services/}Exchange].

at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeParameter(Jax
WsServiceFactoryBean.java:393)

at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeClassInfo(Jax
WsServiceFactoryBean.java:371)

at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation
(JaxWsServiceFactoryBean.java:187)

at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOp
erations(ReflectionServiceFactoryBean.java:303)

at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation
s(JaxWsServiceFactoryBean.java:196)

at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFrom
WSDL(ReflectionServiceFactoryBean.java:195)

at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServic
eModel(ReflectionServiceFactoryBean.java:246)

at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflectio
nServiceFactoryBean.java:136)

at
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpo
intFactory.java:83)

at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:50)

at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean
.java:82)

at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:320)

at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:238)

Reply via email to