Re: Loading data into pre-existing objects

2008-02-22 Thread Daniel Kulp

Well, I guess the question I have is "are the objects at least JAXB 
compatible?"

If the answer is yes, then you could do something as easy as:

ctx = JAXBContext.newInstance(Building.class, OtherObject.class, )
Object = ctx.createUnmarshaller().unmarshal(xmlSource);

or similar.

Dan



On Thursday 21 February 2008, Daniel Lipofsky wrote:
> I am trying to convert our webservices from WebMethods Glue to
> CXF and I am looking for some advice and good examples.
>
> The main thing we do is upload and download a list of
> objects, persisted to the database via Hibernate or EJBs.
> Our SOAP XML files look something like this
>
> 
>   
>   Test1
>   123 Main St
>   No Where
>   CA
>   
>   value
>   
>   
>   
>   Test2
>   456 Main St
>   
> 
>
> and then we have a BuildingDTO which holds the data with a
> BuildingServiceEJB and BuildingEJB (and similar for about
> 40 other objects, all which can be in DataList).
>
> I would like to use the existing data objects to get
> the data rather than creating new ones with WSDLToJava.
>
> Any suggestions on how to best to this?
>
> Thanks,
> Dan



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Loading data into pre-existing objects

2008-02-21 Thread Daniel Lipofsky
I am trying to convert our webservices from WebMethods Glue to
CXF and I am looking for some advice and good examples.

The main thing we do is upload and download a list of
objects, persisted to the database via Hibernate or EJBs.
Our SOAP XML files look something like this



Test1
123 Main St
No Where
CA

value



Test2
456 Main St



and then we have a BuildingDTO which holds the data with a
BuildingServiceEJB and BuildingEJB (and similar for about
40 other objects, all which can be in DataList).

I would like to use the existing data objects to get
the data rather than creating new ones with WSDLToJava.

Any suggestions on how to best to this?

Thanks,
Dan