You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Shyam Shukla <sh...@persistent.co.in> on 2006/07/31 08:00:02 UTC

Customization of SOAP Envelop using Axis2 1.0

Hello All,

 

I am just started working with axis2 1.0 with wss4j 1.5 and my task is to
create SOAP request which refers to WS-Addressing
http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
following format in SOAP request:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">

 

Can anyone guide me how can I modify this request?

 

 

Thanks in Advance,
Shyam Shukla



 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

RE: Customization of SOAP Envelop using Axis2 1.0

Posted by Shyam Shukla <sh...@persistent.co.in>.
Thanks David I've obtained this file and will go through it to make desire
changes.

I will again bother you if I am stuck somewhere.

Thanks & Regards,
Shyam Shukla


-----Original Message-----
From: David Illsley [mailto:davidillsley@gmail.com] 
Sent: Monday, July 31, 2006 2:55 PM
To: axis-dev@ws.apache.org
Subject: Re: Customization of SOAP Envelop using Axis2 1.0

The AddressingOutHandler shipped with Axis2 (in the addressing module)
which adds the soap headers can be found at [1].

David

[1]
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing
/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?view=mar
kup

On 31/07/06, Shyam Shukla <sh...@persistent.co.in> wrote:
>
> David you got my point I was just going to reply Eran about this point.
> Actually, in my current project web services which I have to invoke
support
> mentioned WSA namespace in this email
> i.e."http://schemas.xmlsoap.org/ws/2004/03/addressing" only and I am
> required to write a client program to invoke those services.
> So I think I will have to play with axis2 handlers.
> David, can you please provide me the name and/or location of these handler
> file(s) to create only SOAP Request.
>
>
> Best Regards,
> Shyam Shukla
>
> -----Original Message-----
> From: David Illsley [mailto:davidillsley@gmail.com]
> Sent: Monday, July 31, 2006 2:26 PM
> To: axis-dev@ws.apache.org; chinthaka@opensource.lk
> Subject: Re: Customization of SOAP Envelop using Axis2 1.0
>
> Eran, unfortunately Shyam is looking for the 2004/03 namespace which
> the current addressing handlers do not support and if you sets the
> WS_ADDRESSING_VERSION property to
> "http://schemas.xmlsoap.org/ws/2004/03/addressing", the submission
> version is used.
>
> Shyam, if you can move up to a newer version of WS-Addressing that is
> your best option (2004/03 is not widely supported now and won't be
> going forward. There is broad vendor support for 2004/08 and 2005/08).
> If you cannot move to one of these specifications, modifying the axis2
> handlers to support 2004/03 or writing your own handlers are your
> other options.
>
> David
>
> --
> David Illsley - IBM Web Services Development
>
> On 31/07/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> > No wait, you don't need to change the source code to do that.
> >
> > just do the following.
> >
> > options.setProperty(
> > org.apache.axis2.addressing.AddressingConstants.WS_ADDRESSING_VERSION,
> >
org.apache.axis2.addressing.AddressingConstants.Submission.WSA_NAMESPACE);
> >
> > Hope you know how to set the options.
> >
> > (Your next question might be that what are the other params that can be
> > set thru the client api. Do not worry an article on that is coming soon.
> > There is a small delay in getting that published :).)
> >
> > -- Chinthaka
> >
> > Shyam Shukla wrote:
> > > Thanks Chinthaka for your reply.
> > > I've enabled WS-Addressing and have associated in my SOAP Request.
> > > My problem is I want to modify the SOAP Envelop part in the request,
by
> > > default axis2 1.0 is referring to
> > > "xmlns:wsa="http://www.w3.org/2005/08/addressing" namespace as I have
> > > mentioned in my email while I want WS-Addressing namespace should
refer
> to
> > > "http://schemas.xmlsoap.org/ws/2004/03/addressing" URL.
> > > I have gone through all the addressing APIs of axis2 to find out any
way
> to
> > > do it but could not be succeeded.
> > > I guess now I will have to modify the source code which is responsible
> for
> > > generating this part of the SOAP request.
> > > Can you please let me know which file will I be required to modify or
Is
> > > there any API to accomplish this task?
> > >
> > >
> > > Best Regards,
> > > Shyam Shukla
> > >
> > > -----Original Message-----
> > > From: Eran Chinthaka [mailto:chinthaka@opensource.lk]
> > > Sent: Monday, July 31, 2006 12:11 PM
> > > To: axis-dev@ws.apache.org
> > > Subject: Re: Customization of SOAP Envelop using Axis2 1.0
> > >
> > >
> > > What exactly you want to do here? Do you want to send a SOAP request
> > > with WS-Addressing enabled?
> > > If yes, the easiest way is to use the ServiceClient api with
addressing
> > > enabled (refer the user guide for this)
> > >
> > > -- Chinthaka
> > >
> > > Shyam Shukla wrote:
> > >>
> > >> Hello All,
> > >>
> > >>
> > >>
> > >> I am just started working with axis2 1.0 with wss4j 1.5 and my task
is
> > >> to create SOAP request which refers to WS-Addressing
> > >> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
> > >> following format in SOAP request:
> > >>
> > >>
> > >>
> > >> <soapenv:Envelope
> > >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > >> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> > >>
> > >>
> > >>
> > >> Can anyone guide me how can I modify this request?
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Thanks in Advance,
> > >> Shyam Shukla
> > >>
> > >>
> > >>
> > >> DISCLAIMER ========== This e-mail may contain privileged and
> > >> confidential information which is the property of Persistent Systems
> > >> Pvt. Ltd. It is intended only for the use of the individual or entity
> to
> > >> which it is addressed. If you are not the intended recipient, you are
> > >> not authorized to read, retain, copy, print, distribute or use this
> > >> message. If you have received this communication in error, please
> notify
> > >> the sender and delete all copies of this message. Persistent Systems
> > >> Pvt. Ltd. does not accept any liability for virus infected mails.
> > >
> > >
> > >
> > >
> > > DISCLAIMER
> > > ==========
> > > This e-mail may contain privileged and confidential information which
is
> the property of Persistent Systems Pvt. Ltd. It is intended only for the
use
> of the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Pvt. Ltd. does not accept any liability for virus
> infected mails.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-dev-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is
the property of Persistent Systems Pvt. Ltd. It is intended only for the use
of the individual or entity to which it is addressed. If you are not the
intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in
error, please notify the sender and delete all copies of this message.
Persistent Systems Pvt. Ltd. does not accept any liability for virus
infected mails.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
David Illsley - IBM Web Services Development

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Customization of SOAP Envelop using Axis2 1.0

Posted by David Illsley <da...@gmail.com>.
The AddressingOutHandler shipped with Axis2 (in the addressing module)
which adds the soap headers can be found at [1].

David

[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?view=markup

On 31/07/06, Shyam Shukla <sh...@persistent.co.in> wrote:
>
> David you got my point I was just going to reply Eran about this point.
> Actually, in my current project web services which I have to invoke support
> mentioned WSA namespace in this email
> i.e."http://schemas.xmlsoap.org/ws/2004/03/addressing" only and I am
> required to write a client program to invoke those services.
> So I think I will have to play with axis2 handlers.
> David, can you please provide me the name and/or location of these handler
> file(s) to create only SOAP Request.
>
>
> Best Regards,
> Shyam Shukla
>
> -----Original Message-----
> From: David Illsley [mailto:davidillsley@gmail.com]
> Sent: Monday, July 31, 2006 2:26 PM
> To: axis-dev@ws.apache.org; chinthaka@opensource.lk
> Subject: Re: Customization of SOAP Envelop using Axis2 1.0
>
> Eran, unfortunately Shyam is looking for the 2004/03 namespace which
> the current addressing handlers do not support and if you sets the
> WS_ADDRESSING_VERSION property to
> "http://schemas.xmlsoap.org/ws/2004/03/addressing", the submission
> version is used.
>
> Shyam, if you can move up to a newer version of WS-Addressing that is
> your best option (2004/03 is not widely supported now and won't be
> going forward. There is broad vendor support for 2004/08 and 2005/08).
> If you cannot move to one of these specifications, modifying the axis2
> handlers to support 2004/03 or writing your own handlers are your
> other options.
>
> David
>
> --
> David Illsley - IBM Web Services Development
>
> On 31/07/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> > No wait, you don't need to change the source code to do that.
> >
> > just do the following.
> >
> > options.setProperty(
> > org.apache.axis2.addressing.AddressingConstants.WS_ADDRESSING_VERSION,
> > org.apache.axis2.addressing.AddressingConstants.Submission.WSA_NAMESPACE);
> >
> > Hope you know how to set the options.
> >
> > (Your next question might be that what are the other params that can be
> > set thru the client api. Do not worry an article on that is coming soon.
> > There is a small delay in getting that published :).)
> >
> > -- Chinthaka
> >
> > Shyam Shukla wrote:
> > > Thanks Chinthaka for your reply.
> > > I've enabled WS-Addressing and have associated in my SOAP Request.
> > > My problem is I want to modify the SOAP Envelop part in the request, by
> > > default axis2 1.0 is referring to
> > > "xmlns:wsa="http://www.w3.org/2005/08/addressing" namespace as I have
> > > mentioned in my email while I want WS-Addressing namespace should refer
> to
> > > "http://schemas.xmlsoap.org/ws/2004/03/addressing" URL.
> > > I have gone through all the addressing APIs of axis2 to find out any way
> to
> > > do it but could not be succeeded.
> > > I guess now I will have to modify the source code which is responsible
> for
> > > generating this part of the SOAP request.
> > > Can you please let me know which file will I be required to modify or Is
> > > there any API to accomplish this task?
> > >
> > >
> > > Best Regards,
> > > Shyam Shukla
> > >
> > > -----Original Message-----
> > > From: Eran Chinthaka [mailto:chinthaka@opensource.lk]
> > > Sent: Monday, July 31, 2006 12:11 PM
> > > To: axis-dev@ws.apache.org
> > > Subject: Re: Customization of SOAP Envelop using Axis2 1.0
> > >
> > >
> > > What exactly you want to do here? Do you want to send a SOAP request
> > > with WS-Addressing enabled?
> > > If yes, the easiest way is to use the ServiceClient api with addressing
> > > enabled (refer the user guide for this)
> > >
> > > -- Chinthaka
> > >
> > > Shyam Shukla wrote:
> > >>
> > >> Hello All,
> > >>
> > >>
> > >>
> > >> I am just started working with axis2 1.0 with wss4j 1.5 and my task is
> > >> to create SOAP request which refers to WS-Addressing
> > >> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
> > >> following format in SOAP request:
> > >>
> > >>
> > >>
> > >> <soapenv:Envelope
> > >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > >> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> > >>
> > >>
> > >>
> > >> Can anyone guide me how can I modify this request?
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Thanks in Advance,
> > >> Shyam Shukla
> > >>
> > >>
> > >>
> > >> DISCLAIMER ========== This e-mail may contain privileged and
> > >> confidential information which is the property of Persistent Systems
> > >> Pvt. Ltd. It is intended only for the use of the individual or entity
> to
> > >> which it is addressed. If you are not the intended recipient, you are
> > >> not authorized to read, retain, copy, print, distribute or use this
> > >> message. If you have received this communication in error, please
> notify
> > >> the sender and delete all copies of this message. Persistent Systems
> > >> Pvt. Ltd. does not accept any liability for virus infected mails.
> > >
> > >
> > >
> > >
> > > DISCLAIMER
> > > ==========
> > > This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Pvt. Ltd. It is intended only for the use
> of the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Pvt. Ltd. does not accept any liability for virus
> infected mails.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-dev-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
David Illsley - IBM Web Services Development

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


RE: Customization of SOAP Envelop using Axis2 1.0

Posted by Shyam Shukla <sh...@persistent.co.in>.
David you got my point I was just going to reply Eran about this point.
Actually, in my current project web services which I have to invoke support 
mentioned WSA namespace in this email
i.e."http://schemas.xmlsoap.org/ws/2004/03/addressing" only and I am
required to write a client program to invoke those services.
So I think I will have to play with axis2 handlers.
David, can you please provide me the name and/or location of these handler
file(s) to create only SOAP Request.

  
Best Regards,
Shyam Shukla

-----Original Message-----
From: David Illsley [mailto:davidillsley@gmail.com] 
Sent: Monday, July 31, 2006 2:26 PM
To: axis-dev@ws.apache.org; chinthaka@opensource.lk
Subject: Re: Customization of SOAP Envelop using Axis2 1.0

Eran, unfortunately Shyam is looking for the 2004/03 namespace which
the current addressing handlers do not support and if you sets the
WS_ADDRESSING_VERSION property to
"http://schemas.xmlsoap.org/ws/2004/03/addressing", the submission
version is used.

Shyam, if you can move up to a newer version of WS-Addressing that is
your best option (2004/03 is not widely supported now and won't be
going forward. There is broad vendor support for 2004/08 and 2005/08).
If you cannot move to one of these specifications, modifying the axis2
handlers to support 2004/03 or writing your own handlers are your
other options.

David

-- 
David Illsley - IBM Web Services Development

On 31/07/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> No wait, you don't need to change the source code to do that.
>
> just do the following.
>
> options.setProperty(
> org.apache.axis2.addressing.AddressingConstants.WS_ADDRESSING_VERSION,
> org.apache.axis2.addressing.AddressingConstants.Submission.WSA_NAMESPACE);
>
> Hope you know how to set the options.
>
> (Your next question might be that what are the other params that can be
> set thru the client api. Do not worry an article on that is coming soon.
> There is a small delay in getting that published :).)
>
> -- Chinthaka
>
> Shyam Shukla wrote:
> > Thanks Chinthaka for your reply.
> > I've enabled WS-Addressing and have associated in my SOAP Request.
> > My problem is I want to modify the SOAP Envelop part in the request, by
> > default axis2 1.0 is referring to
> > "xmlns:wsa="http://www.w3.org/2005/08/addressing" namespace as I have
> > mentioned in my email while I want WS-Addressing namespace should refer
to
> > "http://schemas.xmlsoap.org/ws/2004/03/addressing" URL.
> > I have gone through all the addressing APIs of axis2 to find out any way
to
> > do it but could not be succeeded.
> > I guess now I will have to modify the source code which is responsible
for
> > generating this part of the SOAP request.
> > Can you please let me know which file will I be required to modify or Is
> > there any API to accomplish this task?
> >
> >
> > Best Regards,
> > Shyam Shukla
> >
> > -----Original Message-----
> > From: Eran Chinthaka [mailto:chinthaka@opensource.lk]
> > Sent: Monday, July 31, 2006 12:11 PM
> > To: axis-dev@ws.apache.org
> > Subject: Re: Customization of SOAP Envelop using Axis2 1.0
> >
> >
> > What exactly you want to do here? Do you want to send a SOAP request
> > with WS-Addressing enabled?
> > If yes, the easiest way is to use the ServiceClient api with addressing
> > enabled (refer the user guide for this)
> >
> > -- Chinthaka
> >
> > Shyam Shukla wrote:
> >>
> >> Hello All,
> >>
> >>
> >>
> >> I am just started working with axis2 1.0 with wss4j 1.5 and my task is
> >> to create SOAP request which refers to WS-Addressing
> >> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
> >> following format in SOAP request:
> >>
> >>
> >>
> >> <soapenv:Envelope
> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> >>
> >>
> >>
> >> Can anyone guide me how can I modify this request?
> >>
> >>
> >>
> >>
> >>
> >> Thanks in Advance,
> >> Shyam Shukla
> >>
> >>
> >>
> >> DISCLAIMER ========== This e-mail may contain privileged and
> >> confidential information which is the property of Persistent Systems
> >> Pvt. Ltd. It is intended only for the use of the individual or entity
to
> >> which it is addressed. If you are not the intended recipient, you are
> >> not authorized to read, retain, copy, print, distribute or use this
> >> message. If you have received this communication in error, please
notify
> >> the sender and delete all copies of this message. Persistent Systems
> >> Pvt. Ltd. does not accept any liability for virus infected mails.
> >
> >
> >
> >
> > DISCLAIMER
> > ==========
> > This e-mail may contain privileged and confidential information which is
the property of Persistent Systems Pvt. Ltd. It is intended only for the use
of the individual or entity to which it is addressed. If you are not the
intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in
error, please notify the sender and delete all copies of this message.
Persistent Systems Pvt. Ltd. does not accept any liability for virus
infected mails.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Customization of SOAP Envelop using Axis2 1.0

Posted by David Illsley <da...@gmail.com>.
Eran, unfortunately Shyam is looking for the 2004/03 namespace which
the current addressing handlers do not support and if you sets the
WS_ADDRESSING_VERSION property to
"http://schemas.xmlsoap.org/ws/2004/03/addressing", the submission
version is used.

Shyam, if you can move up to a newer version of WS-Addressing that is
your best option (2004/03 is not widely supported now and won't be
going forward. There is broad vendor support for 2004/08 and 2005/08).
If you cannot move to one of these specifications, modifying the axis2
handlers to support 2004/03 or writing your own handlers are your
other options.

David

-- 
David Illsley - IBM Web Services Development

On 31/07/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> No wait, you don't need to change the source code to do that.
>
> just do the following.
>
> options.setProperty(
> org.apache.axis2.addressing.AddressingConstants.WS_ADDRESSING_VERSION,
> org.apache.axis2.addressing.AddressingConstants.Submission.WSA_NAMESPACE);
>
> Hope you know how to set the options.
>
> (Your next question might be that what are the other params that can be
> set thru the client api. Do not worry an article on that is coming soon.
> There is a small delay in getting that published :).)
>
> -- Chinthaka
>
> Shyam Shukla wrote:
> > Thanks Chinthaka for your reply.
> > I've enabled WS-Addressing and have associated in my SOAP Request.
> > My problem is I want to modify the SOAP Envelop part in the request, by
> > default axis2 1.0 is referring to
> > "xmlns:wsa="http://www.w3.org/2005/08/addressing" namespace as I have
> > mentioned in my email while I want WS-Addressing namespace should refer to
> > "http://schemas.xmlsoap.org/ws/2004/03/addressing" URL.
> > I have gone through all the addressing APIs of axis2 to find out any way to
> > do it but could not be succeeded.
> > I guess now I will have to modify the source code which is responsible for
> > generating this part of the SOAP request.
> > Can you please let me know which file will I be required to modify or Is
> > there any API to accomplish this task?
> >
> >
> > Best Regards,
> > Shyam Shukla
> >
> > -----Original Message-----
> > From: Eran Chinthaka [mailto:chinthaka@opensource.lk]
> > Sent: Monday, July 31, 2006 12:11 PM
> > To: axis-dev@ws.apache.org
> > Subject: Re: Customization of SOAP Envelop using Axis2 1.0
> >
> >
> > What exactly you want to do here? Do you want to send a SOAP request
> > with WS-Addressing enabled?
> > If yes, the easiest way is to use the ServiceClient api with addressing
> > enabled (refer the user guide for this)
> >
> > -- Chinthaka
> >
> > Shyam Shukla wrote:
> >>
> >> Hello All,
> >>
> >>
> >>
> >> I am just started working with axis2 1.0 with wss4j 1.5 and my task is
> >> to create SOAP request which refers to WS-Addressing
> >> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
> >> following format in SOAP request:
> >>
> >>
> >>
> >> <soapenv:Envelope
> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> >>
> >>
> >>
> >> Can anyone guide me how can I modify this request?
> >>
> >>
> >>
> >>
> >>
> >> Thanks in Advance,
> >> Shyam Shukla
> >>
> >>
> >>
> >> DISCLAIMER ========== This e-mail may contain privileged and
> >> confidential information which is the property of Persistent Systems
> >> Pvt. Ltd. It is intended only for the use of the individual or entity to
> >> which it is addressed. If you are not the intended recipient, you are
> >> not authorized to read, retain, copy, print, distribute or use this
> >> message. If you have received this communication in error, please notify
> >> the sender and delete all copies of this message. Persistent Systems
> >> Pvt. Ltd. does not accept any liability for virus infected mails.
> >
> >
> >
> >
> > DISCLAIMER
> > ==========
> > This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Customization of SOAP Envelop using Axis2 1.0

Posted by Eran Chinthaka <ch...@opensource.lk>.
No wait, you don't need to change the source code to do that.

just do the following.

options.setProperty(
org.apache.axis2.addressing.AddressingConstants.WS_ADDRESSING_VERSION,
org.apache.axis2.addressing.AddressingConstants.Submission.WSA_NAMESPACE);

Hope you know how to set the options.

(Your next question might be that what are the other params that can be
set thru the client api. Do not worry an article on that is coming soon.
There is a small delay in getting that published :).)

-- Chinthaka

Shyam Shukla wrote:
> Thanks Chinthaka for your reply.
> I've enabled WS-Addressing and have associated in my SOAP Request.
> My problem is I want to modify the SOAP Envelop part in the request, by
> default axis2 1.0 is referring to
> "xmlns:wsa="http://www.w3.org/2005/08/addressing" namespace as I have
> mentioned in my email while I want WS-Addressing namespace should refer to
> "http://schemas.xmlsoap.org/ws/2004/03/addressing" URL.
> I have gone through all the addressing APIs of axis2 to find out any way to
> do it but could not be succeeded.
> I guess now I will have to modify the source code which is responsible for
> generating this part of the SOAP request.
> Can you please let me know which file will I be required to modify or Is
> there any API to accomplish this task?
>  
> 
> Best Regards,
> Shyam Shukla
> 
> -----Original Message-----
> From: Eran Chinthaka [mailto:chinthaka@opensource.lk] 
> Sent: Monday, July 31, 2006 12:11 PM
> To: axis-dev@ws.apache.org
> Subject: Re: Customization of SOAP Envelop using Axis2 1.0
> 
> 
> What exactly you want to do here? Do you want to send a SOAP request
> with WS-Addressing enabled?
> If yes, the easiest way is to use the ServiceClient api with addressing
> enabled (refer the user guide for this)
> 
> -- Chinthaka
> 
> Shyam Shukla wrote:
>>
>> Hello All,
>>
>>  
>>
>> I am just started working with axis2 1.0 with wss4j 1.5 and my task is
>> to create SOAP request which refers to WS-Addressing
>> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
>> following format in SOAP request:
>>
>>  
>>
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:wsa="http://www.w3.org/2005/08/addressing">
>>
>>  
>>
>> Can anyone guide me how can I modify this request?
>>
>>  
>>
>>  
>>
>> Thanks in Advance,
>> Shyam Shukla
>>
>>  
>>
>> DISCLAIMER ========== This e-mail may contain privileged and
>> confidential information which is the property of Persistent Systems
>> Pvt. Ltd. It is intended only for the use of the individual or entity to
>> which it is addressed. If you are not the intended recipient, you are
>> not authorized to read, retain, copy, print, distribute or use this
>> message. If you have received this communication in error, please notify
>> the sender and delete all copies of this message. Persistent Systems
>> Pvt. Ltd. does not accept any liability for virus infected mails.
> 
> 
> 
> 
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 



RE: Customization of SOAP Envelop using Axis2 1.0

Posted by Shyam Shukla <sh...@persistent.co.in>.
Thanks Chinthaka for your reply.
I've enabled WS-Addressing and have associated in my SOAP Request.
My problem is I want to modify the SOAP Envelop part in the request, by
default axis2 1.0 is referring to
"xmlns:wsa="http://www.w3.org/2005/08/addressing" namespace as I have
mentioned in my email while I want WS-Addressing namespace should refer to
"http://schemas.xmlsoap.org/ws/2004/03/addressing" URL.
I have gone through all the addressing APIs of axis2 to find out any way to
do it but could not be succeeded.
I guess now I will have to modify the source code which is responsible for
generating this part of the SOAP request.
Can you please let me know which file will I be required to modify or Is
there any API to accomplish this task?
 

Best Regards,
Shyam Shukla

-----Original Message-----
From: Eran Chinthaka [mailto:chinthaka@opensource.lk] 
Sent: Monday, July 31, 2006 12:11 PM
To: axis-dev@ws.apache.org
Subject: Re: Customization of SOAP Envelop using Axis2 1.0


What exactly you want to do here? Do you want to send a SOAP request
with WS-Addressing enabled?
If yes, the easiest way is to use the ServiceClient api with addressing
enabled (refer the user guide for this)

-- Chinthaka

Shyam Shukla wrote:
> 
> 
> Hello All,
> 
>  
> 
> I am just started working with axis2 1.0 with wss4j 1.5 and my task is
> to create SOAP request which refers to WS-Addressing
> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
> following format in SOAP request:
> 
>  
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> 
>  
> 
> Can anyone guide me how can I modify this request?
> 
>  
> 
>  
> 
> Thanks in Advance,
> Shyam Shukla
> 
>  
> 
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Pvt. Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please notify
> the sender and delete all copies of this message. Persistent Systems
> Pvt. Ltd. does not accept any liability for virus infected mails.




DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Customization of SOAP Envelop using Axis2 1.0

Posted by Eran Chinthaka <ch...@opensource.lk>.
What exactly you want to do here? Do you want to send a SOAP request
with WS-Addressing enabled?
If yes, the easiest way is to use the ServiceClient api with addressing
enabled (refer the user guide for this)

-- Chinthaka

Shyam Shukla wrote:
> 
> 
> Hello All,
> 
>  
> 
> I am just started working with axis2 1.0 with wss4j 1.5 and my task is
> to create SOAP request which refers to WS-Addressing
> http://schemas.xmlsoap.org/ws/2004/03/addressing while I am getting
> following format in SOAP request:
> 
>  
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> 
>  
> 
> Can anyone guide me how can I modify this request?
> 
>  
> 
>  
> 
> Thanks in Advance,
> Shyam Shukla
> 
>  
> 
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Pvt. Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please notify
> the sender and delete all copies of this message. Persistent Systems
> Pvt. Ltd. does not accept any liability for virus infected mails.