Hi,

How do you customize the JAXB when using the simple front end.? The article
talks about how to do it  with  the wsdl2ava tool, if I am not mistaken.

Has some one tried this with the simple front end?

Thanks,
Jacob


On 8/27/07, James Mao <[EMAIL PROTECTED]> wrote:
>
> You can customize the jaxb to use the java.util.Calendar or
> java.util.Date in case of jaxb databinding.
> Here's the documentation:
>
> http://cwiki.apache.org/confluence/display/CXF20DOC/WSDL+to+Java
> (grep: *Q: How to map xsd:dateTime to java.util.Date?*)
>
> Cheers,
> James
>
> > Thanks Dan! I have got it work.
> >
> > I notice one interesting thing though. If I send a Date from the client,
> it
> > is getting converted to an
> > XMLGregorianCalendarImpl at the server side. I see that there is an
> existing
> > JIRA issue open on this.
> > (https://issues.apache.org/jira/browse/CXF-369)
> >
> > I changed the data binding to use Aegis data binding and now see
> > java.util.GregorianCalendar.
> >
> > Is there a way I can customize this to get java.util.Date at the server?
> The
> > Jira issue says you can customise jaxb binding using an xml snippet. It
> is
> > not clear, where this xml snippet will fits in.
> >
> > Thanks,
> > J
> >
> >
> >
> >
> >
> >
> >
> >
> > On 8/27/07, Dan Diephouse <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Jacob,
> >>
> >> You may have to turn on xsi:type writing for aegis. If you're using the
> >> API,
> >> it'll probably look something like this:
> >>
> >> ServerFactoryBean sf ...
> >> Map<String, Object> props = new HashMap<String, Object>();
> >> props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, "true");
> >> sf.setProperties(props);
> >>
> >> Or in XML form:
> >>
> >> <jaxws:endpoint ....>
> >>   <jaxws:properties>
> >>     <entry key="writeXsiType">true</entry>
> >>   </jaxw:properties>
> >> </jaxws:endpoint>
> >>
> >> Hope that helps some. Cheers,
> >> - Dan
> >>
> >>
> >>
> >> On 8/27/07, Jacob Marcus <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi,
> >>>
> >>> Is there a way to support xs:anyType using the Simple frond end? I
> tried
> >>>
> >> a
> >>
> >>> method like
> >>> String push(Object obj) in my interface. The wsdl is successfully
> >>> generated.
> >>> However, when I try to call the method from my client, I get the
> >>>
> >> following
> >>
> >>> error. Any pointers would be great.
> >>>
> >>> org.apache.cxf.interceptor.Fault: object is not an instance of
> declaring
> >>> class
> >>>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
> >>> AbstractInvoker.java:92)
> >>>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
> >>> AbstractInvoker.java:62)
> >>>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(
> >>> ServiceInvokerInterceptor.java:56)
> >>>         at org.apache.cxf.workqueue.SynchronousExecutor.execute(
> >>> SynchronousExecutor.java:37)
> >>>         at
> >>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(
> >>> ServiceInvokerInterceptor.java:92)
> >>>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> >>> PhaseInterceptorChain.java:207)
> >>>         at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> >>> ChainInitiationObserver.java:73)
> >>>         at
> org.apache.cxf.transport.servlet.ServletDestination.doMessage
> >>>
> >> (
> >>
> >>> ServletDestination.java:78)
> >>>         at
> >>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(
> >>> ServletController.java:231)
> >>>
> >>>
> >>> Thanks,
> >>> Jacob
> >>>
> >>>
> >>
> >> --
> >> Dan Diephouse
> >> Envoi Solutions
> >> http://envoisolutions.com | http://netzooid.com/blog
> >>
> >>
> >
> >
>

Reply via email to