I enabled the logging and pasted the SOAP request and response messages below.
One thing I did not understand that wsdl2java tool generates corticon.CorticonRequestType and corticon.CorticonResponseType classes but when create client Object by passing I see corticon.CorticonRequest and corticon.CorticonResponse classes generated in memory. Why the difference? Is there anything wrong with my WSDL?. But with same WSDL I am able to get the proper response using soapUI. Thanks Feb 22, 2012 11:17:29 AM org.apache.cxf.jaxb.JAXBUtils logGeneratedClassNames *INFO: Created classes: corticon.CorticonRequest, corticon.CorticonResponse, corticon.MessageType, corticon.MessagesType, corticon.ObjectFactory, corticon.WorkDocumentsType* Feb 22, 2012 11:17:31 AM org.apache.cxf.interceptor.AbstractLoggingInterceptor log INFO: Outbound Message --------------------------- ID: 1 Address: http://172.21.38.32:8082/axis/services/Corticon Encoding: UTF-8 Content-Type: text/xml Headers: {Accept=[*/*], SOAPAction=["urn:Corticon"]} Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><CorticonRequest xmlns="urn:Corticon" decisionServiceName="Premium" usage="SAVVION"><WorkDocuments><Dataslots><Age>42</Age><Name>Rajiv</Name></Dataslots></WorkDocuments></CorticonRequest></soap:Body></soap:Envelope> -------------------------------------- Feb 22, 2012 11:17:35 AM org.apache.cxf.interceptor.AbstractLoggingInterceptor log INFO: Inbound Message ---------------------------- ID: 1 Response-Code: 200 Encoding: UTF-8 Content-Type: text/xml;charset=utf-8 Headers: {content-type=[text/xml;charset=utf-8], Date=[Wed, 22 Feb 2012 05:47:35 GMT], Server=[Apache-Coyote/1.1], transfer-encoding=[chunked]} Payload: <?xml version="1.0" encoding="UTF-8"?><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><ns1:CorticonResponse decisionServiceName="Premium" usage="SAVVION" xmlns="urn:Corticon" xmlns:ns1="urn:Corticon"><ns1:WorkDocuments xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ns1:Dataslots id="Dataslots_id_521030075"><Age>42</Age><Name>Rajiv</Name><ns1:Premium>15000.000000</ns1:Premium></ns1:Dataslots></ns1:WorkDocuments><ns1:Messages version="0.0"><ns1:Message><ns1:severity>Warning</ns1:severity><ns1:text>Moderage applicant Moderate Risk</ns1:text><ns1:entityReference href="#Dataslots_id_521030075"/></ns1:Message></ns1:Messages></ns1:CorticonResponse></soapenv:Body></soapenv:Envelope> -- View this message in context: http://cxf.547215.n5.nabble.com/Unmarshalling-exception-from-CXF-respponse-tp5502040p5504217.html Sent from the cxf-user mailing list archive at Nabble.com.