How to access request information in a webservice implementation (10.1.3)

Hi,
I have created a java webservice from WSDL in JDeveloper 10.1.3.4.
In the Impl class I would like to access HTTP request information.
Can I do this in a direct way?
If not, I have made a custom javax.xml.rpc.handler.Handler (by extending GenericHandler)
In this class I can access the information that I need from the MessageContext that is available there.
How can I get information from the Handler to my Impl?
Groeten,
HJH

Found the answers:
1. The service Impl should implement the javax.xml.rpc.server.ServiceLifecycle interface.
In this way you get access to a javax.xml.rpc.server.ServletEndpointContext, which gives access to amongst others javax.xml.rpc.handler.MessageContext, which gives access to request information
2. In the Handler it is possible to store information on the MessageContext, which can be accessed in the service Impl (see 1.).
Groeten,
HJH

Similar Messages

  • How to hide "Request Information" in FYI?

    Hi all,
    Please tell me how to hide "Request Information" in FYI. I know we can do it through Workflow. But i created a FYI using AME. Is it possible to do it on functional level.
    Regards,
    Pradeep

    Found the answers:
    1. The service Impl should implement the javax.xml.rpc.server.ServiceLifecycle interface.
    In this way you get access to a javax.xml.rpc.server.ServletEndpointContext, which gives access to amongst others javax.xml.rpc.handler.MessageContext, which gives access to request information
    2. In the Handler it is possible to store information on the MessageContext, which can be accessed in the service Impl (see 1.).
    Groeten,
    HJH

  • How to access request attributes in a portlet?

    Hello Experts,
    request.getParameter() in the reset method works fine in a pageflow but doesnt work in a portlet or a portal and always returns null for all the attributes/parameters,is there any special way of getting the request attributes in a portlet..any wrapper class around the original HttpRequestObject..Please let me know.
    Thx!

    Found the answers:
    1. The service Impl should implement the javax.xml.rpc.server.ServiceLifecycle interface.
    In this way you get access to a javax.xml.rpc.server.ServletEndpointContext, which gives access to amongst others javax.xml.rpc.handler.MessageContext, which gives access to request information
    2. In the Handler it is possible to store information on the MessageContext, which can be accessed in the service Impl (see 1.).
    Groeten,
    HJH

  • How to access request content using MultipartMessage Object

    I want to take a file from the Client and upload it as a FileInputStream on the server.
    I have a simple form as follows:
    <form action="scan" name="scan_files" method="post"
    enctype="multipart/form-data">
    <input type="file" name="file1">
    <input type="file" name"file2"/>
    <input type="Submit" name="insert_scaned" value="Upload"/>
    </form>
    In my servlet I tried to use the com.sap.engine.services.servlets_jsp.lib.multipart.MultipartMessage
    class to parse the form information.
    protected void doPost(
    HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    MultipartMessage multipartMsg =
    (MultipartMessage)request.getAttribute("com.sap.servlet.multipart.body");     
    if (multipartMsg != null) {
         multipartMsg.addFormParametersToRequest();
    The help said that once this is done the form information should be accessible via the
    request getParameter() method. However, I can't seem to get it working?
    How can I access the file so that I can parse it into a FileInputStream?
    Thanks.

    Hi Mat,
    first, welcome on SDN!
    About your question:
    From the APIDoc - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/j2ee%20engine/com/sap/engine/services/servlets_jsp/lib/multipart/multipartmessage.html - I would expect this as a solution:
    MultipartMessage multipartMsg = (MultipartMessage)request.getAttribute(MultipartMessage.MULTIPART_BODY_KEY);
    if (multipartMsg != null) {
      for (int i = 0; i < multipartMsg.getCount(); i++) {
        MultiPart mp = multipartMsg.getBodyPart(i);
        // mp.getInputStream, mp.getBody() or whatever you need
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • My iPhone was stolen and I need to access my information including contacts, texts and camera roll from icloud urgently via my desktop computer...how do I do this?

    I am not able to figure out how to access this information from my desktop, is this possilbe?
    Thanks

    Was your iPhone or iPad stolen? You posted in the iPad forum.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
     Cheers, Tom

  • How to get Requester Login information into the request dataset validator

    Friends,
    I need to check whether the requester is part of a group or not before submitting the request. If not I need to throw an error.
    Can you please let me know how to get Requester information.login into the request validator?

    Hi Thiago,
    I am getting the requester id from the requestData in the request data validator. Here is my full code for your reference.
    Bikash - I even tried with RoleManager service but still same error.
    public void validate(RequestData requestData)
    throws InvalidRequestDataException {
    tcUserOperationsIntf UserOppsIntf =Platform.getService(tcUserOperationsIntf.class);
    try
    tcResultSet result=UserOppsIntf.getSelfProfile();
    result.goToRow(0);
    String requesterID = result.getStringValue("Users.User ID");
    String userKey=result.getStringValue("Users.Key");
    System.out.println("Request Login:"+requesterID);
    if (isMemeber(getOIMGroupKey("testGroup"),userKey))
    System.out.println(requesterID+" is a Member");
    else
    System.out.println(requesterID+" is not a Member");
    String reason = "Note[REQUEST_SUBMISSION_ERROR].text:You are not authorized to submit this request.";
    throw new InvalidRequestDataException(reason);
    catch(Exception e) {
    e.printStackTrace();
    private String getOIMGroupKey(String GroupName) throws Exception
    String groupKey="";
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    HashMap searchFor = new HashMap();
    searchFor.put("Groups.Group Name", GroupName);
    tcResultSet results = groupInstanceOps.findGroups(searchFor);
    for (int i = 0; i < results.getRowCount(); i++) {
    results.goToRow(i);
    groupKey = Long.toString(results.getLongValue("Groups.Key"));
    System.out.println("GroupKey:"+groupKey);
    return groupKey;
    private boolean isMemeber(String groupKey,String userKey) throws Exception
    boolean member=false;
    try
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    long grpLong = Long.parseLong(groupKey.trim());
    tcResultSet grpResultSet = groupInstanceOps.getAllMembers(grpLong);
    for(int i=0;i<grpResultSet.getRowCount();i++)
    grpResultSet.goToRow(i);
    long usrKeygrp = grpResultSet.getLongValue("Users.Key");
    if (usrKeygrp==Long.valueOf(userKey))
    member=true;
    break;
    catch(Exception e) {
    e.printStackTrace();
    member=false;
    return member;
    }

  • Access DataGridColumn information

    Hi
    Does anyone know how to access DataGridColumn information?
    I have used an XML file as data provider and used LabeFuncion to display information in a DataGrid and  DataGridColumns.
    Say I want to compare beetween several values displaying in the DataGridColumns without using the XML file, using only the DataGridColumns
    information.
    how do I do that?
    Is possible?
    Thanks

    A DataGrid has a columns property, which is an Array filed with instances of DataGridColumn.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/DataGrid.ht ml#columns

  • HT5622 on ituneshow to access my information that i had on one of my other iphones that i backup but forgot that phones password

    how to access my information that i had on one of my other iphones that i backup but forgot that phones password

    Well the iPod is supposed to be synced from YOUR iTunes music library, if you used other means to put music on there then the iPod is going to sync to only what's on your itunes music library when you connect it.
    You need to put the files into itunes.
    Far as your other issues, sounds like the drive is dying.
    Check this support article for assistance
    https://support.apple.com/kb/TS2380
    http://reviews.cnet.com/8301-13727_7-10329819-263.html
    search online for that number.

  • How do I configure "remote access request"?

    Hi there,
    I am missing the option in ARD to send a remote access request to a client each time an admin wants to take control of his computer. Is it possible to configure that and does someone know how? I searched a while but didn't find anything...
    Thanks for any help.

    I just found out, that it might be possible doing the following:
    Select an already to a list added client computer in this list, show "Information" (right click) and click on "Edit" in the attributes-Tab (called "Attribute" in the German localised Software). There you can delete the account information (user and password) you have entered adding it to the list. With this done, any further connection to the client reveals a dialog asking you if you want to ask for the permission.
    Maybe there's an easier way? But this works for me so far.

  • User Management - How to submit Additional Access Request on behalf of employee

    User Management - how can we configure "Access Requests" so that Managers can submit Additional Access Requests, or Initial Access Requests on behalf of employee?
    Have looked at "Manage Proxies" but this seems to allow access to everything - not ideal
    Please assist with knowledge and/or experience
    Many Thanks
    Me

    Additional Access Request Registration Process is complete
    Giving access to User Management to users is not an option.
    What I would like is the scenario below - is this achievable?
    When employee goes to iProcurement > Preferences > Access Requests > Request Access | they can submit an access request on behalf of themselves.
    Would like an option where a manager, navigates to same UI as above, has option to choose a subordinate, and request additional access on their behalf
    The table UMX_REG_REQUESTS has columns REQUESTED_FOR_USER_ID & REQUESTED_BY_USER_ID - so it seems they don't have to be same person (manager can submit request on behalf of an employee)
    Can this be achieved through UI for "Access Requests"?

  • HOW TO CONFIGURE MANAGER or APPROVER USER IN ACCESS REQUEST MANAGEMENT TO APPROVE OR REJECT REQUEST

    hi sap gurus,
    i configured grc 10 system successfully. I created one user: GR_AR_APP001 and assign following roles:
    SAP_GRAC_ACCESS_APPROVER
    SAP_GRAC_ACCESS_REQUEST_ADMIN
    SAP_GRC_FN_BASE
    SAP_GRC_FN_NUSINESS_USER
    and I maintained GR_AR_APP001 in access control owners as "POINT OF CONTACT", "SECURITY LEAD" and "WORKFLOW ADMINISTRATOR"
    but when i am creating access request for new user and defining MANAGER under user details tab as GR_AR_APP001.
    the user GR_AR_APP001 is not receiving any request for APPROVE or REJECT in his WORK INBOX.
    can u please guide me how to configure APPROVER or MANAGER to approve or reject request.
    I will be very much thankful if you guide me successfully.

    Hi Colleen,
    thanks a lot for your time.
    PIC1: I created one user: GR_AR_APP001
    and assigned all the GRC ROLES.
    PIC2: I assigned owner type to GR_AR_APP001 user : POINT OF CONTACT, SECURITY LEAD and WORKFLOW ADMINISTRATOR in NWBC ACCESS CONTROL OWNERS
    PIC3: I created one EUP 980 (copied from default EUP)
    PIC4: I maintained default manager as GR_AR_APP001 user in 980 EUP
    PIC5: I selected SAP_GRAC_ACCESS_REQUEST process id
    PIC6: I created one agent id as ZGRAC_MANAGER11 in which I added approver user id: GR_AR_APP001
    PIC7: I saved agent id
    PIC8: I added agent id as ZGRAC_MANAGER11 in stage5 in manager stage.
    PIC9: I saved
    PIC10: I maintained EUP 980 (in which I configured manager as GR_AR_APP001 user) in stage 5 task settings
    PIC11: Maintain Route Mapping, I clicked on next
    PIC12 and PIC13: I saved and activated.
    After this process I created one request for new account and selected the manager as GR_AR_APP001 and one request is created with request no 9000000030.
    now I logged into system by user GR_AR_APP001 and checked, there is no request under his work inbox.
    please guide me at least one procedure, how to receive request in approver work inbox so that I can learn other procedures to configure approver as per our organization requirement.
    thanks for your support Colleen.

  • Why are there so many more choices on the USA iTunes Store? Surely having an iTunes account should let you access all itunes availability the world over? Also how do you request films/tv series to the UK itunes?

    Why are there so many more choices on the USA iTunes Store? Surely having an iTunes account should let you access all itunes availability the world over?
    Also how do you request films/tv series to the UK itunes? There's tv series I'd like but they're incomplete like The Batman &amp; Xena Warrior Princess. And films theta aren't available for download but you can purchase in a store like HMV?  Apple isn't doing itself any favours by secluding countries by their store. They'd make billions if you could just select the iTunes Store you want to search &amp; purchase from just by signing in! If anything what they're doing is putting themselves into a corner, other companies like Samsung &amp; HTC are already on too of them for innovation &amp; ease of use. The people they're attracting are predominantly existing Apple users not new customers. What do you guys think?

    It's not Apple's choice, they can only sell a particular item where the content provider/rights-holder has granted them a license to sell them. Content is licensed by the rights-holders to Apple on a country-by-country basis, each country therefore has to have its own store, and you have to be in a country to use its store - they want control over where their content is available.
    You can try requesting that an item be added to the UK store via this page, but unless the rights-holder agrees to then Apple won't be able to sell it here : http://www.apple.com/feedback/itunes.html

  • How to access values in process request

    Hi guys,
    Wondering if some one could shed some light on the process of getting values in PR. The situation is that i have linked two pages and both have dateFrom and dateTo fields, the values of the fields are being copied across to the other page automatically. I would like to understand how.
    And the other is How is, how to access those values in Process Request. I want to use those dates as criteria for populating data when the user first opens the page.
    Any insight would be highly appreciated
    Regards,
    Shoaib.

    The situation is that i have linked two pages and both have dateFrom and dateTo fields, the values of the fields are being copied across to the other page automatically. I would like to understand how.
    If you have linked the pages, you would know how the values from one page is being transferred to the other page, this cannot happen automatically, you either must have 1. Passed them through URL
    2. Passed them through Session
    3. Have the same VO in both the pages and retaining the AM from P1 to P2.
    4. Requering the DB in P2 after saving the values in P1
    There could be number of ways you have done it.
    And the other is How is, how to access those values in Process Request. I want to use those dates as criteria for populating data when the user first opens the page.
    Depending on how you passed the values from P1 to P2, the method of getting these values in P2 PFR would vary, but in most cases pageContext.getParameter("paramname") should workThanks
    Tapash

  • How to access the webservice in portal component

    hai
         how to access the webservice in portal component.
         anyone knows give the solution
    Rds
    Shanthakumar

    Hai
    Please check this link.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/connectivity&
    Regards

  • How do you set up your iphone so when you connect to another computer you have to enter a password before accessing the information?

    Hi
    I just want to know how you can set up your iphone so when you connect to another computer you have to enter a password before accessing the information? My friend connected hers to my computer and it asked for a password so I know its a function.
    I have a phone password enabled so its not that, any help would be great.

    The Passcode Lock prevents syncing the iPhone with iTunes or accessing any data on the iPhone when the iPhone is connected to another computer different from the computer being used for syncing the iPhone.

Maybe you are looking for