You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Angel Todorov <at...@gmail.com> on 2007/01/14 17:56:57 UTC
MTOM question
Hi all,
I am doing a test of MTOM - sending a binary file and then saving it
somewhere on the server. I follow the MTOM guide for Axis2. I am using
the SOAP Monitor applet in order to investigate the SOAP requests and
responses, and in both cases where MTOM is enabled and disabled on the
client side, the SOAP request 's contents is the same, more
specifically :
<ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
ns0:contentType="application/octet-stream"> (binary sting here )
</ns2:binaryData>
the contents of the binary string is also the same. Can anyone provide
some clarification ? Thanks
Regards,
Angel
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MTOM question
Posted by robert lazarski <ro...@gmail.com>.
The soap monitor just converts the soap envelope from the message
context to a string, after it knows which flow is used. Thilina, is
checking ctx isDoingMTOM() or isDoingSwA() available on inflow and
outflow, and would be enough info needed to know its mtom / swa and
needs a writer ?
Robert
On 1/24/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> Hi Angel,
> > Just to clarify - is that a problem with the soap monitor itself? I.e
> > does it automatically convert the attached binary data into inlined
> > base64 strings? Or does some handler do that ?
> I think it's the soap monitor.. It might be just serialising the AXIOM
> without giving an MTOM writer..
> >
> > For instance, if am at the message receiver implementation, and I have
> > a MessageContext instance, would attachments() return anything, or
> > would the attachment be inlined as an element of the SOAP body?
> You will get whatever the attachments which came as MIME parts..
>
> ~Thilina
> > Thanks
> > very much
> >
> > Regards,
> > Angel
> >
> > On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> > > Hi Angel,
> > > If possible please file a JIRA[1] for this behaviour of SOAP Monitor..
> > >
> > > Cheers,
> > > ~Thilina
> > >
> > > [1] http://issues.apache.org/jira/browse/AXIS2
> > >
> > > On 1/15/07, Angel Todorov <at...@gmail.com> wrote:
> > > > Hi Thilina,
> > > >
> > > > yes with tcpmon everything looks fine by looking at the HTTP requests
> > > > (binary data + xop include reference) , it's actually logical to have
> > > > the SOAP request constructed before SOAPMonitor is invoked.
> > > >
> > > > Regards,
> > > > Angel
> > > >
> > > > On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> > > > > Hi Angel,
> > > > > Hope you have a OMText with optimised set to "true" in the above case.
> > > > > Are you using any databinding mechanisms..
> > > > >
> > > > > I'm not sure whether it is an issue with SOAPMonitor... Can you please
> > > > > try sniffing the message with tcpmon[1].
> > > > >
> > > > > Thanks,
> > > > > Thilina
> > > > >
> > > > > [1] http://ws.apache.org/commons/tcpmon/
> > > > >
> > > > > On 1/14/07, Angel Todorov <at...@gmail.com> wrote:
> > > > > > Hi all,
> > > > > >
> > > > > > I am doing a test of MTOM - sending a binary file and then saving it
> > > > > > somewhere on the server. I follow the MTOM guide for Axis2. I am using
> > > > > > the SOAP Monitor applet in order to investigate the SOAP requests and
> > > > > > responses, and in both cases where MTOM is enabled and disabled on the
> > > > > > client side, the SOAP request 's contents is the same, more
> > > > > > specifically :
> > > > > >
> > > > > > <ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
> > > > > > ns0:contentType="application/octet-stream"> (binary sting here )
> > > > > > </ns2:binaryData>
> > > > > >
> > > > > > the contents of the binary string is also the same. Can anyone provide
> > > > > > some clarification ? Thanks
> > > > > >
> > > > > > Regards,
> > > > > > Angel
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thilina Gunarathne
> > > > > WSO2, Inc.; http://www.wso2.com/
> > > > > Home page: http://webservices.apache.org/~thilina/
> > > > > Blog: http://thilinag.blogspot.com/
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Thilina Gunarathne
> > > WSO2, Inc.; http://www.wso2.com/
> > > Home page: http://webservices.apache.org/~thilina/
> > > Blog: http://thilinag.blogspot.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MTOM question
Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi Angel,
> Just to clarify - is that a problem with the soap monitor itself? I.e
> does it automatically convert the attached binary data into inlined
> base64 strings? Or does some handler do that ?
I think it's the soap monitor.. It might be just serialising the AXIOM
without giving an MTOM writer..
>
> For instance, if am at the message receiver implementation, and I have
> a MessageContext instance, would attachments() return anything, or
> would the attachment be inlined as an element of the SOAP body?
You will get whatever the attachments which came as MIME parts..
~Thilina
> Thanks
> very much
>
> Regards,
> Angel
>
> On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> > Hi Angel,
> > If possible please file a JIRA[1] for this behaviour of SOAP Monitor..
> >
> > Cheers,
> > ~Thilina
> >
> > [1] http://issues.apache.org/jira/browse/AXIS2
> >
> > On 1/15/07, Angel Todorov <at...@gmail.com> wrote:
> > > Hi Thilina,
> > >
> > > yes with tcpmon everything looks fine by looking at the HTTP requests
> > > (binary data + xop include reference) , it's actually logical to have
> > > the SOAP request constructed before SOAPMonitor is invoked.
> > >
> > > Regards,
> > > Angel
> > >
> > > On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> > > > Hi Angel,
> > > > Hope you have a OMText with optimised set to "true" in the above case.
> > > > Are you using any databinding mechanisms..
> > > >
> > > > I'm not sure whether it is an issue with SOAPMonitor... Can you please
> > > > try sniffing the message with tcpmon[1].
> > > >
> > > > Thanks,
> > > > Thilina
> > > >
> > > > [1] http://ws.apache.org/commons/tcpmon/
> > > >
> > > > On 1/14/07, Angel Todorov <at...@gmail.com> wrote:
> > > > > Hi all,
> > > > >
> > > > > I am doing a test of MTOM - sending a binary file and then saving it
> > > > > somewhere on the server. I follow the MTOM guide for Axis2. I am using
> > > > > the SOAP Monitor applet in order to investigate the SOAP requests and
> > > > > responses, and in both cases where MTOM is enabled and disabled on the
> > > > > client side, the SOAP request 's contents is the same, more
> > > > > specifically :
> > > > >
> > > > > <ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
> > > > > ns0:contentType="application/octet-stream"> (binary sting here )
> > > > > </ns2:binaryData>
> > > > >
> > > > > the contents of the binary string is also the same. Can anyone provide
> > > > > some clarification ? Thanks
> > > > >
> > > > > Regards,
> > > > > Angel
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Thilina Gunarathne
> > > > WSO2, Inc.; http://www.wso2.com/
> > > > Home page: http://webservices.apache.org/~thilina/
> > > > Blog: http://thilinag.blogspot.com/
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Thilina Gunarathne
> > WSO2, Inc.; http://www.wso2.com/
> > Home page: http://webservices.apache.org/~thilina/
> > Blog: http://thilinag.blogspot.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MTOM question
Posted by Angel Todorov <at...@gmail.com>.
Hi Thilina,
Just to clarify - is that a problem with the soap monitor itself? I.e
does it automatically convert the attached binary data into inlined
base64 strings? Or does some handler do that ?
For instance, if am at the message receiver implementation, and I have
a MessageContext instance, would attachments() return anything, or
would the attachment be inlined as an element of the SOAP body? Thanks
very much
Regards,
Angel
On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> Hi Angel,
> If possible please file a JIRA[1] for this behaviour of SOAP Monitor..
>
> Cheers,
> ~Thilina
>
> [1] http://issues.apache.org/jira/browse/AXIS2
>
> On 1/15/07, Angel Todorov <at...@gmail.com> wrote:
> > Hi Thilina,
> >
> > yes with tcpmon everything looks fine by looking at the HTTP requests
> > (binary data + xop include reference) , it's actually logical to have
> > the SOAP request constructed before SOAPMonitor is invoked.
> >
> > Regards,
> > Angel
> >
> > On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> > > Hi Angel,
> > > Hope you have a OMText with optimised set to "true" in the above case.
> > > Are you using any databinding mechanisms..
> > >
> > > I'm not sure whether it is an issue with SOAPMonitor... Can you please
> > > try sniffing the message with tcpmon[1].
> > >
> > > Thanks,
> > > Thilina
> > >
> > > [1] http://ws.apache.org/commons/tcpmon/
> > >
> > > On 1/14/07, Angel Todorov <at...@gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > I am doing a test of MTOM - sending a binary file and then saving it
> > > > somewhere on the server. I follow the MTOM guide for Axis2. I am using
> > > > the SOAP Monitor applet in order to investigate the SOAP requests and
> > > > responses, and in both cases where MTOM is enabled and disabled on the
> > > > client side, the SOAP request 's contents is the same, more
> > > > specifically :
> > > >
> > > > <ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
> > > > ns0:contentType="application/octet-stream"> (binary sting here )
> > > > </ns2:binaryData>
> > > >
> > > > the contents of the binary string is also the same. Can anyone provide
> > > > some clarification ? Thanks
> > > >
> > > > Regards,
> > > > Angel
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Thilina Gunarathne
> > > WSO2, Inc.; http://www.wso2.com/
> > > Home page: http://webservices.apache.org/~thilina/
> > > Blog: http://thilinag.blogspot.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MTOM question
Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi Angel,
If possible please file a JIRA[1] for this behaviour of SOAP Monitor..
Cheers,
~Thilina
[1] http://issues.apache.org/jira/browse/AXIS2
On 1/15/07, Angel Todorov <at...@gmail.com> wrote:
> Hi Thilina,
>
> yes with tcpmon everything looks fine by looking at the HTTP requests
> (binary data + xop include reference) , it's actually logical to have
> the SOAP request constructed before SOAPMonitor is invoked.
>
> Regards,
> Angel
>
> On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> > Hi Angel,
> > Hope you have a OMText with optimised set to "true" in the above case.
> > Are you using any databinding mechanisms..
> >
> > I'm not sure whether it is an issue with SOAPMonitor... Can you please
> > try sniffing the message with tcpmon[1].
> >
> > Thanks,
> > Thilina
> >
> > [1] http://ws.apache.org/commons/tcpmon/
> >
> > On 1/14/07, Angel Todorov <at...@gmail.com> wrote:
> > > Hi all,
> > >
> > > I am doing a test of MTOM - sending a binary file and then saving it
> > > somewhere on the server. I follow the MTOM guide for Axis2. I am using
> > > the SOAP Monitor applet in order to investigate the SOAP requests and
> > > responses, and in both cases where MTOM is enabled and disabled on the
> > > client side, the SOAP request 's contents is the same, more
> > > specifically :
> > >
> > > <ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
> > > ns0:contentType="application/octet-stream"> (binary sting here )
> > > </ns2:binaryData>
> > >
> > > the contents of the binary string is also the same. Can anyone provide
> > > some clarification ? Thanks
> > >
> > > Regards,
> > > Angel
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Thilina Gunarathne
> > WSO2, Inc.; http://www.wso2.com/
> > Home page: http://webservices.apache.org/~thilina/
> > Blog: http://thilinag.blogspot.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MTOM question
Posted by Angel Todorov <at...@gmail.com>.
Hi Thilina,
yes with tcpmon everything looks fine by looking at the HTTP requests
(binary data + xop include reference) , it's actually logical to have
the SOAP request constructed before SOAPMonitor is invoked.
Regards,
Angel
On 1/15/07, Thilina Gunarathne <cs...@gmail.com> wrote:
> Hi Angel,
> Hope you have a OMText with optimised set to "true" in the above case.
> Are you using any databinding mechanisms..
>
> I'm not sure whether it is an issue with SOAPMonitor... Can you please
> try sniffing the message with tcpmon[1].
>
> Thanks,
> Thilina
>
> [1] http://ws.apache.org/commons/tcpmon/
>
> On 1/14/07, Angel Todorov <at...@gmail.com> wrote:
> > Hi all,
> >
> > I am doing a test of MTOM - sending a binary file and then saving it
> > somewhere on the server. I follow the MTOM guide for Axis2. I am using
> > the SOAP Monitor applet in order to investigate the SOAP requests and
> > responses, and in both cases where MTOM is enabled and disabled on the
> > client side, the SOAP request 's contents is the same, more
> > specifically :
> >
> > <ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
> > ns0:contentType="application/octet-stream"> (binary sting here )
> > </ns2:binaryData>
> >
> > the contents of the binary string is also the same. Can anyone provide
> > some clarification ? Thanks
> >
> > Regards,
> > Angel
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MTOM question
Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi Angel,
Hope you have a OMText with optimised set to "true" in the above case.
Are you using any databinding mechanisms..
I'm not sure whether it is an issue with SOAPMonitor... Can you please
try sniffing the message with tcpmon[1].
Thanks,
Thilina
[1] http://ws.apache.org/commons/tcpmon/
On 1/14/07, Angel Todorov <at...@gmail.com> wrote:
> Hi all,
>
> I am doing a test of MTOM - sending a binary file and then saving it
> somewhere on the server. I follow the MTOM guide for Axis2. I am using
> the SOAP Monitor applet in order to investigate the SOAP requests and
> responses, and in both cases where MTOM is enabled and disabled on the
> client side, the SOAP request 's contents is the same, more
> specifically :
>
> <ns2:binaryData xmlns:ns0="http://www.w3c.org/2005/05/xmlmime"
> ns0:contentType="application/octet-stream"> (binary sting here )
> </ns2:binaryData>
>
> the contents of the binary string is also the same. Can anyone provide
> some clarification ? Thanks
>
> Regards,
> Angel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org