You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Bhanu Prakash Patha (JIRA)" <ji...@apache.org> on 2007/11/26 15:59:43 UTC
[jira] Created: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
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,
Reporter: Bhanu Prakash Patha
Hi
I have generated client stubs..using axis2 wsdl2java command..actually
the wsdl has security policies
<wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
<wsp:Policy s0:Id="Auth.xml">
<wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
<wssp:SupportedTokens>
<wssp:SecurityToken
TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
<wssp:UsePassword
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
</wssp:SecurityToken>
</wssp:SupportedTokens>
</wssp:Identity>
</wsp:Policy>
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..
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
[jira] Commented: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Paul R (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763531#action_12763531 ]
Paul R commented on AXIS2-3366:
-------------------------------
Axis2 v1.4 does support username/password tokens with Rampartv1.3. After creating your WS stub call get Options and set the username and password on that object (if you don't do it there then the code defaults to the password callback handler). Username/password tokens also work with v1.4 if you aren't doing anything else rampart related (signing or encrypting). We are able to get username/password and message signing to work with rampart v1.3 but we had to modify the source code in order to get the password to stop being in digest mode.
Rampart v1.4 breaks our application as it stops supporting quite a bit of working scenarios where we use username/password and signing. BTW, when they do fix it you will need to nest your <UsernameToken> elements in your policy inside of <SignedSupportingToken> instead of just <SupportingToken>.
> 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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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.
[jira] Updated: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Bhanu Prakash Patha (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bhanu Prakash Patha updated AXIS2-3366:
---------------------------------------
Description:
Hi
I have generated client stubs..using axis2 wsdl2java command..actually
the wsdl has security policies
<wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
<wsp:Policy s0:Id="Auth.xml">
<wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
<wssp:SupportedTokens>
<wssp:SecurityToken
TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
<wssp:UsePassword
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
</wssp:SecurityToken>
</wssp:SupportedTokens>
</wssp:Identity>
</wsp:Policy>
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
was:
Hi
I have generated client stubs..using axis2 wsdl2java command..actually
the wsdl has security policies
<wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
<wsp:Policy s0:Id="Auth.xml">
<wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
<wssp:SupportedTokens>
<wssp:SecurityToken
TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
<wssp:UsePassword
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
</wssp:SecurityToken>
</wssp:SupportedTokens>
</wssp:Identity>
</wsp:Policy>
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..
Thanks and hope some one will address this soon with the solution
regards
bhanu.
solutions can be send to bhanu.p1978@gmail.com
> 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,
> Reporter: Bhanu Prakash Patha
>
> Hi
> I have generated client stubs..using axis2 wsdl2java command..actually
> the wsdl has security policies
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Commented: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Stefan Lischke (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595525#action_12595525 ]
Stefan Lischke commented on AXIS2-3366:
---------------------------------------
bhanu, didn't you read the meal from nandana in the thread i posted.
There is a very simple solution for setting username and passwort with axis2
see:
http://wso2.org/library/3190#Step_3._Engaging_Rampart_and_setting_authentication_information
> 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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Updated: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Bhanu Prakash Patha (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bhanu Prakash Patha updated AXIS2-3366:
---------------------------------------
Environment: windows xp,Jre 1.4.1,axis2 (was: windows xp,)
> 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 Prakash Patha
>
> Hi
> I have generated client stubs..using axis2 wsdl2java command..actually
> the wsdl has security policies
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Commented: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595269#action_12595269 ]
Nandana Mihindukulasooriya commented on AXIS2-3366:
---------------------------------------------------
Hi Bhanu,
Can you please enlighten us on how you secured this service ? As it seems this service is not deployed in Axis2 , right ? This policy is not written according to WS Security Policy specification. Rampart is fully complaint to WS Security Policy specification and expects the policies to in WS Security policy language.
thanks,
nandana
> 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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Updated: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Nilton Nascimento (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nilton Nascimento updated AXIS2-3366:
-------------------------------------
Attachment: image001.jpg
Hi Bhanu,
You've found the answer to your question?
Send me please.
Thank You.
Cumprimentos,
Nilton Nascimento
Integration Analyst
nilton.nascimento@alert.pt <ma...@alert.pt>
ALERT Life Sciences Computing, S.A.
ArrĂ¡bida Lake Towers
Rua Daciano Baptista Marques, 245
4400-617 Vila Nova de Gaia
Portugal
Tel.: +351 22 832 89 80
Fax: +351 22 832 89 82
Tel.: +351 962193501
www.alert-online.com <http://www.alert-online.com/>
This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited.
> 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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Commented: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Bhanu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595327#action_12595327 ]
Bhanu commented on AXIS2-3366:
------------------------------
Hi everyone,
I think there is no solution for this in AXIS 2 and so i have solved this issue using axis1.4..actually there are methods for setting username and password. for the stub.
Thanks
bhanu
> 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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Commented: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Stefan Lischke (JIRA)" <ji...@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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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
[jira] Commented: (AXIS2-3366) Assigning Username and password to
client stub generated by axis2 xmlbeans having ws-security policy username
token
Posted by "Stefan Lischke (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595265#action_12595265 ]
Stefan Lischke commented on AXIS2-3366:
---------------------------------------
Now there is great answer
http://markmail.org/message/ejbtxmbqlveo64ll
Please close this bug
> 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
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> 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