Hi,

This error is caused by that xml fragment doesn't meet the message schema specified in wsdl.

If you specify both useJBIWrapper and useSOAPEnvelope to false, then cxf bc provider endpoint expect a message payload, for example, if the soap message is <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap- envelope"><soap:Body><add xmlns="http://apache.org/cxf/calculator/ types"><arg0>1</arg0><arg1>-2</arg1></add></soap:Body></soap:Envelope>
then cxfbc provider expect
<add xmlns="http://apache.org/cxf/calculator/types";><arg0>1</ arg0><arg1>-2</arg1></add>

You need firstly figure out what the correct soap message is according to the wsdl used for cxf bc provider.
To know what's the correct soap message, two option I can suggest
1. use soapUI load your wsdl and generate a default request.
2. create client/server from your wsdl with cxf wsdl2java tool and dump the onwire message. Option 2 is a little bit complicated but it ensure your wsdl works with cxf.

Freeman
On 2011-4-7, at 下午5:01, pchakinala wrote:

Hi,
Thanks for the update.After adding the useJBIWrapper,JBiSoapEnvelope
attribute values to false found below exception in the servicemix log file.

Errror in Servicemix log file
=======================================


User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: 1.9.2.16)
Gecko/20110319 Firefox/3.6.16 GTB7.1 ( .NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Length: 48
Content-Type: text/plain; charset=UTF-8
Pragma: no-cache
Cache-Control: no-cache


12:46:15,234 | DEBUG | - /manuTransmit/ | HttpComponent |
121 - servicemix-common - 2011.01.0 | Created correlation id:
3ffe5dd3-89f7-4992-976d-18fb1b714be9
12:46:15,234 | DEBUG | - /manuTransmit/ | NMR |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@15d2461 dispatching exchange: [
 id:        3ffe5dd3-89f7-4992-976d-18fb1b714be9
 mep:       InOnly
 status:    Active
 role:      Consumer
 target:
PropertyMatchingReference[{SERVICE_NAME={http:// order.demo/}OrderProcessService}]
 properties: [
     javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@17a3972
     javax.jbi.messaging.sendSync =
     javax.jbi.ServiceName = {http://order.demo/}OrderProcessService
     org.apache.servicemix.correlationId =
3ffe5dd3-89f7-4992-976d-18fb1b714be9
     javax.jbi.transaction.jta =
     javax.jbi.InterfaceName =
     org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
 ]
]

12:46:15,234 | DEBUG | - /manuTransmit/ | NMR |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@14ce93e delivering exchange: [
 id:        3ffe5dd3-89f7-4992-976d-18fb1b714be9
 mep:       InOnly
 status:    Active
 role:      Consumer
 target:
PropertyMatchingReference[{SERVICE_NAME={http:// order.demo/}OrderProcessService}]
 properties: [
     javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@17a3972
     javax.jbi.messaging.sendSync =
     javax.jbi.ServiceName = {http://order.demo/}OrderProcessService
     org.apache.servicemix.correlationId =
3ffe5dd3-89f7-4992-976d-18fb1b714be9
     javax.jbi.transaction.jta =
     javax.jbi.InterfaceName =
     org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
 ]
]

12:46:15,234 | DEBUG | - /manuTransmit/ | ConsumerProcessor | 162 - servicemix-http - 2011.01.0 | Suspending continuation for exchange:
3ffe5dd3-89f7-4992-976d-18fb1b714be9
12:46:15,234 | DEBUG | 79@qtp-4572701-0 | jetty |
133 - org.ops4j.pax.web.pax-web-jetty - 0.7.4 | continuation
RetryContinuation@22122240,pending
12:46:15,234 | DEBUG | rovider-thread-3 | CxfBcComponent | 121 - servicemix-common - 2011.01.0 | Received exchange: status: Active,
role: provider
12:46:15,234 | DEBUG | rovider-thread-3 | CxfBcComponent |
121 - servicemix-common - 2011.01.0 | Retrieved correlation id:
3ffe5dd3-89f7-4992-976d-18fb1b714be9
12:46:15,234 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Chain org.apache.cxf.phase.PhaseInterceptorChain@18377d6 was
created. Current flow:
 setup [PolicyOutInterceptor, ServerPolicyOutFaultInterceptor]
 post-logical [SoapPreProtocolOutInterceptor]
 pre-stream [JbiOutInterceptor, StaxOutInterceptor]
 write [SoapOutInterceptor]
 marshal [JbiOutWsdl1Interceptor]

12:46:15,234 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyOutInterceptor@1978a17
12:46:15,234 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.ServerPolicyOutFaultInterceptor@1eb0eac
12:46:15,234 | DEBUG | rovider-thread-3 | ServerPolicyOutFaultInterceptor |
-  -  | Is a requestor.
12:46:15,234 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org .apache .cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@13e9928 12:46:15,234 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.servicemix.cxfbc.interceptors.JbiOutInterceptor@179c06e
12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.interceptor.StaxOutInterceptor@2c8fd7
12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Adding interceptor
org.apache.cxf.interceptor.StaxOutInterceptor $StaxOutEndingInterceptor@1536558
to phase pre-stream-ending
12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Chain org.apache.cxf.phase.PhaseInterceptorChain@18377d6 was
modified. Current flow:
 setup [PolicyOutInterceptor, ServerPolicyOutFaultInterceptor]
 post-logical [SoapPreProtocolOutInterceptor]
 pre-stream [JbiOutInterceptor, StaxOutInterceptor]
 write [SoapOutInterceptor]
 marshal [JbiOutWsdl1Interceptor]
 pre-stream-ending [StaxOutEndingInterceptor]

12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@b94819
12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor $SoapOutEndingInterceptor@30a748
to phase write-ending
12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Chain org.apache.cxf.phase.PhaseInterceptorChain@18377d6 was
modified. Current flow:
 setup [PolicyOutInterceptor, ServerPolicyOutFaultInterceptor]
 post-logical [SoapPreProtocolOutInterceptor]
 pre-stream [JbiOutInterceptor, StaxOutInterceptor]
 write [SoapOutInterceptor]
 marshal [JbiOutWsdl1Interceptor]
 write-ending [SoapOutEndingInterceptor]
 pre-stream-ending [StaxOutEndingInterceptor]

12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org .apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor@1336548 12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor $SoapOutEndingInterceptor@30a748 12:46:15,250 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.interceptor.StaxOutInterceptor $StaxOutEndingInterceptor@1536558 12:46:15,250 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | Sending POST Message with Headers to
http://localhost:8080/orderapp/OrderProcess Conduit
:{http://order.demo/}OrderProcessPort.http-conduit
Content-Type: text/xml; charset=UTF-8

12:46:15,250 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | Accept: */*
12:46:15,250 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | SOAPAction: ""
12:46:15,250 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | No Trust Decider for Conduit
'{http://order.demo/}OrderProcessPort.http-conduit'. An afirmative Trust
Decision is assumed.
12:46:15,265 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | Response Code: 500 Conduit:
{http://order.demo/}OrderProcessPort.http-conduit
12:46:15,265 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | Content length: 286
12:46:15,265 | DEBUG | rovider-thread-3 | HTTPConduit |
-  -  | Header fields:
   Content-Length: [286]
   Connection: [close]
   null: [HTTP/1.1 500 Internal Server Error]
   Date: [Thu, 07 Apr 2011 07:16:15 GMT]
   Server: [Apache-Coyote/1.1]
   Content-Type: [text/xml;charset=UTF-8]

12:46:15,265 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Adding interceptor
org.apache.cxf.ws.policy.PolicyInInterceptor@cfceab to phase receive
12:46:15,265 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Adding interceptor
org .apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@366c2b to
phase read
12:46:15,265 | DEBUG | rovider-thread-3 | PhaseInterceptorChain |
-  -  | Adding interceptor
====================================================================



Below Error message appeared at Server side where webservice has hosted

============
Apr 7, 2011 1:56:21 PM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for
{http://order.demo/}OrderProcessImplService#{http:// order.demo/}processOrder
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected wrapper element processOrder
found.   Expected {http://order.demo/}processOrder.
       at
org .apache .cxf .interceptor .DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java: 106)
       at
org .apache .cxf .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java: 255)
       at
org .apache .cxf .transport .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)
       at
org .apache .cxf .transport.servlet.ServletDestination.invoke(ServletDestination.java: 97)
       at
org .apache .cxf .transport .servlet.ServletController.invokeDestination(ServletController.java: 461)
       at
org .apache .cxf .transport.servlet.ServletController.invoke(ServletController.java: 188)
       at
org .apache .cxf .transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java: 148)
       at
org .apache .cxf .transport .servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java: 179)
       at
org .apache .cxf .transport .servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       at
org .apache .cxf .transport .servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
       at
org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 269)
       at
org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at
org .apache .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 213)
       at
org .apache .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 174)
       at
org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at
org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
================
request message from HTTP client:


bbbb


Please update me do i need send WSDL file to debug the issue.


Regards,
Praveen Chakinala

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/CXF-BC-Provider-SOAP-conversion-tp4286503p4288010.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference








Reply via email to