Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2EF29748 for ; Mon, 2 Apr 2012 16:38:35 +0000 (UTC) Received: (qmail 39220 invoked by uid 500); 2 Apr 2012 16:38:34 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 39175 invoked by uid 500); 2 Apr 2012 16:38:34 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 39167 invoked by uid 99); 2 Apr 2012 16:38:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 16:38:34 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of futhark77@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 16:38:27 +0000 Received: by yhoo21 with SMTP id o21so1499204yho.32 for ; Mon, 02 Apr 2012 09:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=33tuSxh9Kv1vVB1454/bRz61B5+Ajc9vrVwX2lmsSAI=; b=AIXYNnx841DsdpM2+C3zXm0rvtEnnNGJjdnQD6DCe3hDuy1ypN9B8eDmvWKdMWTNyx xoB0m4X3w8aQGo4NMgwXdXvusG4bWlBa9VmPir5zDDrSjKj5ZYicNqUGfpd0oItBFwbh SCtukAEaBq3QEVSPRMxl0uRO84T+JTqXfHcVcaTJyLF5+q4VDdR+cSTuKJCrGbRjmHIH TyJPXqHbCoLx29cInWGth3YPQ/oVgURO+dQu8nP/UkA9l40mESAUi/4s+bHgEayvLb56 qLORPoLNuIHiU3ziT6qTk5Ll7gkB4D7UzyA+v/AMAi0h7XXm7rElH98IkeBrfNnJoYD8 MpWQ== MIME-Version: 1.0 Received: by 10.236.173.229 with SMTP id v65mr7701088yhl.85.1333384686919; Mon, 02 Apr 2012 09:38:06 -0700 (PDT) Received: by 10.236.28.100 with HTTP; Mon, 2 Apr 2012 09:38:06 -0700 (PDT) Date: Mon, 2 Apr 2012 12:38:06 -0400 Message-ID: Subject: Re: [axis2 or rampart?] client not including username and password in header From: "Philippe A." To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=20cf305639719cdf8404bcb4d097 --20cf305639719cdf8404bcb4d097 Content-Type: text/plain; charset=ISO-8859-1 Sorry for the missing subject. I posted in a hurry. 2012/4/2 Philippe A. > Hello, > > I have compiled Axis2 & rampart from trunk in order to workaround a bug > with wsdl2java. The client I developed back with Axis 1.4.1 no longer > works. More specifically, the username and password token does not get > added by the client in the soap header (confirmed with tcpdump). Client > requests are rejected by the server with "org.apache.axis2.AxisFault: SOAP > header missing". > > I also see the following in my server logs (not sure if it is related or > not): > [WARN] Deprecated usage of OMElement#declareNamespace(String,String) with > empty prefix > > My client is generated by wsdl2java and I wrote a simple wrapper class > around it. The wrapper closely matches this example: > http://blog.facilelogin.com/2008/11/security-policy-with-rampart.html > > I invoke wsdl2java with the following options: -s -uw. > > Debug traces show that rampart is being loaded by the client. I am not > using any other security for now (encryption or other). I am using > standalone axis server and I am in the process of replacing https transport > security for ws-security encryption. > > All ideas welcome. Thank you! > --20cf305639719cdf8404bcb4d097 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry for the missing subject. I posted in a hurry.

2012/4/2 Philippe A. <futhark77@gmail.com>
Hello,

I have compiled Axis2 & rampart from trunk in order to wo= rkaround a bug with wsdl2java. The client I developed back with Axis 1.4.1 = no longer works. More specifically, the username and password token does no= t get added by the client in the soap header (confirmed with tcpdump). Clie= nt requests are rejected by the server with "org.apache.axis2.AxisFaul= t: SOAP header missing".

I also see the following in my server logs (not sure if it is related o= r not):
[WARN] Deprecated usage of OMElement#declareNamespace(String,Str= ing) with empty prefix

My client is generated by wsdl2java and I wro= te a simple wrapper class around it. The wrapper closely matches this examp= le:
http://blog.facilelogin.com/2008/11/security-polic= y-with-rampart.html

I invoke wsdl2java with the following option= s: -s -uw.

Debug traces show that rampart is being loaded by the client. I am not usin= g any other security for now (encryption or other). I am using standalone a= xis server and I am in the process of replacing https transport security fo= r ws-security encryption.

All ideas welcome. Thank you!

--20cf305639719cdf8404bcb4d097--