axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <>
Subject Re: AXIS style
Date Tue, 03 Apr 2007 21:00:33 GMT
I'm not sure where you got the idea that document style will map the
message to DOM-- unless your coding at the raw XML level -- but then
you wouldn't be using a stub.

Document style will map the message to a Java object. If you define
the message in the WSDL as an opaque xs:string, then Axis will map it
to a String. (Be careful with this though -- the encoding/decoding
process is not especially robust.) If the WSDL describes the schema of
the message, then the stub should map the message to a corresponding
object (typically a bean).

The only reason why Axis would map it to DOM is if you configure Axis
to use the "Message" style. (That would be defined in your

If you're using Axis2, then it maps the message to AXIOM (the Axis2
StAX-based object model) rather than DOM, although you can also use a
databinding framework to map it from AXIOM to a Java object.

Perhaps you can show us a little more of what you're doing? Keep in
mind that the normal use case for both Axis and Axis2 is to map the
XML to a Java object model.


On 4/3/07, Paul Mahoney <> wrote:
> Sorry, I was unclear. I have a String containing my xml. With the document
> style I need to parse it into a DOM node tree and pass it to the stub. The
> response is also a DOM node tree I'll need to convert to a String. I want
> AXIS to step back, and just take my XML String and return an String
> containing XML. But wsdl2jave is putting in place layers of code to consume
> and generate DOM node object trees. As far as I can see, wsdl2java is doing
> this because the WSDL file say style="document". The service may want to use
> DOM node trees, but why should I?
> >-----Original Message-----
> >From: Philipp Leitner []
> >Sent: 03 April 2007 20:36
> >To:
> >Subject: Re: AXIS style
> >
> >what do you mean with "turn my xml into DOM" ? The Document
> >Object Model
> >(if this the meaning of DOM that you are referring to, since
> >there are a
> >few different ones) is just one possibility to represent XML,
> >and afaik
> >not one used by Axis. I guess what you mean with "DOM" is
> >actually Axiom.
> >
> >If that's what you meant ... no, I don't think there's any way to make
> >Axis2 not use Axiom.
> >
> >/philipp
> >
> >Paul Mahoney schrieb:
> >> I have used wsdl2java to generate stubs for a web service
> >that specifies
> >> document style. Consequently the stubs want me to turn my
> >xml into DOM and I
> >> need to turn the returned DOM back to XML :-(
> >>
> >> Is there anyway I can tell wsdl2javs to use message style as
> >I want to work
> >> with xml not DOM? Is does seem strange that the web service
> >appears to be
> >> dictating the client use DOM.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> For additional commands, e-mail:
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> >For additional commands, e-mail:
> >
> >
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message