[ 
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 [EMAIL PROTECTED]

  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 [EMAIL PROTECTED]


> 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 [EMAIL PROTECTED]

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to