Hello Chathura,

Thanks for the response! However, I wasn't clear enough. Let me try again.

I am doing some work for a company that models all of their data in XSD. They use XmlBeans to create Java objects from their xml schema.

On the server (tomcat 5, axis2-0.9) we want to create a SOAP interface that marshalls the XmlBeans objects between the client/server.

With Axis 1.[1,2] there was no support for XmlBeans objects and you had to define your server SOAP interfaces like this:

// p is a XmlBean.toString().getBytes()
public void test(byte[] p);

But this loses type-safety and the generated WSDL is completely missing the XSD used to generate the xmlBeans in the first place. We can deal with this internally (because we have the XSD) but this is a show stopper for making interfaces public because the public interfaces must contain the XSD (within the WSDL) or the client won't know how to talk to the server properly or validate its own request.

We want to be able to define server interfaces using Axis2 that accept xmlBeans as parameters like this:

// request is an XmlBean
public void test(RequestDocument request);

Axis2 would then generate the WSDL to correctly contain the XSD.

Since Axis2 is using XmlBeans I was hoping the XmlBean [de]serializers were already present and this would just work.

IMHO doc/lit SOAP with POJOs modelled from XSD is the best way to develop web services. I think the XmlBeans XSD->POJO mapping is the best available, modelling data in XSD is very natural, and XSD validation is a boon.

I've been confused as to why the Axis developers haven't enabled XmlBeans support. The BEA folks provide exactly this and I thought they just made some enhancements to Axis? I feel like I'm misunderstanding something fundamental wrt xmlBeans support and would love to know what it is.

Thanks in andvance for any help or enlightening comments.

Cheers.

--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb

Reply via email to