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 Isuru Suriarachchi <is...@gmail.com> on 2009/11/08 08:57:52 UTC
How to set SOAP Action using JAXWS dispatch client API?
Hi all,
I'm using a JAXWS dispatch client (without generating proxy code) to invoke
a simple service. Now I want to engage addressing to this client and test
some asynchronous scenarios. But I can't find how to set the SOAP Action
through this dispatch client API. Can someone who's familiar with our JAXWS
client API tell me how to do this?
Thanks in advance,
~Isuru
Re: How to set SOAP Action using JAXWS dispatch client API?
Posted by Isuru Suriarachchi <is...@gmail.com>.
Hi Brian and dims,
Thanks for your inputs. Yes I just had a look at the Client API section in
the specification and found more details there. If the improvements in
documentation is already a part of the plan, that's great :).
Thanks,
~Isuru
On Tue, Nov 10, 2009 at 5:04 PM, Davanum Srinivas <da...@gmail.com> wrote:
> Isuru,
>
> Please take a look at the javadoc:
> http://java.sun.com/javase/6/docs/api/javax/xml/ws/BindingProvider.html
>
> and the Specification PDF as well there are many more tips there.
>
> thanks,
> dims
>
>
> On 11/10/2009 06:29 AM, Brian De Pradine wrote:
>
>> Hi Isuru,
>>
>> Not in the Axis2 documentation. The current plan, however, is to update
>> the existing JAX-WS related documentation Axis2 as a part of the wider
>> effort to update support to JAX-WS 2.2.
>>
>> Cheers
>>
>> Brian DePradine
>> Web Services Development
>> IBM Hursley
>> External +44 (0) 1962 816319 Internal 246319
>>
>> If you can't find the time to do it right the first time, where will you
>> find the time to do it again?
>>
>>
>> Isuru Suriarachchi<is...@gmail.com> wrote on 10/11/2009 06:33:07:
>>
>> [image removed]
>>>
>>> Re: How to set SOAP Action using JAXWS dispatch client API?
>>>
>>> Isuru Suriarachchi
>>>
>>> to:
>>>
>>> axis-dev
>>>
>>> 10/11/2009 06:33
>>>
>>> Please respond to axis-dev
>>>
>>> Hi Brian,
>>>
>>> Thanks. It works.. Do we have any documents on this kind of stuff?
>>>
>>> Thanks,
>>> ~Isuru
>>>
>>
>> On Mon, Nov 9, 2009 at 11:43 PM, Brian De Pradine<PR...@uk.ibm.com>
>>>
>> wrote:
>>
>>>
>>> Hi Isuru,
>>>
>>> You need to add some code similar to the following to your client,
>>>
>>> import javax.xml.ws.BindingProvider;
>>>
>>> Map<String, Object> map = dispatch.getRequestContext();
>>> map.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
>>> map.put(BindingProvider.SOAPACTION_URI_PROPERTY, ...);
>>>
>>> Pass a String as the BindingProvider.SOAPACTION_URI_PROPERTY in
>>> order to specify the SOAP action..
>>>
>>> Cheers
>>>
>>> Brian DePradine
>>> Web Services Development
>>> IBM Hursley
>>> External +44 (0) 1962 816319 Internal 246319
>>>
>>> If you can't find the time to do it right the first time, where will
>>> you find the time to do it again?
>>>
>>>
>>>
>>
>>> From:
>>>
>>> Isuru Suriarachchi<is...@gmail.com>
>>>
>>> To:
>>>
>>> axis-dev@ws.apache.org
>>>
>>> Date:
>>>
>>> 08/11/2009 07:58
>>>
>>> Subject:
>>>
>>> How to set SOAP Action using JAXWS dispatch client API?
>>>
>>>
>>>
>>
>>>
>>>
>>> Hi all,
>>>
>>> I'm using a JAXWS dispatch client (without generating proxy code) to
>>> invoke a simple service. Now I want to engage addressing to this
>>> client and test some asynchronous scenarios. But I can't find how to
>>> set the SOAP Action through this dispatch client API. Can someone
>>> who's familiar with our JAXWS client API tell me how to do this?
>>>
>>> Thanks in advance,
>>> ~Isuru
>>>
>>>
>>>
>>>
>>>
>>
>>>
>> Unless stated otherwise above:
>>> IBM United Kingdom Limited - Registered in England and Wales with
>>> number 741598.
>>> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
>>>
>> 3AU
>>
>>>
>>>
>>>
>>>
>>>
>>
>>>
>>>
>>> --
>>> Senior Software Engineer,
>>> WSO2 Inc. http://wso2.org/
>>> Blog : http://isurues.wordpress.com/
>>>
>>
>>
>>
>>
>>
>> Unless stated otherwise above:
>> IBM United Kingdom Limited - Registered in England and Wales with number
>> 741598.
>> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>>
>>
>>
>>
>>
>>
>>
>
--
Senior Software Engineer,
WSO2 Inc. http://wso2.org/
Blog : http://isurues.wordpress.com/
Re: How to set SOAP Action using JAXWS dispatch client API?
Posted by Davanum Srinivas <da...@gmail.com>.
Isuru,
Please take a look at the javadoc:
http://java.sun.com/javase/6/docs/api/javax/xml/ws/BindingProvider.html
and the Specification PDF as well there are many more tips there.
thanks,
dims
On 11/10/2009 06:29 AM, Brian De Pradine wrote:
> Hi Isuru,
>
> Not in the Axis2 documentation. The current plan, however, is to update
> the existing JAX-WS related documentation Axis2 as a part of the wider
> effort to update support to JAX-WS 2.2.
>
> Cheers
>
> Brian DePradine
> Web Services Development
> IBM Hursley
> External +44 (0) 1962 816319 Internal 246319
>
> If you can't find the time to do it right the first time, where will you
> find the time to do it again?
>
>
> Isuru Suriarachchi<is...@gmail.com> wrote on 10/11/2009 06:33:07:
>
>> [image removed]
>>
>> Re: How to set SOAP Action using JAXWS dispatch client API?
>>
>> Isuru Suriarachchi
>>
>> to:
>>
>> axis-dev
>>
>> 10/11/2009 06:33
>>
>> Please respond to axis-dev
>>
>> Hi Brian,
>>
>> Thanks. It works.. Do we have any documents on this kind of stuff?
>>
>> Thanks,
>> ~Isuru
>
>> On Mon, Nov 9, 2009 at 11:43 PM, Brian De Pradine<PR...@uk.ibm.com>
> wrote:
>>
>> Hi Isuru,
>>
>> You need to add some code similar to the following to your client,
>>
>> import javax.xml.ws.BindingProvider;
>>
>> Map<String, Object> map = dispatch.getRequestContext();
>> map.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
>> map.put(BindingProvider.SOAPACTION_URI_PROPERTY, ...);
>>
>> Pass a String as the BindingProvider.SOAPACTION_URI_PROPERTY in
>> order to specify the SOAP action..
>>
>> Cheers
>>
>> Brian DePradine
>> Web Services Development
>> IBM Hursley
>> External +44 (0) 1962 816319 Internal 246319
>>
>> If you can't find the time to do it right the first time, where will
>> you find the time to do it again?
>>
>>
>
>>
>> From:
>>
>> Isuru Suriarachchi<is...@gmail.com>
>>
>> To:
>>
>> axis-dev@ws.apache.org
>>
>> Date:
>>
>> 08/11/2009 07:58
>>
>> Subject:
>>
>> How to set SOAP Action using JAXWS dispatch client API?
>>
>>
>
>>
>>
>>
>> Hi all,
>>
>> I'm using a JAXWS dispatch client (without generating proxy code) to
>> invoke a simple service. Now I want to engage addressing to this
>> client and test some asynchronous scenarios. But I can't find how to
>> set the SOAP Action through this dispatch client API. Can someone
>> who's familiar with our JAXWS client API tell me how to do this?
>>
>> Thanks in advance,
>> ~Isuru
>>
>>
>>
>>
>
>>
>
>> Unless stated otherwise above:
>> IBM United Kingdom Limited - Registered in England and Wales with
>> number 741598.
>> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
> 3AU
>>
>>
>>
>>
>
>>
>>
>>
>> --
>> Senior Software Engineer,
>> WSO2 Inc. http://wso2.org/
>> Blog : http://isurues.wordpress.com/
>
>
>
>
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
>
>
>
>
>
Re: How to set SOAP Action using JAXWS dispatch client API?
Posted by Brian De Pradine <PR...@uk.ibm.com>.
Hi Isuru,
Not in the Axis2 documentation. The current plan, however, is to update
the existing JAX-WS related documentation Axis2 as a part of the wider
effort to update support to JAX-WS 2.2.
Cheers
Brian DePradine
Web Services Development
IBM Hursley
External +44 (0) 1962 816319 Internal 246319
If you can't find the time to do it right the first time, where will you
find the time to do it again?
Isuru Suriarachchi <is...@gmail.com> wrote on 10/11/2009 06:33:07:
> [image removed]
>
> Re: How to set SOAP Action using JAXWS dispatch client API?
>
> Isuru Suriarachchi
>
> to:
>
> axis-dev
>
> 10/11/2009 06:33
>
> Please respond to axis-dev
>
> Hi Brian,
>
> Thanks. It works.. Do we have any documents on this kind of stuff?
>
> Thanks,
> ~Isuru
> On Mon, Nov 9, 2009 at 11:43 PM, Brian De Pradine <PR...@uk.ibm.com>
wrote:
>
> Hi Isuru,
>
> You need to add some code similar to the following to your client,
>
> import javax.xml.ws.BindingProvider;
>
> Map<String, Object> map = dispatch.getRequestContext();
> map.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
> map.put(BindingProvider.SOAPACTION_URI_PROPERTY, ...);
>
> Pass a String as the BindingProvider.SOAPACTION_URI_PROPERTY in
> order to specify the SOAP action..
>
> Cheers
>
> Brian DePradine
> Web Services Development
> IBM Hursley
> External +44 (0) 1962 816319 Internal 246319
>
> If you can't find the time to do it right the first time, where will
> you find the time to do it again?
>
>
>
> From:
>
> Isuru Suriarachchi <is...@gmail.com>
>
> To:
>
> axis-dev@ws.apache.org
>
> Date:
>
> 08/11/2009 07:58
>
> Subject:
>
> How to set SOAP Action using JAXWS dispatch client API?
>
>
>
>
>
> Hi all,
>
> I'm using a JAXWS dispatch client (without generating proxy code) to
> invoke a simple service. Now I want to engage addressing to this
> client and test some asynchronous scenarios. But I can't find how to
> set the SOAP Action through this dispatch client API. Can someone
> who's familiar with our JAXWS client API tell me how to do this?
>
> Thanks in advance,
> ~Isuru
>
>
>
>
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with
> number 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
>
>
>
>
>
>
>
> --
> Senior Software Engineer,
> WSO2 Inc. http://wso2.org/
> Blog : http://isurues.wordpress.com/
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: How to set SOAP Action using JAXWS dispatch client API?
Posted by Isuru Suriarachchi <is...@gmail.com>.
Hi Brian,
Thanks. It works.. Do we have any documents on this kind of stuff?
Thanks,
~Isuru
On Mon, Nov 9, 2009 at 11:43 PM, Brian De Pradine <PR...@uk.ibm.com>wrote:
>
> Hi Isuru,
>
> You need to add some code similar to the following to your client,
>
> import javax.xml.ws.BindingProvider;
>
> Map<String, Object> map = dispatch.getRequestContext();
> map.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
> map.put(BindingProvider.SOAPACTION_URI_PROPERTY, ...);
>
> Pass a String as the BindingProvider.SOAPACTION_URI_PROPERTY in order to
> specify the SOAP action..
>
> Cheers
>
> Brian DePradine
> Web Services Development
> IBM Hursley
> External +44 (0) 1962 816319 Internal 246319
>
> If you can't find the time to do it right the first time, where will you
> find the time to do it again?
>
>
>
> From: Isuru Suriarachchi <is...@gmail.com> To:
> axis-dev@ws.apache.org
> Date: 08/11/2009 07:58 Subject: How to set SOAP Action using JAXWS
> dispatch client API?
> ------------------------------
>
>
>
> Hi all,
>
> I'm using a JAXWS dispatch client (without generating proxy code) to invoke
> a simple service. Now I want to engage addressing to this client and test
> some asynchronous scenarios. But I can't find how to set the SOAP Action
> through this dispatch client API. Can someone who's familiar with our JAXWS
> client API tell me how to do this?
>
> Thanks in advance,
> ~Isuru
>
>
>
>
>
> ------------------------------
>
> *
> *
>
> *Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
> *
>
>
>
>
>
>
>
--
Senior Software Engineer,
WSO2 Inc. http://wso2.org/
Blog : http://isurues.wordpress.com/
Re: How to set SOAP Action using JAXWS dispatch client API?
Posted by Brian De Pradine <PR...@uk.ibm.com>.
Hi Isuru,
You need to add some code similar to the following to your client,
import javax.xml.ws.BindingProvider;
Map<String, Object> map = dispatch.getRequestContext();
map.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
map.put(BindingProvider.SOAPACTION_URI_PROPERTY, ...);
Pass a String as the BindingProvider.SOAPACTION_URI_PROPERTY in order to
specify the SOAP action..
Cheers
Brian DePradine
Web Services Development
IBM Hursley
External +44 (0) 1962 816319 Internal 246319
If you can't find the time to do it right the first time, where will you
find the time to do it again?
From:
Isuru Suriarachchi <is...@gmail.com>
To:
axis-dev@ws.apache.org
Date:
08/11/2009 07:58
Subject:
How to set SOAP Action using JAXWS dispatch client API?
Hi all,
I'm using a JAXWS dispatch client (without generating proxy code) to
invoke a simple service. Now I want to engage addressing to this client
and test some asynchronous scenarios. But I can't find how to set the SOAP
Action through this dispatch client API. Can someone who's familiar with
our JAXWS client API tell me how to do this?
Thanks in advance,
~Isuru
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU