axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stadelmann Josef" <>
Subject AW: Trying to get the username in the web service
Date Tue, 03 Apr 2012 08:35:03 GMT
Which version of axis2/C and rampart/C are you using?



Von: Michael Tyler - ISD [] 
Gesendet: Montag, 2. April 2012 20:36
Betreff: Trying to get the username in the web service




What I am trying to do is build a way to track which user calls which
operation within the service.  


I am attempting to determine what the username was that was setup in the
rampart structure from within the web service. 


>From within the service_invoke function I am doing this:


                        conf_ctx = axis2_msg_ctx_get_conf_ctx( msg_ctx,
env );


                        if( conf_ctx == NULL )


                                Log( "Failed to find configuration
context" );




                                Log( "about to get
axis2_conf_ctx_get_conf" );


                                conf = axis2_conf_ctx_get_conf(
conf_ctx, env );


                                if( conf == NULL )


                                        Log( "Failed to get
axis2_conf_ctx_get_conf" );




                                        Log( "about to get
axis2_conf_get_security_context" );


                                        rampart_context = 

                                                ( rampart_context_t *


                                                , env



                                        if( rampart_context  == NULL )


                                                Log( "Failed to find
security param" );



The rampart_context is NULL;


I have found this in axis2c/src/core/engine/conf.c


/* This is a hack to keep rampart_context at client side */

    void *security_context;


Is this possible?  Does anyone have an example?  Is this a security



L. Michael Tyler, II

System Analyst - ISD Aps Dev Store Systems Services

Phone 479.277.2811

BlackBerry 479.420.3798 <> 

page Tyler Michael <mailto:pageLMTYLER>  





This email and any files transmitted with it are confidential and
intended solely for the individual or entity to whom they are addressed.
If you have received this email in error destroy it immediately. 

*** Walmart Confidential ***

View raw message