datetime - Getting error :- org.apache.cxf.binding.soap.SoapFault: Error in deserializing body of request message for operation -


i working on soap webservices. have requirement set xmlgregoriancalendar object should have date (no time nor offset). written code is:

protected xmlgregoriancalendar fromcalculation(datetime datetime) {     xmlgregoriancalendar xmlcalendar = null;     if (datetime != null) {         calendar calendar = gregoriancalendar.getinstance( datetime.getzone().totimezone() );         calendar.settime( datetime.todate() );         try {             xmlcalendar = datatypefactory.newinstance().newxmlgregoriancalendar( (gregoriancalendar)calendar );                     xmlcalendar.settime(datatypeconstants.field_undefined, datatypeconstants.field_undefined, datatypeconstants.field_undefined);         } catch( datatypeconfigurationexception ex ) {             throw new runtimeexception( ex.getcause() );         }     }     return xmlcalendar; } 

i'm calling method this:

hoptransfermodel.sethop( fromcalculation( new datetime( producthop.getfirstyear().getyear(), 1, 1, 1, 0, 0, 0 ))); 

datatype in wsdl sethop element datetime.

but when try this, getting error:

caused by: org.apache.cxf.binding.soap.soapfault: error in deserializing body of request message operation 'xxxxxxxxx'.     @ org.apache.cxf.binding.soap.interceptor.soap11faultininterceptor.unmarshalfault(soap11faultininterceptor.java:84)     @ org.apache.cxf.binding.soap.interceptor.soap11faultininterceptor.handlemessage(soap11faultininterceptor.java:51)     @ org.apache.cxf.binding.soap.interceptor.soap11faultininterceptor.handlemessage(soap11faultininterceptor.java:40)     @ org.apache.cxf.phase.phaseinterceptorchain.dointercept(phaseinterceptorchain.java:272)     @ org.apache.cxf.interceptor.abstractfaultchaininitiatorobserver.onmessage(abstractfaultchaininitiatorobserver.java:113)     @ org.apache.cxf.binding.soap.interceptor.checkfaultinterceptor.handlemessage(checkfaultinterceptor.java:69)     @ org.apache.cxf.binding.soap.interceptor.checkfaultinterceptor.handlemessage(checkfaultinterceptor.java:34)     @ org.apache.cxf.phase.phaseinterceptorchain.dointercept(phaseinterceptorchain.java:272)     @ org.apache.cxf.endpoint.clientimpl.onmessage(clientimpl.java:849)     @ org.apache.cxf.transport.http.httpconduit$wrappedoutputstream.handleresponseinternal(httpconduit.java:1627)     @ org.apache.cxf.transport.http.httpconduit$wrappedoutputstream.handleresponse(httpconduit.java:1515)     @ org.apache.cxf.transport.http.httpconduit$wrappedoutputstream.close(httpconduit.java:1318)     @ org.apache.cxf.io.cacheandwriteoutputstream.postclose(cacheandwriteoutputstream.java:56)     @ org.apache.cxf.io.cachedoutputstream.close(cachedoutputstream.java:223)     @ org.apache.cxf.transport.abstractconduit.close(abstractconduit.java:56)     @ org.apache.cxf.transport.http.httpconduit.close(httpconduit.java:633)     @ org.apache.cxf.interceptor.messagesenderinterceptor$messagesenderendinginterceptor.handlemessage(messagesenderinterceptor.java:62)     @ org.apache.cxf.phase.phaseinterceptorchain.dointercept(phaseinterceptorchain.java:272)     @ org.apache.cxf.endpoint.clientimpl.doinvoke(clientimpl.java:572)     @ org.apache.cxf.endpoint.clientimpl.invoke(clientimpl.java:481)     @ org.apache.cxf.endpoint.clientimpl.invoke(clientimpl.java:382)     @ org.apache.cxf.endpoint.clientimpl.invoke(clientimpl.java:335)     @ org.apache.cxf.frontend.clientproxy.invokesync(clientproxy.java:96)     @ org.apache.cxf.jaxws.jaxwsclientproxy.invoke(jaxwsclientproxy.java:136)     ... 74 more 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -