Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 90265 invoked from network); 29 Sep 2008 20:49:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Sep 2008 20:49:03 -0000 Received: (qmail 46502 invoked by uid 500); 29 Sep 2008 20:48:52 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 46478 invoked by uid 500); 29 Sep 2008 20:48:52 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 46467 invoked by uid 99); 29 Sep 2008 20:48:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2008 13:48:52 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.3.41.14] (HELO ironport2.lbl.gov) (128.3.41.14) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2008 20:47:47 +0000 X-Ironport-SBRS: 2.9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al0DAN/b4EiAAykMgWdsb2JhbACTPQEBFiKjIwMEhUphCQR5 X-IronPort-AV: E=Sophos;i="4.33,334,1220252400"; d="scan'208";a="91495426" Received: from mta2.lbl.gov ([128.3.41.12]) by ironport2.lbl.gov with ESMTP; 29 Sep 2008 13:47:21 -0700 Received: from [192.168.2.6] (adsl-69-232-239-242.dsl.pltn13.pacbell.net [69.232.239.242]) by mta2.lbl.gov (8.13.8/8.13.8) with ESMTP id m8TKlKlk028973 for ; Mon, 29 Sep 2008 13:47:21 -0700 (PDT) Message-ID: <48E13ED9.9010603@lbl.gov> Date: Mon, 29 Sep 2008 13:47:21 -0700 From: Mary Thompson Reply-To: mrthompson@lbl.gov User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Web Service requires secure header - how to generate with Axis? References: <48E137C1.8010408@javactivity.org> In-Reply-To: <48E137C1.8010408@javactivity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org If you mean axis2 1.4, the Rampart module will do that for you. The Axis pages link to some documentation and to the rampart 1.3 module. Go to http://ws.apache.org/rampart/download/1.4/download.cgi for rampart 1.4 and more documentation. After you have read the overviews, look at the rampart/samples code. I think samples/basic/sample03 may do what you want. Mary Steve Cohen wrote: > I am trying to generate java Client code to access a web service from a > WSDL using axis 1.4. Documentation that comes with the WSDL expects me > to generate packets with SOAP headers that look something like this. > > Is this a well-known security scheme that Axis can be easily configured > to generate or must it be coded by hand? > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" > > xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- > > 1.0.xsd" > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- > > 1.0.xsd"> > > > > urn:uuid:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx > > > > http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous > > > https://{url:443} > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis- > 200401-wss-wssecurity-utility-1.0.xsd" > wsu:Id="SecurityToken-xxxxxxx-xxxx-xxxx- > xxxx-xxxxxxxxxxxx"> > [username] > > Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username- > token-profile-1.0#PasswordText"> > [password] > > > > > > ... > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org