You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Paul Fremantle <pz...@gmail.com> on 2007/01/08 16:55:26 UTC
payload
I've been considering the idea of adding a get/setPayload into the
Synapse MessageContext interface. Basically this would be a shortcut
for getting the contents of the body.
This already exists in the scripting mediators.
Paul
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: payload
Posted by Paul Fremantle <pz...@gmail.com>.
Sanjiva
I'm not sure what you mean?
At the moment there is
soapEnvelope.getBody().getFirstElement();
and
soapEnvelope.getBody().setFirstChild();
It might be nice to add
soapEnvelope.getBodyElement();
soapEnvelope.setBodyElement();
However, in Synapse that still requires the user to do
mc.getEnvelope().get/setBodyElement();
I think having a view of the payload directly is cleaner.
Paul
On 1/9/07, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> Why not just introduce something like soapenvelope.get/setBody() in
> Axiom itself? That seems generally useful to me and is consistent with
> having getHeader(). Plus its nice to have it with regards to POX style
> interactions where the SOAPiness is not something to be proud of.
>
> This obviously needs to be discussed in axis-dev if we're going forward
> with it ..
>
> Sanjiva.
>
> On Mon, 2007-01-08 at 18:18 +0000, Paul Fremantle wrote:
> > It is just to make teh API simpler and cleaner. It doesn't enable any
> > new function.
> >
> > Paul
> >
> > On 1/8/07, Asankha C. Perera <as...@wso2.com> wrote:
> > > Paul
> > >
> > > I'm sorry but I didn't understand why you are proposing this? Is it to
> > > implement something or to make the Synapse message context API cleaner?
> > >
> > > asankha
> > >
> > > Paul Fremantle wrote:
> > > > I've been considering the idea of adding a get/setPayload into the
> > > > Synapse MessageContext interface. Basically this would be a shortcut
> > > > for getting the contents of the body.
> > > >
> > > > This already exists in the scripting mediators.
> > > >
> > > > Paul
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> > >
> > >
> >
> >
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> Director; Open Source Initiative; http://www.opensource.org/
> Member; Apache Software Foundation; http://www.apache.org/
> Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: payload
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Why not just introduce something like soapenvelope.get/setBody() in
Axiom itself? That seems generally useful to me and is consistent with
having getHeader(). Plus its nice to have it with regards to POX style
interactions where the SOAPiness is not something to be proud of.
This obviously needs to be discussed in axis-dev if we're going forward
with it ..
Sanjiva.
On Mon, 2007-01-08 at 18:18 +0000, Paul Fremantle wrote:
> It is just to make teh API simpler and cleaner. It doesn't enable any
> new function.
>
> Paul
>
> On 1/8/07, Asankha C. Perera <as...@wso2.com> wrote:
> > Paul
> >
> > I'm sorry but I didn't understand why you are proposing this? Is it to
> > implement something or to make the Synapse message context API cleaner?
> >
> > asankha
> >
> > Paul Fremantle wrote:
> > > I've been considering the idea of adding a get/setPayload into the
> > > Synapse MessageContext interface. Basically this would be a shortcut
> > > for getting the contents of the body.
> > >
> > > This already exists in the scripting mediators.
> > >
> > > Paul
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >
> >
>
>
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: payload
Posted by Paul Fremantle <pz...@gmail.com>.
It is just to make teh API simpler and cleaner. It doesn't enable any
new function.
Paul
On 1/8/07, Asankha C. Perera <as...@wso2.com> wrote:
> Paul
>
> I'm sorry but I didn't understand why you are proposing this? Is it to
> implement something or to make the Synapse message context API cleaner?
>
> asankha
>
> Paul Fremantle wrote:
> > I've been considering the idea of adding a get/setPayload into the
> > Synapse MessageContext interface. Basically this would be a shortcut
> > for getting the contents of the body.
> >
> > This already exists in the scripting mediators.
> >
> > Paul
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org
Re: payload
Posted by "Asankha C. Perera" <as...@wso2.com>.
Paul
I'm sorry but I didn't understand why you are proposing this? Is it to
implement something or to make the Synapse message context API cleaner?
asankha
Paul Fremantle wrote:
> I've been considering the idea of adding a get/setPayload into the
> Synapse MessageContext interface. Basically this would be a shortcut
> for getting the contents of the body.
>
> This already exists in the scripting mediators.
>
> Paul
>
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org