Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 17487 invoked from network); 8 May 2008 14:03:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2008 14:03:30 -0000 Received: (qmail 78076 invoked by uid 500); 8 May 2008 14:03:29 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 78035 invoked by uid 500); 8 May 2008 14:03:29 -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 78024 invoked by uid 99); 8 May 2008 14:03:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 07:03:29 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 14:02:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A32A5234C107 for ; Thu, 8 May 2008 07:02:55 -0700 (PDT) Message-ID: <1218807514.1210255375653.JavaMail.jira@brutus> Date: Thu, 8 May 2008 07:02:55 -0700 (PDT) From: "Stefan Lischke (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3366) Assigning Username and password to client stub generated by axis2 xmlbeans having ws-security policy username token In-Reply-To: <28964906.1196089183272.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595243#action_12595243 ] Stefan Lischke commented on AXIS2-3366: --------------------------------------- I have asked this on rampart-dev too http://markmail.org/message/ejbtxmbqlveo64ll?q=rampart But no answer till now the only way is to set the username via the security-policy.xml and the password via the callbackhandler code itself.... very very ugly, but maybe we get an answer from rampart people > Assigning Username and password to client stub generated by axis2 xmlbeans having ws-security policy username token > ------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-3366 > URL: https://issues.apache.org/jira/browse/AXIS2-3366 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Environment: windows xp,Jre 1.4.1,axis2 > Reporter: Bhanu > Attachments: image001.jpg > > > Hi > I have generated client stubs..using axis2 wsdl2java command..actually > the wsdl has security policies > > > > > TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"> > Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/> > > > > > I have generated stub using axis2 xmlbeans method. > Can u plz suggest me how to set the username and password when I try > to call the methods from a webservice > I cannot see any methods..setting username and password to the stub.. > I have seen the same issue posted by > Babu Kanumuri ..but I could not find the solution..it will be very > helpful..if u anybody address this solution..i m at peak stage..i just want to know whether it is possible or not.. > The error i m getting is .. > org.apache.axis2.AxisFault: No Security header in message but required by policy. > at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373) > at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) > at samples.quickstart.service.xmlbeans.OfferMgmtServiceStub.queryQualifying(OfferMgmtServiceStub.java:230) > at com.commsales.bl.epc.OfferMgmtService.queryQualifying1(OfferMgmtService.java:71) > at com.commsales.bl.epc.OfferMgmtService.main(OfferMgmtService.java:27) > Exception in thread "main" > Thanks and hope some one will address this soon with the solution > regards > bhanu. > solutions can be send to bhanu.p1978@gmail.com -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org