Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 55146 invoked from network); 9 Nov 2009 18:13:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 18:13:59 -0000 Received: (qmail 18250 invoked by uid 500); 9 Nov 2009 18:13:58 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 18159 invoked by uid 500); 9 Nov 2009 18:13:58 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 18150 invoked by uid 99); 9 Nov 2009 18:13:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 18:13:58 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of PRADINE@uk.ibm.com designates 195.212.29.138 as permitted sender) Received: from [195.212.29.138] (HELO mtagate5.uk.ibm.com) (195.212.29.138) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 18:13:55 +0000 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate5.uk.ibm.com (8.14.3/8.13.8) with ESMTP id nA9IDI3p081772 for ; Mon, 9 Nov 2009 18:13:23 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nA9ID8dH413930 for ; Mon, 9 Nov 2009 18:13:08 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id nA9ID8vE005834 for ; Mon, 9 Nov 2009 18:13:08 GMT Received: from d06ml065.portsmouth.uk.ibm.com (d06ml065.portsmouth.uk.ibm.com [9.149.38.138]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id nA9ID8GJ005827 for ; Mon, 9 Nov 2009 18:13:08 GMT In-Reply-To: References: X-Disclaimed: 29458 To: axis-dev@ws.apache.org MIME-Version: 1.0 Subject: Re: How to set SOAP Action using JAXWS dispatch client API? X-KeepSent: F86708A2:7711FFE5-80257669:0062AD8E; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.2 HF623 January 16, 2009 From: Brian De Pradine Message-ID: Date: Mon, 9 Nov 2009 18:13:06 +0000 X-MIMETrack: Serialize by Router on D06ML065/06/M/IBM(Release 8.0.1|February 07, 2008) at 09/11/2009 18:13:07, Serialize complete at 09/11/2009 18:13:07 Content-Type: multipart/alternative; boundary="=_alternative 00640B9180257669_=" This is a multipart message in MIME format. --=_alternative 00640B9180257669_= Content-Type: text/plain; charset="US-ASCII" Hi Isuru, You need to add some code similar to the following to your client, import javax.xml.ws.BindingProvider; Map 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 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 --=_alternative 00640B9180257669_= Content-Type: text/html; charset="US-ASCII"
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@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






--=_alternative 00640B9180257669_=--