Read user name from Header of SOAP Sender

Hi All,
Is there any way to read value of "sap-user" passed in below URL.
http://<server>:<port>/sap/xi/adapter_plain?namespace=<sender_ns>&interface=<sender_mi>&service=myservice&party=&agency=&scheme=&QOS=BE&queueid=httpclient&sap-user=<sap-user>&sap-password=<sap-password>&sap-client=<sap-client>&sap-language=<sap-lang>
I tried using DynamicConfiguration in my SOAP sender adapter with "SRemoteUser" variable, it did NOT work for me.
Are there other options like Runtime Constants in JAVA Mapping etc.
Thank you,
Smita

Hi Smita,
I am not sure if this is the question you are asking for sender SOAP adapter or HTTP Adapter?
Please refer the below statement.
SOAP Adapter:
The inbound address for SOAP messages is: http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
HTTP Adapter:
The plain HTTP adapter is used by external systems to connect to the Integration Engine using the native HTTP interface (HTTP payload without SOAP envelope). These systems are connected using the Internet communication framework of the SAP Web Application Server. For this purpose, the Integration Engine HTTP inbound channel contains an HTTP service   delivered by SAP, called /sap/xi/adapter_plain.
Queries entering the plain HTTP adapter must have the following syntax:
http://<hostname:port>/<path>?<query-string>
The query string contains the following data:
●  Sender namespace ?namespace=<namespace>
●Sender interface &interface=<interface>
These details define the sender interface.
●Sender service &service=<service>
Specifies the sender service.
●Sender party (optional) &party=<party>
●Sender agency (optional) &agency=<agency>
●Sender scheme (optional) &scheme=<scheme>
If you are asking for HTTP Adapter, then I can tell you.
Please confirm.
Regards
B.Dheepa

Similar Messages

  • Getting user name from sopa header

    How should get user name from soap header in my udf...?i searched in sdn,but not get exact solution...

    I din't get this with SRemoteUser
    1. i've enabled " Do Not Use SOAP Envolope"
    2.Enabled ASMA
    3.Variable Transport Binding .
    used the following code as well:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey user = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
    conf.get(user);
    But not value in it.. Correct me if iam wrong..

  • Extract Portal User Name From HTTP POST Request (WSRP SOAP)

    How can we extract the user name from the HTTP POST Request (*WSRP SOAP*) from the Portal to the Portlet Provider (Producer)?
    We are load balancing between the Portal (10.1.14.2) and the providers (OC4J 10.1.3.3) and would like to extract the user name within the load balancer so we can create session affinity based on it.
    BTW, we already tried using TCP Flow but were unable to see the user name.

    From the documentation, it seems that you need to use
    HttpURLConnection.setRequestMethod("POST"); // "GET" is the defaultalthough I have seen examples on the web without it.
    Try!
    Edit: Also the single quotes around userid and password may be a problem.
    Use the previous poster suggestion, but do not include the single quotes.
    Edited by: baftos on Aug 6, 2008 4:27 PM

  • We have an itunes account on our desktop and my kids have it on their ipod and iphone. I went in and changed our user name from my old e-mail address which is no longer accessible to my new one and now either of my kids can access the itunes store..

    We have an itunes account on our desktop and both my kids have it on iphone and ipod. I went in and changed out user name from an old e-mail address which is no longer accessible to my one I use now... When the kids try to sign onto the itunes store it tells them they have the wrong user name..
    Can this be fixed??

    Did you change the email address or create a new Apple ID?
    If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials.

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

  • How to get the Users Name from the SSL certificate?

    Trying to achieve the following:
    Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
    Does SSO do this or something else?

    Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
         File scriptFile = File.createTempFile("script", ".js");
         FileWriter fw = new FileWriter(scriptFile);
         fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
         fw.flush();
         fw.close();
         BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
         String uName = br.readLine();
         br.close();
         scriptFile.delete();
         if (scriptFile.exists()) scriptFile.deleteOnExit();
         return uName;
    }

  • How to get the system property - user.name from a client system

    Hi All,
    I have an application which would enable active users from the domain of the company. I want to get the name of the client from the system. I tried to run it on the local machine from Jdeveloper, it returned me the correct user name. But when the application is deployed on the Oracle Application server, and i hit the URL of the application, it returns the server URL.
    I understand that the JSP works on the server side here but help me out to get a solution. I want to read the user name from the client side.
    Thanks in advance!
    Akhil

    Akhil,
    I hope this will never work. Think about your requirement for a second....
    This would mean an application is able to see my user credentials without my knowledge. It's bad enough the know my IP if I'm not using TOR.
    To get your requirement to work you have to redefine it a bit. The user have to log in to your application. The application holds the name together with an ID of the session to know the user in further requests.
    Thats a basic security theme, described in the dos [Adding Security to a Fusion Web Application|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adding_security.htm] .
    Timo

  • Read user groups from realm. Admin rights to each user ??

    Greetings to ALL,
    I am reading users, groups from realm. If I give the user admin priviliges I am
    able to get the information else I get the error weblogic.management.NoAccessRuntimeException:
    Access not allowed for subject: principals=[ruser1, B10AP01, B10MP01, B10MP03A,
    B10MP03], on ResourceType: Security:Name=myrealmDefaultAuthenticator Action: execute,
    Target: listGroups
    Is there more effective way to read the information.
    I can execute the program standalone ( from DOS PROMPT) and read all information
    if I do the following
    adminHome = (MBeanHome) Helper.getAdminMBeanHome (username,password,url);
    But when calling from the application I get the above error.
    Any code, suggestion will be very helpful.
    Fred

    "Fred Boon" <[email protected]> wrote in message
    news:3fa7cb98$[email protected]..
    >
    Greetings to ALL,
    I am reading users, groups from realm. If I give the user admin priviligesI am
    able to get the information else I get the errorweblogic.management.NoAccessRuntimeException:
    Access not allowed for subject: principals=[ruser1, B10AP01, B10MP01,
    B10MP03A,> B10MP03, on ResourceType: Security:Name=myrealmDefaultAuthenticatorAction: execute,
    Target: listGroups
    Is there more effective way to read the information.
    Commo mbeans require admin role in order to be able to invoke methods.
    I can execute the program standalone ( from DOS PROMPT) and read allinformation
    if I do the following
    adminHome = (MBeanHome) Helper.getAdminMBeanHome (username,password,url);
    But when calling from the application I get the above error.
    Try doing a runAs with a subject that has admin role.

  • Retrieve authenticated user name from environment

    Hi All,
    I'm connecting to Oracle from C++ using OCCI API. At the same time, the database authentication is based on secure Oracle Wallet feature.
    conn = env->createConnection("","",connection_string);
    Now, after I've created connection can I retrieve user name from the environment or connection object without querying database?
    Thank you.

    Hi Patrick,
    I'm just trying your code example in Eclipse but it gives me plenty of errors so I guess I'm not importing the right libraries or so.
    My goal was to write just a simple response.write of the userID stored in the cookie...
    The first error appears in the "ticket.setCertificates(this.certificates);" line, saying that "certificates cannot be resolved"..
    Here's what I used :
    import com.sapportals.portal.prt.component.*;
    import com.sap.security.*;
    public class cookie extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              try
              com.sap.security.core.ticket.imp.Ticket ticket = new com.sap.security.core.ticket.imp.Ticket();
              ticket.setCertificates(this.certificates);
              ticket.setTicket(base64Value);
              String vali = ticket.toString();
              ticket.verify();
              if (ticket.isValid())
              info = new SAPTicketInfo(ticket.getUser(),ticket.getSystemID(),ticket.getSystemClient(),ticket.getExpirationDate(),ticket.getCodepage());
              response.write (info);
              else
              throw new TicketVerifierException("Ticket is invalid ");
              catch (Exception ex)
              throw new TicketVerifierException("Error in verifying ticket "+ex.getMessage(),ex);
    What am I missing ?

  • How can I transfer two user names from an iMac to a new macbook?

    How can I transfer two user names from an iMac to a new macbook?
    got a new laptop and need to transfer two usernames to it, complete with all documents help?

    Assuming you haven't already set up a user, the easiest way is to use the Setup Assistant during first boot of the new Mac, with the two Macs connected by firewire.
    You'll be prompted to migrate from a choice of sources - choose "from another Mac", select the catagories of data you want to transfer and follow the instructions.
    More info here, in Pondini's FAQ; http://pondini.org/OSX/SetupAsst.html

  • How to know the all user name from system/system login

    hi all,
    i want to know the all user names from system login who are the existing user like
    regards
    srinivas

    Hello,
    Using DBA_USERS will give more details
    select * from dba_users;Regards

  • How to retrieve the all user name from system domain(including login user)?

    Hi, I am trying to get the system domain all users name. But I unable to get the all user name except domain login user name. I used the below code. What I want to do to get the all user name from system domain. Kindly any one help me.
    Properties envVars = new Properties();
    Runtime r = Runtime.getRuntime();
    String OS = System.getProperty("os.name").toLowerCase();
         if ((OS.indexOf("nt") > -1) || (OS.indexOf("windows 2000") > -1 ) || (OS.indexOf("windows xp") > -1) )
              p = r.exec( "cmd.exe /c set" );
         BufferedReader br = new BufferedReader ( new InputStreamReader( p.getInputStream() ) );
         String line;
         while( (line = br.readLine()) != null )
              int idx = line.indexOf( '=' );
              String key = line.substring( 0, idx );
              String value = line.substring( idx+1 );
              envVars.setProperty( key, value );
         String domainDNSName = envVars.getProperty("USERDNSDOMAIN");
         String userName = envVars.getProperty("USERNAME");
         System.out.println("\n\n\n DOMAIN NAME == "+domainDNSName +" USERNAME == "+userName);
    Thanks & Regards
    Palani

    Thanks kajbj,
    I don't know, How many users in domain. I neet to get all the user names from my domain. User like A, B,C,D, E,F. I need to get this users name.
    public class Env {
         public static void main(String[] args) {
              System.out.println("USERDOMAIN: " + System.getenv("USERDOMAIN"));
              System.out.println("USERNAME: " + System.getenv("USERNAME"));
    Here , I am getting the login user name only. So i needs all user name. How to retrive or get this.
    Regards
    Palani

  • Is there any query to know the multiple users name from their ids?

    is there any query to know the multiple users name from their ids?

    Hi,
    Goto TCode SUIM  Select Users  Select Users by Address Data
    It will give you the users list
    Regards,
    Sankaran

  • Get user name from ID

    is there a way to get a user's name from their ID? This arises from sending an email from a workflow for activities. You can send the email to the owner, but within the email, you only have access to the OwnerID, not name.

    Hi Vijay, thanks for your question.
    you can right custom console application to read External content type list data  and update it from user information list., please check if this can help you.
    SPWeb web = new SPSite("http://siteUrl").openWeb();
    SPUser user = web.EnsureUser(@"domain\username");
    SPListItem item = web.SiteuserInfoList.Items.GetItemByID(user.ID);
    foreach (SPField field in item.Fields)
    //you can get all user properties
    //below code will give some example of some of properties
    System.Console.WriteLine("title: {0} -- {1}" field.Title, field.internalName);
    The User Information List can be accessed (Only if you’re admin) via the browser by navigating to /_catalogs/users/simple.aspx from your site. (Ex:http://siteurl/_catalogs/users/simple.aspx)
    if user display name is not updated in user information list then you can run below script.
    function Sync-SPUser([string]$userName) {
    Get-SPSite -Limit All | foreach {
    $web = $_.RootWeb
    if ($_.WebApplication.UseClaimsAuthentication) {
    $claim = New-SPClaimsPrincipal $userName -IdentityType WindowsSamAccountName
    $user = $web | Get-SPUser -Identity $claim -ErrorAction SilentlyContinue
    } else {
    $user = $web | Get-SPUser -Identity $userName -ErrorAction SilentlyContinue
    if ($user -ne $null) {
    $web | Set-SPUser -Identity $user -SyncFromAD
    $web.Dispose()
    $_.Dispose()
    Thanks, ShankarSingh

  • How to read User ID from the request Form and pre populating in the AD User process form before provisioning

    I am trying to read the user Id from the submitted AD User request form( Catalogue AD User form. I need User Id,firstname and lastname inorder to prepopulate the common name as in this format - lastname,firstname (userid)  for the user to be provisioned in Active Directory.
    So after filling the AD User request form with User Id and Organization and submitting the request, I am trying to
    prepopulate the common name in the process form before the provisioning.
    The prepopulate adopter for the common name is configured to read the firstname, lastname and userid. firstname and
    lastname variables are mapped to User definition and user Id is mapped to Process Data. In this setup I am not getting the
    User Id value from process data, it is empty.
    Is this a bug with OIM 11g R2 or I need to do it differently in order to read the user Id that user has entered in the
    request form for populating the common name?
    Thanks

    Ghulam Yassen wrote:
    How to get USER_ID and IP_AddressWhy exactly do you need this data and what do you plan to do with it?
    The data is not reliable and trustworthy. IP addresses can easily be spoofed (a few seconds if you know what to do and how to do it). Also, IP addresses are not static. Users also do not use the same network device to access the database - different devices will have different IP addresses.
    The o/s user on the client is supplied by the client driver. This can also be spoofed.
    The user can also use a virtualised device - which means that recording the IP and o/s user seen from the server side, is pretty much useless and meaningless.
    So if this data is intended to be used for auditing for example - it would be pretty suspect data to use for that purpose.

Maybe you are looking for

  • Moving an image is VERY jerky on Photoshop CS4

    I am using a Mac Pro 12 core with 16 GB of Ram, and a Nvidia Quadro FX 4800 video card. When I make updates to my images or move the image around the page, there is a significant delay when viewing the change. Movement is very jerky.  This is incredi

  • Album song order

    The songs are listed out of order for some albums, how do I get them listed in the numerical order they are supposed to be to match the album?

  • Duplicate Title of Category | Calendar in Blog

    Dear all, I did the SEO audit for my website: www.privilegefloor.com & www.lotuslancresort.com and get some SEO errors to fix. There are two problems that I cannot fix are: - Duplicate Title of Category page : The title of any category is automatical

  • MiniDisc : Connect Digital or Analog for best transfer?

    I'm not the Smithsonian or BBC, but I still want to preserve some demo tracks from a stereo Minidisc for the future. That is, if need to tweak the track later in 2010, be sure now in 2006, to have digitized it well enough. If connect digital via opti

  • Can anybody send ALE/IDOC sample steps fot MATMAS?

    Hi friends, Can anybody send ALE/IDOC sample steps fot MATMAS?