Hi,
As I mentioned before, you'd better use cxf bc consumer but not http
consumer here, it's better to handle soap request and with cxf bc
consumer, it's unnecessary to specify operationName, it can exact
operationName automatically from incoming soap payload.
Freeman
On 2011-7-21, at 下午9:41, pchakinala wrote:
Hi Freeman,
I have not added methodName to cxf bc provider. However If I do not
add methodName to http:consumer found below exception msg.
?xml version='1.0' encoding='UTF-8'?><error><!
[CDATA[org.apache.cxf.interceptor.Fault: Operation not bound on this
MessageExchange
at
org
.apache
.servicemix.cxfbc.CxfBcProvider.findOperation(CxfBcProvider.java:550)
at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:
219)
at
org
.apache
.servicemix
.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)
at
org
.apache
.servicemix
.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:
606)
at
org
.apache
.servicemix
.common
.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)
at org.apache.servicemix.common.AsyncBaseLifeCycle
$2.run(AsyncBaseLifeCycle.java:370)
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)
Caused by: java.lang.Exception: Operation not bound on this
MessageExchange
... 9 more
After adding method name to http:consumer i got other exception
which i had sent you earlier
<?xml version='1.0' encoding='UTF-8'?><soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"><faultcode>soapenv:Server.userException</
faultcode><faultstring>org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it
was trying to deserialize.</faultstring><detail><ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">Arunkarthik</ns1:hostname></
detail></soapenv:Fault>
Here attached http su,cxf su files for your reference.cxf su
contains wsdl file also.
Regards,
Praveen Chakinala
From: Freeman-2 [via ServiceMix] [mailto:[email protected]
]
Sent: Wednesday, July 20, 2011 7:07 PM
To: pchakinala
Subject: Re: <faultstring>org.xml.sax.SAXException:
SimpleDeserializerencountered a child element,
Hi,
With cxf bc consumer you needn't specify the operationName, cxf bc
endpoint can extract it automatically from the soap message payload.
Freeman
On 2011-7-20, at 下午8:37, pchakinala wrote:
Hi Freeman,
1) is it issue with operationname used in http:consumer element.
2 ) Earlier i have tried with cxf:bc consumer also.
I did not find attribute (targetOperation attribute is not
available )to
mention operation name in cxf:bc consumer element.
Please update me which attribute will be used to specify operation
name with
cxf:bc consumer
Regards,
Praveen Chakinala
--
View this message in context:
http://servicemix.396122.n5.nabble.com/faultstring-org-xml-sax-SAXException-SimpleDeserializer-encountered-a-child-element-tp4615628p4615713.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[hidden email]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
_____
If you reply to this email, your message will be added to the
discussion below:
http://servicemix.396122.n5.nabble.com/faultstring-org-xml-sax-SAXException-SimpleDeserializer-encountered-a-child-element-tp4615628p4615862.html
To unsubscribe from <faultstring>org.xml.sax.SAXException:
SimpleDeserializer encountered a child element,, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4615628&code=cHJhdmVlbi5jaGFraW5hbGFAcGxhbmV0c29mdC5jb218NDYxNTYyOHwtMjAwNDE3OTQwNg==
> .
--
View this message in context:
http://servicemix.396122.n5.nabble.com/faultstring-org-xml-sax-SAXException-SimpleDeserializer-encountered-a-child-element-tp4615628p4619362.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