Hi , I am working with cxf bc provider to access outside webservice and my usecase flow is like below.
HTTP Client ===> servicemix-http ---> servicemix-cxf-bc ---> Outside webservice. servicemix-http-su: ---------------- <beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:context="http://www.springframework.org/schema/context" xmlns:picf="http://planetsoft.com/picf2" xmlns:tpp11="caseimport" <http:consumer service="picf:httpImportTransmit" endpoint="endpoint" locationURI="http://0.0.0.0:8192/httpCaseImportTransmit/" targetService="tpp11:CaseImportService" targetOperation="tpp11:importCase" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" /> servicemix-cxf-bc ---------------- <beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:context="http://www.springframework.org/schema/context" xmlns:picf="http://planetsoft.com/picf2" xmlns:tns="http://order.demo/" xmlns:tpp11="caseimport" > <cxfbc:provider wsdl="classpath:caseimport.wsdl" locationURI="http://localhost:7001/tpp-web/services/CaseImport" service="tpp11:CaseImportService" endpoint="CaseImport" useJBIWrapper="false" useSOAPEnvelope="false" /> Websservice have 2 operations and those are below. 1 .importCase 2.importCases Request XML Posted from HTTP Client: ---------------------------------------- <ns4:requestXML xmlns="http://caseimport.webservices.systeminterfaces.tpp.com" xmlns:ns4="caseimport"> request xml </ns4:requestXML> Received below error from server. soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <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> </soapenv:Body> </soapenv:Envelope> I have used same wsdl with standalone cxf client and it worked fine. Is there any problem with request xml syntax? Here attached wsdl file for your reference. Regards, Praveen Chakinala http://servicemix.396122.n5.nabble.com/file/n4615628/caseimport.wsdl caseimport.wsdl http://servicemix.396122.n5.nabble.com/file/n4615628/servicemix.log servicemix.log -- View this message in context: http://servicemix.396122.n5.nabble.com/faultstring-org-xml-sax-SAXException-SimpleDeserializer-encountered-a-child-element-tp4615628p4615628.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
