Get IP from request caller

We are working on a POC based on user management and Fusion 11.
We want to include an audit service which stores the following data from the external request:
1. client application (ex: browser, SOAP UI or any other application)
2. IP caller
3. operation / port type requested on exposed service
Can anyone address us on how to retrieve these data from the external service request?
Thanks in advance
Alessandro

First of all, thanks for your help.
Second, I've investigated deeper on XPATH and Mediator's Assign values function. I guess this was where you tried to point me.
Although I still haven't managed to work with the expression you've given me, I was wondering how I can access those properties (service, transport) from the Expression builder GUI.
The error I get from the Application server is
SEVERE: Exception while processing deferred message due to ORAMED-02103:[Invalid assign expression]Invalid assign expression "<copy target="$out.LogCollection/top:LogCollection/top:Log/top:whichClient" value="$inbound/ctx:transport/ctx:request/tp:headers/http:User-Agent/text()" xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/Audit" xmlns="http://xmlns.oracle.com/sca/1.0/mediator"/>
".Possible Fix:Check assign xpath expression for any syntax error. If there are any syntax error, correct the xpath expression.
22-Nov-2009 22:10:19 racle.tip.mediator.common.listener.DBWorker process SEVERE: Enququeing to Error hospital successful...
Do I have to configure something on the Mediator component, such as an external schema?

Similar Messages

  • Problem in getting attribute from request.

    HI
    I have a JSR 168 portlet which was earlier running in tomcat 6 and liferay...i'm now migrating that in webcenter portal framework 11g.
    after migration when i run it ... i have set some attribute in actionRequest class of processAction method in my portlet and then i 'm getting it in jsp from request(explicit varriable) varriable....
    this was working earlier in liferay/tomcat but somehow it's not working here ... i didn't change any code here... apart from some lspecific ib/class from liferay to oracle.
    please suggest
    thanks

    I think you are mixing some things...
    First of all, if you are creating basic JSP portlets, you don't need to use the ADFPortletBridge. This is only needed when you develop JSF portlets and are using the ADF technology.
    Second of all, you are switching from JSR 168 to 286. The standard has some changes but i don't really know if these changes affect the lifecycle of the portlets in a way that the setAttribute will be broken...
    There are a lot of changes in the parameters so IPC is made easy with JSR 286.
    Maybe you cna elaborte some more about the specific case and we can provide a valid workaround?

  • Help with getting values from request. Very Strange!!

    Hello,
    My very strange problem is the following.
    I have created three dynamic list boxes. When the user select
    the first list box, the second becomes populated with stuff
    from a database. The third becomes populated when the second
    is selected. Now, I have used hidden values in order for
    me to get the selected value from the first listbox. The
    following code is my first listbox:
    <SELECT NAME="resources" onChange="document.hiddenform.hiddenObject.value = this.option [this.selectedIndex].value; document.hiddenform.submit();">
    <OPTION VALUE =""> Resource</OPTION>
    <OPTION VALUE ="soil"> Soil </OPTION>
    <OPTION VALUE ="water"> Water </OPTION>
    <OPTION VALUE ="air"> Air </OPTION>
    <OPTION VALUE ="plants"> Plants </OPTION>
    <OPTION VALUE ="animals"> Animals </OPTION>
    </SELECT>
    I use the getRequest method to get the value of hiddenObject.
    At this time I am able to get the value of hiddenObject to populate
    the second list box.
    But, when the user selects an item from the second list box
    and the second form is also submitted,
    I lose the value of hiddenObject. Why is this??
    The code to populate my second listbox is the following:
    <SELECT NAME ="res_categories" onChange="document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value; document.hiddenform2.submit(); ">
    <OPTION VALUE ="" SELECTED> Category</OPTION>
    Here I access a result set to populate the list box.
    Please help!!

    Form parameters are request-scoped, hence the request.getParameter("hiddenObject"); call after the submission of the second form returns a null value because the hiddenObject parameter does not exist within the second request.
    A solution would be to add a hiddenObject field to your second form and alter the onChange event for res_categories to read
    document.hiddenform2.hiddenObject.value=document.1stvisibleformname.resources.option[document.1stvisibleformname.resources.selectedIndex].value;
    document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value;
    document.hiddenform2.submit();You will then come across a similar problem with your third drop-down if indeed you need to resubmit the form...
    A far better approach would be to create a session scoped bean, and a servlet to handle these requests. Then when the servlet is called, it would set the value of the bean property, thus making it available for this request, and all subsequent requests within the current session. This approach would eliminate the need for the clunky javascript, making your application far more stable.

  • How to get org_id from request?

    Hello all,
    Any ideas on how I can get the org_id from a concurrent_request id?
    To put it a little differently, I have a concurrent_request_id, and would like to know which org it was submitted from?
    Thanks,

    Forgive me as I am trying to be more specific with out being ambiguous, but here goes...
    Example data would be request_id of 12345678.
    And the expected output would be org_id.
    I would like to do something like
    "select org_id from fnd_concurrent_requests where request_id = 12345678"
    But clearly that is not an option. So again I am looking to see what org the request was submitted from?
    Thanks in advance.

  • Getting information from SOAP call in R/3 using RFC adapter

    I have following scenario:
    R/3 (RFC)> XI (SOAP)> WebService
    I want to know within the R/3 if the call to the webservice fails (Server not available, etc), that there is a problem.
    Is there any exception code or way to fill the exception with a return code? I have tried to map a exception, but it will only be created, if the WS-Application creates the exception not if an error occurs in XI or the AF.
    Best regards
    Helmut

    You can capture exception from R/3 and send it to external WebService. You need to add a Module  to your SOAP Communication Channel:
    Module Key: SOAP
    Parameter Name: XI.SendMode , value = http
    Module Key: SOAP
    Parameter Name: XI.TargetURL , value = http://XXX(your url to the XI engine)
    Module Key: SOAP
    Parameter Name: XI.User , value = <username>
    Module Key: SOAP
    Parameter Name: XI.Password , value = <password>
    Once you do this you can get R/3 Exceptions passed to your w/s.
    Thanks
    Ashish

  • Getting bean from request scope

    Hi,
    I am new to JSF and unfortunately I am running into a problem that I am not entirely sure about. I look in other forums and what I am doing looks right but I am not getting the desired result.
    In my faces-config.xml file I have a managed bean defined as follows:
    <managed-bean>
        <managed-bean-name>LogIn</managed-bean-name>
        <managed-bean-class>lex.cac.tables.RefUsers</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>I then have a log on page with a form which contains a user name and password field. The tags are defined as
    <h:inputText immediate="false" value="#{LogIn.username}" /> (for username) and
    <h:inputSecret immediate="false" required="true"
                                   value="#{LogIn.password}" /> (for password)
    When I submit the form the web app navigates to a jsp page which attempts to do validation against a database.
    The first step though is retrieving the object which is suppose to be in request scope.
    I attempt the following but I get back null which causes a NullPointerException. Why can't if find the bean?
    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    Map params         = ec.getRequestParameterMap();
    params.get("LogIn");  //null is returned hereWhat am i doing wrong? Can someone please help.
    Thanks in advance,
    Alex.

    Something like that:
    FacesContext fc = FacesContext.getCurrentInstance();
    RefUsers LogIn = (RefUsers)fc.getApplication().createValueBinding("#{LogIn}").getValue(fc);
    String username = LogIn.getUsername();
    String password = LogIn.getPassword();

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • Clearing variable from Request object

    Hi everyone,
    After getting value from request.getParameter("var"), I want to clear this "var" variable from request scope. So that in the next coming statements if i again call the same request.getParameter("var") statement than it must return null
    So how to handle this issue of clearing certain variable from request scope or flushing the whole request object

    I don't know what you are trying to do but it sounds confused. I would suggest you read the parameter once, at the beginning of the code. Store it in a variable and use that variable as necessary. If you still need help then would you explain what you are trying to achieve here.

  • While Browsing SSAS 2005 Cube Getting Error " The following system error occurred from a call to GetOverlappedResult for Physical file: Logical file: '' : Insufficient system resources exist to complete the requested service."

    Hi Guys,
    When I try to Brows Cube (SSAS 2005), I get below error (Sometimes):
    TITLE: Microsoft SQL Server 2005 Analysis Services
    Server: The operation has been cancelled.
    The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q31.0.prt\674.fact.data', Logical file: '' : Insufficient
    system resources exist to complete the requested service. .
    The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q23.0.prt\385.fact.data', Logical file: '' : Insufficient
    system resources exist to complete the requested service. .
    BUTTONS:
    OK
    and I think due to above Error, Index on a Particular Attribute (EMP_ID) of a DIMENSION DIM_EMP is getting dropped from FEW of the Partitions (Folders) and started getting new error:
    TITLE: Microsoft SQL Server 2005 Analysis Services
    File system error: The following error occurred while opening the file '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q31.0.prt\688.DIM_EMO.EMP_ID.fact.map'.
    BUTTONS:
    OK
    I followed the above path and did not find file 688.DIM_EMO.EMP_ID.fact.map in folder PARTITION_2013Q31.0.prt. Once I rebuild the Index (ProcessIndex) for this partition, I am able to See file 688.DIM_EMO.EMP_ID.fact.map.
    But again when next time I get error "Insufficient system resources exist to complete the requested service", Then 688.DIM_EMO.EMP_ID.fact.map will be dropped and will not be available in folder PARTITION_2013Q31.0.prt.
    Anyone had similar issue. Could you please share your experience and resolution if any.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi Shiven,
    In your scenario, the issue occur at sometimes, right? Base on my research, the issue can be caused by that calculation estimate exceeded available memory. Possibly due to possible number of dimension members and sizes of keys. And 32bit environment didn’t
    allow for any expansion to the SSAS memory space.
    To avoid this issue, please try to use userva to fine tune the 3GB setting down to 2900 since /3GB is the likely
    cause (has been for most other customers who encountered the same problem before). The KB Articles below discuss that setting in detail.
    How to use the /userva switch with the /3GB switch to tune the User-mode space to a value between 2 GB and 3 GB
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to get binding variables from request

    We are trying to use html-db to develop an application which need to get values from user request to use in the queries, i.e. we will have pages depend on several binding variables and the value of these variables will be provided by the user through get/post request. Because the request will be initialed by another application so to use a form to collect the values is not an option.
    I am a html-db newbie. Does anyone here know how to do that?

    you're right in thinking this is a bit of a newbie html db question. it's a pretty straightforward matter to set up a report in html db that runs off of bind variables that can be set from a URL. you can see a pretty simple example on the first page of our "Sample Application" that's available to install into your workspace. try taking a look at that to see what i mean. you can install the Sample Application by clicking the "Review Demonstration Applications" link that's available right after logging into htmldb.oracle.com. that resulting screen lets you create (or re-create) the Sample App in your workspace. once it's installed, take a look at how the report on page 1 calls the first report on page 201. that report on 201 is dependent on a bind variable, :P202_CATEGORY, that's set from the URL. this particular URL is generated from the report on page 1, but it could just as easily have been generated from your other application. when you look at this example, the two key points to pay attention to are the 1) syntax used in the URL to set the bind variable (which is explained in our online help at http://htmldb.oracle.com/i/doc/mvl_fund005.htm#sthref357) and 2)the way in which that bind variable is referenced in the first sql query region on page 201. take a look at those when you get a chance, and let us know if you have further questions.
    thanks,
    raj

  • How o get the SOAP request from webmethod?

    Hi,
    I want to get the full request (what i sent from client application) on the @webmethod of my webservice.
    Immediately i want to forwward the same request to another application which is ready to receive as HttpRequest.
    How could i do that?

    Hi,
    Thanks for the reply.
    I tried the code in my application, but it always throws NullPointerException
    while executing this line,
    MessageContext msgCtxt = wsContext.getMessageContext();
    My code is,
    @WebService(name = "FirstService")
    @SOAPBinding
    style = SOAPBinding.Style.DOCUMENT,
    use = SOAPBinding.Use.LITERAL,
    parameterStyle = SOAPBinding.ParameterStyle.WRAPPED
    public class MyFirstService
         WebServiceContext wsContext;
         @WebMethod
         public void getMehod()
              try
                   System.out.println("1");
                   MessageContext msgCtxt = wsContext.getMessageContext();
                   System.out.println("2");
                   HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST);
                   System.out.println("3");
                   System.out.println("REQUEST = " + req.toString());
              catch(Exception e)
                   System.out.println("Exception : " + e.toString());
    If i call this method from SoapUI,
    the output is,
    INFO [STDOUT] 1
    INFO [STDOUT] Exception : java.lang.NullPointerException
    I don't know where i did the mistake...
    Waiting for your reply

  • How to get useful data from request?

    Hello.
    I am looking for creating a management tool for a web site. All I want is that is there any ready to use API or package or open source project for retrieving user�s information? I just mean that is there any easy to use way in java to get useful data from a client (for example location, his or her system configuration and information �).
    Thanks.

    If you dump all the data from request (see the javadoc, and especially the "header methods" ) you'll see the data you can get are quite simple.
    The only thing you can try to rely on are ;
    - the IP address from the sender (when reversed to DNS, you can sometime use the tld to locate the country it comes from. Yet, you'll get many .com name, so it's not that significant. it may also give you the IAP used). Note that if the user is using a proxy, it's the proxy IP that you'll collect
    - the User-Agent header : from this, you can guess the OS and the browser used
    - the Referer header : usefull to get where your user comes from (where they found a link to your site)
    - the Cookie header : if you're using a servlet container with session id stored in cookie, you should see the Cookie header appear on the second request to your site. That helps finding out wether your user accep cookie or not (from a server point).
    Besides these, i don't think you can get any other useful data without asking your users on a form. Note that it's the client that decides to send Referer, User-Agent or Cookie headers. Those are not mandatory to the Http Protocole and some browser allow their user to fool their content (butmore than 90% of the widespread browsers don't)

  • Get  max100 requests from request manager

    Hello!
    I'm requesting requests for a user from the RequestManager over the ContentServices-API.
    Now I've the question if there is possibility to get maximal 100 requests? I've tried to set the Options.RETURN_COUNT and give that to the request manager, but that doesn't work. I only get an ParameterError.
    Any ideas?

    fnd_concurrent_requests has responsibility_id. You can use this column to determine the ORG_ID.
    However this may not always correct, as user may change the profile option after running the request. But in your environment if this profile option is not changed after it first assigned to responsibility then following sql should give you ORG_ID from concurrent request.
    select fnd_profile.VALUE_SPECIFIC('ORG_ID',null, RESPONSIBILITY_ID ,null,null,null) from fnd_concurrent_requests where request_id = <your_request_id>
    HTH
    Dinesh S.

  • Getting values from a function module called in a WDA method

    Friends,
    I am trying to execute a function module from WDA.
    I have created a service call for the function module. The function module takes values from the user, looks up the corresponding values of another field and returns the values in an internal table.
    I am using the "Method Call in Used Controller" of WD Code wizard to call the function module.
    When the event handler method containing the call to the function module is executed, nothing happens.
    I am not sure how to pass values to the function module and to get the return values from the function module.
    I am new to using function modules from WDA. Please help me out.
    Thanks and Regards.

    Rashmi,
    Is the function module intended to collect input data from the UI and process it? - Yes
    If yes, then the input (importing parameter) to the Function Module is a table of values (which should be ideally from the context mapped to the Table UI Element). - The importing parameter is a single value NOT a table and is mapped to the view context.
    Now this table UI Element is bound to the view controller context , which in turn is mapped to the component controller context. And you are indeed being able to read the value of this internal table in the component controller method where the function module is being called by means of get_static_attributes_table (Is this right? - Yes, I am able to read the table of values that is passed from the component controller view to form view context by using get_static_attributes_table.
    Or are you being able to read it in the event handler method of the view controller and not being able to read it in the component controller method) -
    The function module takes a single value as import parameter and returns a table of values as return value.
    It works fine when no importing parameter is being used and returns the table of values that is getting passed from component controller context to form view context when i am able to read it using get_static_attributes_table.
    Now the question is: how to pass the import parameter value to the function module. I assumed since the importing parameter is a context node (like the return values are), i should set the value ( captured when the user enters the value in the form) to the importing parameter context attribute using set_attribute method. Since it is mapped to the component controller context, i assumed it will get passed and the method will take it as input parameter.
    Let me know if my assumptions are correct regarding passing the import parameters and what is missing here.
    Thanks and Regards.

  • Is it possible to get iPhone audio (telephone calls) from Lightning connection? Music works, but calls switch to internal or extenral speakers, not lightning (for e.g. docking station, car...)!

    Is it possible to get iPhone audio (telephone calls) from Lightning connection? Music works, but calls switch to internal or extenral speakers, not lightning (for e.g. docking station, car...)!
    I want to get the audio out of the lightning connection (the way you get audio when you connect it to a dock). It works properly with music, but when making a telephone call, it switches to the internal speraker. You can change to the external spekers, but you cannot select another audio out. It's also possible to get the telephone audio from the analogue connection, but that's not what I want. I want telephone audio from lightning...
    Would be so great if anybody has an idea

    I must also say that the second update ruined my Lumia's battery life.
    With the first (out-of-the-box) update the phone usually had 30 percent of battery after a quite hard day (e.g. more than an hour of talking via bluetooth handsfree, more than two hours of listening to the music via bluetooth, more than an hour of browsing via wifi, and reading hundreds of e-mails via two mail accounts). I never managed to discharge it after one day (e.g. 14-16 hours) of continous use, no matter how much I talked, listened and browsed.
    Now, with the secod update, it discharges to 20% after 12 hours of laying still almost without use (30 mins of music, less than 15 mins of talking and nothing more), and discharges completely with the usage pattern described above.
    Did the second update contain some Android code?

Maybe you are looking for

  • Skip Level Dimensions

    Dear all We have a client with an interesting problem. I was wondering if the group could offer any feedback on this design question, where we think it involves a concept called 'skip levels'. The client is using Oracle 9.0.2 with their data mart cub

  • Macro issue while running in the background

    Hello All, <b>Case 1:</b> Selection of aggregation level (only 9AMATNR) When we run a Macro in the background (with an aggregation level of only 9AMATNR), the results for the Macro are looking good at the product level (for e.g. product  for all loca

  • JSP + MySQL + Linux + Tomcat4.1 Chinese display problem

    Hello all! I have a problem to use JSP to display Chinese which is read from MySQL database. It works well under Windows XP. But when I move the code to Linux. The Chinese can't be displayed any more. The only way to display Chinese correctly is to r

  • Skipping songs and only letting me put 300 songs onto my 4GB nano

    On my 2nd generation nano ipod, it will play a couple songs and then skip a lot. Certain songs will skip and certain songs will play. any suggestions? My other problem is it will only let me hold about 300 songs on my 4GB nano. Right now i have 326 s

  • How to Perform Imperial to Metric Conversions in Mapping

    Hi All, I have the conversions in mapping from  Imperial to Metric Conversions.( Ex: kg's to LB's and ect...) Do i need to follow any standard conversion table or can i perform simply in mapping with calculations How do i proceed for this, could you