Hi,
Very strange that the part on that DocLiteralInInterceptor is complaining is
{http://schemas.xmlsoap.org/soap/envelope/}Envelope.
I can explain it only if message is double wrapped into soap envelope.
Regards,
Andrei.
-----Original Message-----
From: Freeman Fang [mailto:[email protected]]
Sent: 10 May 2012 02:50
To: [email protected]
Subject: Re: Envelope not recognized
Hi,
The error message indicates that your service doesn't expect a soap binding
incoming message, probably your service expect XML binding incoming message
which should be plain xml. Could you double check your service configuration,
especially compare it with the one works?
Freeman
On 2012-5-9, at 下午8:30, johngalt wrote:
> Using cxf 2.6.0
> I have a working service that I basically made a copy of. Both deploy
> into tomcat fine, but when I send a request (Using soapui) to the
> second one it returns the following:
>
> REQUEST:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "
> xmlns:tran="http://123.com/ingest/transcode/">
> <soapenv:Header/>
> <soapenv:Body>
> <tran:doubleMe>
> <numberToDouble>23</numberToDouble>
> </tran:doubleMe>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> May 9, 2012 7:54:12 AM org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging
> WARNING: Interceptor for {http://123.com/ingest/
> transcode/}TranscodeService has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Message part
> {http://schemas.xmlsoap.org/soap/envelope/}Envelope was not
> recognized.
> (Does it exist in service WSDL?)
> at
> org
> .apache
> .cxf
> .interceptor
> .DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:
> 196)
> at
> org
> .apache
> .cxf
> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> 262)
> at
> org
> .apache
> .cxf
> .transport
> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
> at
> org
> .apache
> .cxf
> .transport
> .http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
> at
> org
> .apache
> .cxf
> .transport
> .servlet.ServletController.invokeDestination(ServletController.java:
> 213)
> at
> org
> .apache
> .cxf
> .transport.servlet.ServletController.invoke(ServletController.java:
> 193)
> at
> org
> .apache
> .cxf
> .transport
> .servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129)
> at
> org
> .apache
> .cxf
> .transport
> .servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:
> 187)
> at
> org
> .apache
> .cxf
> .transport
> .servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:110)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> at
> org
> .apache
> .cxf
> .transport
> .servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:166)
> at
> org
> .apache
> .catalina
> .core
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 305)
> at
> org
> .apache
> .catalina
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org
> .apache
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 225)
> at
> org
> .apache
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 169)
> at
> org
> .apache
> .catalina
> .authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org
> .apache
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
> at
> org
> .apache
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 927)
> at
> org
> .apache
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 118)
> at
> org
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 407)
> at
> org
> .apache
> .coyote
> .http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:
> 999)
> at
> org.apache.coyote.AbstractProtocol
> $AbstractConnectionHandler.process(AbstractProtocol.java:565)
> at
> org.apache.tomcat.util.net.AprEndpoint
> $SocketProcessor.run(AprEndpoint.java:1812)
> at
> java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
>
> I cannot see any difference between the working version and the one
> producing this error: wsdls, requests, generated code, configuration
> files, all look the same (except for different namespaces of course)
> Learning how all this fits together, so maybe I'm missing something?
> Attached is the non working service wsdl.
>
> Thanks
>
> http://cxf.547215.n5.nabble.com/file/n5697250/Transcode.wsdl
> Transcode.wsdl
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Envelope-not-recognized-tp5697250.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
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042