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