axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <>
Subject Fwd: [Axis2] Two different builders
Date Fri, 06 Oct 2006 10:03:25 GMT
Forwarding to the Axis-dev list...

---------- Forwarded message ----------
From: Syam Prasad <>
Date: Oct 6, 2006 1:11 AM
Subject: RE: [Axis2] Two different builders
To: Thilina Gunarathne <>


Thanks for your reply.

What I mean MTOMStAXSOAPModelBuilder builds soap message incorrectly

I have soap message built in the following way.

    Attachment text

Note: child element has mixed text i.e. plain text and element text.
I make attachment text from simple string and make it as MTOM attachment.

When I receive this message on the server side in the service class, this
message is being transformed in to

  <child>Attachment text</child>

I think what you said is right. The MTOMStAXSOAPModelBuilder builder
Is looking at <xop:Include/> and replacing with OMText's and also appending
the end tag that is causing me the problem.

I am getting my attachment text correctly. But when I ask child for
grandchild1 and grandchild2 it is throwing exception because now the
grandchild1 and grandchild2 are sub elements of parent.

By the way the other builder i.e. MTOMStAXSOAPModelBuilder is giving me the
soap message as I expected.

Any suggestions/recommendation are greatly appreciated.


-----Original Message-----
From: Thilina Gunarathne []
Sent: Thursday, October 05, 2006 11:57 AM
Subject: Re: [Axis2] Two different builders

see my comments inline..

> "org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder"
> and in another
This is to handle non-mtom-optimised messages
> ""
This is to handle MTOM optimised messages... This builder identifies
the XOP:Include elements and create OMText's in the place of

Axis2 selects the appropriate builder by looking at the
message...(specifically, the content type header of the message)..

> The service with StAXSOAPModelBuilder does build my soap message correctly
> and the service with MTOMStAXSOAPModelBuilder does not build my soap
> correctly.
What do you mean by this...  ?? Please elaborate more..

> Is there a way to debug axis2?


> Thanks in advance for your help.
> Regards,
> Syam



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

View raw message