How to set SOAP Action using JAXWS dispatch client API?

View: New views
6 Messages — Rating Filter:   Alert me  

How to set SOAP Action using JAXWS dispatch client API?

by Isuru Suriarachchi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

by Brian De Pradine :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 <isurues@...>
To: axis-dev@...
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







Re: How to set SOAP Action using JAXWS dispatch client API?

by Isuru Suriarachchi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <PRADINE@...> 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 <isurues@...>
To:
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?

by Brian De Pradine :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 <isurues@...> 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 <PRADINE@...> 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 <isurues@...>

>
> To:

>
> axis-dev@...

>
> 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?

by dims :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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<isurues@...>  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<PRADINE@...>
> 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<isurues@...>
>>
>> To:
>>
>> axis-dev@...
>>
>> 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?

by Isuru Suriarachchi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <davanum@...> 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<isurues@...>  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<PRADINE@...>
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<isurues@...>

To:

axis-dev@...

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/