Hi,
OK Thanks. I'll look at which JAXB 2.0 options I have.
and no, it only looks like I need JAXB, because my only need is to marshall :)
Regards,
Sami Dalouche
Selon James Strachan <james.strachan@gmail...>:
> On 6 Sep 2005, at 09:19, Sami Dalouche wrote:
> > Hi,
> >
> > I'm trying to work with JBI (java Business Integration) services,
> > that are
> > basically WSDL-described services.
> >
> > In order to invoque a service, I need to generate a single part
> > WSDL1.1 message,
> > which would somewhat look like, for example :
> > <?xml version="1.0" encoding="UTF-8"?>
> > <AllOrders xmlns="uri:com.bptest.types">
> > <Order>
> > <OrderId>$sequence$</OrderId>
> > <OrderType>BookOrder</OrderType>
> > <OrderDetails>
> > <BookOrder>
> > <id>$sequence$</id>
> > ....
> >
> > I would likely work with POJOs, but any other easy method is welcome.
> >
> > Is it possible, with ActiveSOAP, to generate such XML format by
> > tellign it to
> > marshall my AllOrders class, for example... ?
>
> Sure. The decision to make is what POJO <-> XML marshalling tool to
> use. Currently ActiveSOAP supports JAXB 2.0, XStream and XMLBeans as
> examples of XML <-> POJO marshalling tools.
>
> If you can use Java 5 then JAXB 2.0 comes highly recommended - its
> the best Java <-> XML/XSD marshalling tool around by some margin. BTW
> for simplicity when working with web services from a POJO nature the
> JAX-WS stack is pretty darn good (an implementation of JAX-WS & JSR
> 181 using JAXB 2.0).
>
>
> > I don't need to invoque the service, just get a string with this
> > content, my JBI
> > container will take care of the rest.
>
> Ah OK, then you might just wanna use JAXB 2.0 directly in a JBI
> component then? Sounds like you don't even need a SOAP stack for that
> part?
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.