You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by wangzz <wa...@hotmail.com> on 2009/05/27 16:28:29 UTC

org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.

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.handleMessage(ReadHeadersInterceptor.java:95)
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:57)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:641)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2134)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2013)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.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$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.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.
-- 
View this message in context: http://www.nabble.com/org.apache.cxf.binding.soap.SoapFault%3A-%22http%3A--schemas.xmlsoap.org-wsdl-%22%2C-the-namespace-on-the-%22definitions%22-element%2C-is-not-a-valid-SOAP-version.-tp23743638p23743638.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.

Posted by Alexey Zavizionov <al...@gmail.com>.
I had not the same but close to your issue, look at
http://zavizionov.blogspot.com/2009/09/element-soapaddress-is-wrong-namespace.html

On Wed, May 27, 2009 at 5:28 PM, wangzz <wa...@hotmail.com> 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.handleMessage(ReadHeadersInterceptor.java:95)
>        at
>
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:57)
>        at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:641)
>        at
>
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2134)
>        at
>
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2013)
>        at
>
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.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$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>        at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.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.
> --
> View this message in context:
> http://www.nabble.com/org.apache.cxf.binding.soap.SoapFault%3A-%22http%3A--schemas.xmlsoap.org-wsdl-%22%2C-the-namespace-on-the-%22definitions%22-element%2C-is-not-a-valid-SOAP-version.-tp23743638p23743638.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Re: org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://www.dankulp.com/blog