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:[EMAIL PROTECTED] 
> Sent: Monday, July 31, 2006 12:11 PM
> To: [email protected]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to