有开发WerbService经验者请进:SOAPFaultException
在调用CXF的webService时出现这种情况,劳烦有经验者提示一下。
?
?以下是抛出的异常,有经验者 劳烦 回复。
javax.xml.ws.soap.SOAPFaultException: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)$Proxy102.login(Unknown Source)com.transnal.authentication.UcenterAuthenticationHandler.authenticateUsernamePasswordInternal(UcenterAuthenticationHandler.java:30)org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler.doAuthentication(AbstractUsernamePasswordAuthenticationHandler.java:58)org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate_aroundBody2(AbstractPreAndPostProcessingAuthenticationHandler.java:72)org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate_aroundBody3$advice(AbstractPreAndPostProcessingAuthenticationHandler.java:44)org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate(AbstractPreAndPostProcessingAuthenticationHandler.java:1)org.jasig.cas.authentication.AuthenticationManagerImpl.authenticateAndObtainPrincipal(AuthenticationManagerImpl.java:78)org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate_aroundBody0(AbstractAuthenticationManager.java:42)org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate_aroundBody1$advice(AbstractAuthenticationManager.java:44)org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:1)org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody10(CentralAuthenticationServiceImpl.java:413)org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody11$advice(CentralAuthenticationServiceImpl.java:44)org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:1)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)org.perf4j.aop.AbstractTimingAspect.doPerfLogging(AbstractTimingAspect.java:71)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)$Proxy20.createTicketGrantingTicket(Unknown Source)org.jasig.cas.web.flow.AuthenticationViaFormAction.submit_aroundBody2(AuthenticationViaFormAction.java:85)org.jasig.cas.web.flow.AuthenticationViaFormAction.submit_aroundBody3$advice(AuthenticationViaFormAction.java:44)org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:1)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:851)ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1253)ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)com.opensymphony.xwork2.util.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:88)ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1329)ognl.ASTMethod.getValueBody(ASTMethod.java:90)ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)ognl.SimpleNode.getValue(SimpleNode.java:258)ognl.ASTChain.getValueBody(ASTChain.java:141)ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)ognl.SimpleNode.getValue(SimpleNode.java:258)ognl.Ognl.getValue(Ognl.java:494)org.springframework.binding.expression.ognl.OgnlExpression.getValue(OgnlExpression.java:85)org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:75)org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)org.springframework.webflow.engine.State.enter(State.java:194)org.springframework.webflow.engine.Transition.execute(Transition.java:227)org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:391)org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:386)org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:230)org.springframework.webflow.engine.ViewState.resume(ViewState.java:196)org.springframework.webflow.engine.Flow.resume(Flow.java:545)org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:788)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)javax.servlet.http.HttpServlet.service(HttpServlet.java:641)javax.servlet.http.HttpServlet.service(HttpServlet.java:722)org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:115)org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:44)org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:46)org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)root cause
?
org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:94)org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:633)org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2064)org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1942)org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1867)org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:595)org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:466)org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)$Proxy102.login(Unknown Source)
?