Thanks for the help. I don't know what was causing the problem, I changed the wsdl to only contain the Soap 1.1 binding and now it works. 1.1 is fine for now as I just needed the service functional.
Thanks, Danny On Thu, May 10, 2012 at 4:31 AM, Andrei Shakirin [via CXF] < [email protected]> wrote: > 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:[hidden > email]<http://user/SendEmail.jtp?type=node&node=5699528&i=0>] > > Sent: 10 May 2012 02:50 > To: [hidden email] <http://user/SendEmail.jtp?type=node&node=5699528&i=1> > 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:[hidden email]<http://user/SendEmail.jtp?type=node&node=5699528&i=2> > Web: fusesource.com > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: http://weibo.com/u/1473905042 > > > > > > > > > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://cxf.547215.n5.nabble.com/Envelope-not-recognized-tp5697250p5699528.html > To unsubscribe from Envelope not recognized, click > here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5697250&code=ZGFubnlnYWxsYWdoZXIyQGdtYWlsLmNvbXw1Njk3MjUwfDQ3NzM3NjExNA==> > . > NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://cxf.547215.n5.nabble.com/Envelope-not-recognized-tp5697250p5699883.html Sent from the cxf-user mailing list archive at Nabble.com.
