On Tuesday, February 21, 2012 9:55:11 PM srinivas thallapalli wrote: > 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?
That is likely the major cause of pretty much the entire issue. I'm not sure how you are getting that. If I run with the latest 2.4.7-SNAPSHOT, I get: $ java -cp ~/working/cxf-2.4.x/distribution/target/apache-cxf-2.4.7- SNAPSHOT/apache-cxf-2.4.7-SNAPSHOT/lib/cxf-manifest.jar:. sample.DummyClient Feb 22, 2012 9:40:02 AM org.apache.cxf.jaxb.JAXBUtils logGeneratedClassNames INFO: Created classes: corticon.CorticonRequestType, corticon.CorticonResponseType, corticon.MessageType, corticon.MessagesType, corticon.ObjectFactory, corticon.WorkDocumentsType which matches the names of what wsdl2java generates. Thus, I'm really not sure what's happening for you. Can you try a newer version of CXF? Also double check the version of JAXB you are using. Dan > > 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><CorticonR > equest xmlns="urn:Corticon" decisionServiceName="Premium" > usage="SAVVION"><WorkDocuments><Dataslots><Age>42</Age><Name& > gt;Rajiv</Name></Dataslots></WorkDocuments></CorticonRequest></soap:Bo > dy></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:Cor > ticonResponse 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</N > ame><ns1:Premium>15000.000000</ns1:Premium></ns1:Dataslots></ns1:WorkDocu > ments><ns1:Messages > version="0.0"><ns1:Message><ns1:severity>Warning</ns1:severity><ns1:text>Mo > derage applicant Moderate Risk</ns1:text><ns1:entityReference > href="#Dataslots_id_521030075"/></ns1:Message></ns1:Messages></ns1:CorticonR > esponse></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. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
