You are using the URL for the WSDL for the access URL.   Make sure you use the 
proper endpoint address.  (usually, remove the ?WSDL)

Dan


On Wed May 27 2009 10:28:29 am wangzz wrote:
> Hi everyone
>
> I just deploy a webservice using anotations and spring to generate it, it
> works fine for the wsdl generation, but when i try to consume the service
> fault with this exception,but when I restart my server(tomcat6.0),the
> webservice works well.
>
> access url is
> "http://localhost:8080/lclmDataCollection/services/datacollection?wsdl";
>
> Caused by: org.apache.cxf.binding.soap.SoapFault:
> "http://schemas.xmlsoap.org/wsdl/";, the namespace on the "definitions"
> element, is not a valid SOAP version.
>       at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessag
>e(ReadHeadersInterceptor.java:95) at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessag
>e(ReadHeadersInterceptor.java:57) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:641) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>eInternal(HTTPConduit.java:2134) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRespons
>e(HTTPConduit.java:2013) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCon
>duit.java:1938) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:626) at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInte
>rceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:120)
>
> Is any idea ,Thank you.

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to