Automate population of DMZ WebCache

I have writen a package that makes specific http requests to our DMZ server using the SYS.UTL_HTTP package functionality. With the aim of populating our DMZ server webcache after a batch load of new data.
I have noticed the http request made by the UTL_HTTP package is not logged the same as an identical http request made by a Browser in the http log. Below is a copy of the log tail for each
FROM UTL_HTTP package:
SELECT utl_http.request('machine_name/JournalDetail.html?PubID=104&Precis=SC')
FROM DUAL;
in which the following is logged in the http log on the DMZ server:
[IP ADDRESS]- - [14/Feb/2002:11:17:34 +0000] "GET /JournalDetail.html?PubID=104&Precis=SC HTTP/1.0" 200 34008 "-" "-"
FROM IE:
URL = http://machine_name/JournalDetail.html?PubID=104&Precis=SC
in which the following is logged in the same http log:
[IP ADDRESS] - - [14/Feb/2002:11:18:08 +0000] "GET /JournalDetail.html?PubID=104&Precis=SC HTTP/1.0" 200 34008 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
Webcache doesn't seem to recognise the UTL_HTTP http request as such, even though it executes successfully from my package. It doesn't match it against the corresponding configured webcache rule. Has anyone done something like this?...Am I on the right track here?... how else may it be possible to send cachable http requests from the database (preferably a trigger), to the DMZ webcache in order to force new data to be cached?

here is the other relevant line from the event log
Insertion not done for /blah.html?ID=104. Reason: Response and request cookies don't match. Shaun,
I presume you are using Web Cache 2.0.0.x as in iAS 1.0.2.2 release.
What you have encountered is an expected behaviour in Web Cache 2.0.0.x. Here is what happened. This JServSessionIdawg cookie, which seems to be a JServ session cookie is set by JServ if your request does not have such a cookie. Your UTL_HTTP package obviously does not send such a cookie, but your browser does since it caches cookies.
Now what does that mean to Web Cache? In 2.0.0.x and earlier versions, Web Cache is "protective" in this case. If it sees a cookie set from the response but not in the request, or if the cookie values are different in the request and in the response, it would consider that this request has caused some state changes at the backend server, so it would not cache the response, thinking the request has side effects. There is an exception to this. If this cookie is defined as a session in the Session Definition, then Web Cache will only consider the response non-cacheable if the request does not have the cookie but the response does. In other words, if the request and response merely have different values in this "session" cookie, Web Cache does not care.
So, so solve your problem, since this cookie value probably changes as the session expire, you can send the correct cookie value from the request in UTL_HTTP. What you can do is, define this cookie as a "session", which you probably are already, and then, send this cookie with any cookie value in your UTL_HTTP request. If this random cookie value won't cause your application to freak out except for a new cookie value, then the response will be correctly cached in Web Cache.
By the way, I thought you might be interested in knowing that we have disabled this implicit protectoin feature in the upcoming iAS 9.0.2, but it oftens causes problem under the cover. If you want such protection, you can still do that by setting Session-Related Caching Rules (force request to be cacheable, non-cacheable based on the existing of cookies in the request).
Hope this can solve your problem. Good day!

Similar Messages

  • Payment Method automatic population in FB60,FB65,FBV0,FV60,FV65 and MIRO

    Hi,
    We have a requirement of automatic population of payment method from vendor master in transaction codes given.
    Do we have any userexit,BADI for this purpose?
    Regards,
    Praveen

    Dear Praveen,
    You could think to put the payment method into the term of payment by OBB8.
    And then put the payment terms into Your vendor master data.
    I hope this helps You.
    mauri

  • Assignment field being automatically populated in Vendor Credit Memo

    Dears,
    While posting Vendor Credit Memo with Reference Invoice (field Inv.Ref under Payment tab) the Assignment field (field Assign. under Details tab) is being automatically populated with assignment value from the referenced invoice.
    Is there a way to disable automatic Assignment field population?
    Thanks in advance,
    Robert

    Dears,
    No sorting keys exist for GL Master Vendor reconciliation account and still assignment is being copied (Data was copied
    Message no. F5343)
    Substitution is not an option as it's being done when posting, and not at the moment of invoice creation.
    Thank you for any ideas.
    Best regards,
    Robert

  • Automatically populating a Form from data stored in Access

    Hi,
    I need help automatically populating a form from data stored in Access. The form needs to have specific fields that are updated from an Access database. I want to be able to enter a site number and have the subsequent list of information (approximately 35 pieces of data) populate. I DO NOT want to update the Access database via the form. The form is for quick viewing and documentation only, not data entry. Currently I've been doing this with VB in Access which exported the data to a Word Document which was then saved as a PDF. It seems easier and less troublesome to go directly to the PDF form, but I can't figure out how!
    I have already connected my database to the form using OLEDB.
    I don't want a dropdown list and I don't want buttons to scroll through the sites (I've already found out how to do that through this forum).
    Any help would be very much appreciated!!

    Some more help to get started in this.. would be really appreciated..Are you trying to come up with the graphs yourself? IF so, are you familiar with MVC?

  • Automatic population of Order field in the Account Assignment tab in VA01

    Hi Experts,
    May i ask if the Order field in the Account Assignment tab in creating Sales Order ( VA01) will automatically populated when the Alt. Int. Ord field in the Additional Data B tab do have values?
    If YES, what are the needed configurations to meet this kind of functionality?
    Please advise.
    Liz

    Please through some more light on that.
    As per my under standing you want to populate the Value from one field to another field.
    If is it so you can do that with the help of good ABAPer who can populate the value from one Location to another Z-Location.

  • Picking quantity automatically populated

    Dear All,
    During delivery processing i have maintained picking request output to be printed when delivery is saved ,
    but when i save the delivery to print the picking list the pick quantity is AUTOMATICALLY populated
    kindly advise how do i  prevent this as we have to count the items and enter the picked quantity.
    With Regards
    Mohammed Raees

    Dear David,
    As per your advise the system is not printing the Picking Request
    But we need the picking request to be prited for the delivery execution
    Kindly advise how can i print the picking request and avoid the system populate the picking  quantity automatically.
    currently the system when saving the picking request is populating the picked quantiy equal to delivery quantity
    even if the picked quantity is partial,if the delivery is saved then the system is making the pick quantity equal to delivery quantity
    kindly advice
    Regards
    Mohammed Raees

  • When I create a new folder on the desktop of my macbook pro, it is automatically populated with all of the files on the desktop, which I don't want.

    when I create a new folder on the desktop of my macbook pro, it is automatically populated with all of the files on the desktop, which I don't want.

    I got the problem solved. It was pretty simple but new to me. I had evidently inadvertently switched the setting in the "View" tab on the dropdown menu so that all of my desktop folders were populated by all folders/documents residing on the desktop.
    The solution was to open one of the folders, then go to the "View" tab and change the setting to "List." Presto, now all the folders include only the contents I had intentionally loaded into them.

  • Automatically populating cost center for 551 posting

    Hi MM Experts,
    Is there any way the cost center for the 551 movement type can be automatically populated into the field without the user entering it? We are posting a 551 posting from a legacy system and jsut want to find out if I can do any OBYC settings to make the cost center come up automatically?

    I believe the above answer is best approach, assuming you are always scrapping to the same Cost Centre. You can default a Cost Centre indirectly, by linking it to the defauled GL (if it's valuated stock then technically I believe it is a General Ledger code, rather than a Cost Element).
    If you're going to do this for 551 you preumably want to do it for the other scrapping movement types 552, 553 etc. too.

  • Stop thunderbird from automatically populating the To: field when replying

    Is there a way to stop Thunderbird from automatically populating the To: field when replying to an email?.
    Also is there a way to get Thunderbird to request confirmation of addresses emails are to be sent to?

    'Reply' is supposed to do exactly that. Use 'Forward' instead.
    Wrt return receipts check this article.
    http://kb.mozillazine.org/Figuring_out_whether_the_recipient_read_your_message

  • Automatically populating Assignment Field from Customer Invoice Reference

    Dear All
    I have a situation. I want when a customer invoice is posted the invoice reference mentioned in the Reference field of the document Header should automatically be populated into assignment field
    Can any one tell me how to get this situation condigured
    Bilal

    Hi,
    You can use substitution function. T.Code GGB2.
    Create substitution under Financial Accounting> Line Item
    Click Create Substitution : System will ask How would you like to substitute
    field BSEG-ZUONR : Choose Field - Field Assignment : Choose the Field Assignment
    Create Click Step  : Prerequisities : Double Click ABAP System Fields > Double Click System Transaction Code   >   Click =   > Click Constant tab > Give T.Code F-43 (for eg) save
    Double Click Substitute Enter BKPF-DBBLG in the blank field and save.
    Now Use T.Code : OBBH
    Enter Company Code; Call Point 0002 Line Item fill substitution and activation level 1 save.
    If you are an End User kindly advise your FICO Consultant to do that.
    Best Regards,
    Sadashivan
    Edited by: Sadashivan Natarajan on Feb 12, 2009 3:17 PM
    Edited by: Sadashivan Natarajan on Feb 12, 2009 3:19 PM

  • Automatic population of values in a Characteristic

    Hello everyone we have a requirement in the Sales order for a Variant material where if 1 of the characteristic is selected manually then the other should
    be populated automatically accordingly.
    Is this possible please let me know or do we require dependencies for the same.
    Regards
    Madan Shetty

    Hi Madan,
    you need to use a prodecure for example:
    $self.characteristic2 = 'value' IF characteristic1 SPECIFIED
    When you select something manually for characteristic1 then characteristic2 will get the "value"
    Best regards
    Tamas

  • Solution Manager 4.0 and SLD automatic population

    Our Solution Manager 4.0 installation was failing repeatedly while importing the CIM objects into the SLD. So here is what we did:
    1.During installation we pointed the Solution Manager data supplier to the production SLD. The production SLD is on 640 wheras this is on 700.
    2.After installation we created the Solution Manager (Admin) SLD by creating all necessary roles, groups, users and started importing the CIM and the delta.
    3.We setup the data supplier of the production SLD to populate the  Solution Manager (Admin) SLD. It looks like it is not getting populated and we got the following error in the production SLD:
    #73 01/09/2007 12:39:15.173 [Thread-124] WARNING com.sap.lcr.sagent.BuilderDirector: Warning: SLD target system http://host:50100/sld sld/active not available (incoming data will be ignored).
    Thrown:
    com.sap.lcr.api.cimclient.CIMClientException: Received response is not a CIM Operation Response! Check "http://host:50100/sld" is the correct URL for the SLD CIM Object Manager and that user "user" has access to the SLD via http.
    at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:434)
    at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:581)
    at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:195)
    at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:147)
    at com.sap.lcr.api.cimclient.CIMOMClient.getCIMClass(CIMOMClient.java:538)
    at com.sap.lcr.api.cimclient.CIMClient.getCIMClass(CIMClient.java:1185)
    at com.sap.lcr.api.cimclient.CIMClient.getCIMClass(CIMClient.java:1196)
    at com.sap.lcr.api.cimclient.CIMClient.ping(CIMClient.java:290)
    at com.sap.lcr.sagent.BuilderDirector.performWork(BuilderDirector.java:621)
    at com.sap.lcr.sagent.BuilderDirector.performWork(BuilderDirector.java:545)
    at com.sap.lcr.sagent.BuilderDirector.run(BuilderDirector.java:459)
    But this is the URL we use to go to the Solution Manager SLD!!! and the user is also correct.
    1.I want to setup a way where the Solution Manager (Admin) SLD is populated from the production SLD every so often thru SMSY_SETUP -> Expert Settings -> Write back into SLD.
    2.I want to use this Solution Manager (SLD) as the Admin SLD for NWA.
    3.How do I know that the Object Manager of is up/down in the Solution Manager(SLD) and maybe restart it, while I can see that the SLD server is up.
    3.I Manually setup some of the technical systems in the Solution Manager SLD by logging onto it http://host:port/sld, but I cannot see those in System Landscape in Solution Manager.
    Can somebody please tell me how I can proceed from here.
    A quick response would be appreciated with points.

    Hi, we have server AIX and ORACLE for SAP BI7, we have SP12 in ABAP area and SP9 in J2EE area.
    So i need same SPs in ABAP and JAVA for multiples notes recomending that, and fix the GIS Maps in Web.
    So BASIS sayme SM is not compatible by Hardware, i not understand.
    We only need Solution for download SP13 and packages the Java Stack.
    Some guide for check Harware Requeriments the SM ?
    Exist some new update to ASAP for BI, looking the new versions ?

  • Trading partner automatically populated for document type KP

    Hi All,
    We have two vendor A & B.  In vendor A master data we have trading partner maintained & in Vendor B trading partner field is blank. Now when we execute transaction MR11(GR/IR clearing) then trading partner is populated to both the vendor. Which shouldnt be the case. Vendor A should display its trading partner and Vendor B Traidng partner should be blank. but it is displaying Vendor A's trading partner to all the vendor in that particular document.
    Can any one help in this issue?

    Substitution rule is used for substituting fields with values as required by business. You have to check the rules (by double clicking the line for the co code). please check whether there is any substitution rule created for KP doc type. There will be a pre-requisite (may b in your case doc type KP) and then rule defined saying sub this particular field with trading parter etc. please check thoroughly. You should not deactivate the rule as this must have created for some purpose .
    Call point -2 (line item ) means rule should apply for line items in the doc
    please reward if helpful
    thanks

  • Need exit for ME51N G/L account number automatically populated

    Hi ,
    i have the issue with  Enhancement.
    <b>The requirement is   in the tcode ME51N or ME52N .</b>    They will enter maerial and Qty ,Plant, Purchase group.
       i need to get G/L account number with respect to Purchase group automatically.
       pls do the need ful  if u know the procedure...
    regards
    devi

    Transaction Code - ME51N                    Create Purchase Requisition
    Exit Name           Description
    MEREQ001            Customers' Own Data in Purchase Requisition
    No of Exits:          1
    Transaction Code - ME52N                    Change Purchase Requisition
    Exit Name           Description
    MEREQ001            Customers' Own Data in Purchase Requisition
    No of Exits:          1
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Exits are basically the hooks whcih SAP has provided to add your own code. There are two types of Exits:
    1. Customer exits: Implemented as Function Modules within z includes. Anybody can change it and no access key is required.
    2. User Exit: Implemented as subroutines within includes (any include except y or z includes). You need access for the specific include and then you can any subroutine (user exit) within that Include.
    BADIs are the enhanced version of user exits where the same logic is implemented via classes and object (OOP)
    Enchancement point is the latest once introduces with ECC6.0 . Not very sure about that but you can change it without any access key.
    Please go through the following link which will help you understand the exits in a much better way:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/content.htm
    http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
    http://sap.niraj.tripod.com/id21.html
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.sap-img.com/ab038.htm
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhanceh
    Rewards if useful.........
    Minal

  • Automatic population table form

    I have table form. I need to automatic populate certain fields of this table form with values based on selections made by users in their select lists. As in this example http://htmldb.oracle.com/pls/otn/f?p=31517:106:3816553832235531:::::
    Suppose, 1 row has 10 columns - 5 select lists and 5 text fields (these text fields get values based on values of select lists).
    Does this mean, that for table form (20 rows) I must create 100 application items for storing temporary values of select lists?

    Denes Kubicek wrote:
    You will need only one application item ;)
    Denes Kubicek
    Ok. I have the following Application Process On Demand for one element of table form (f16_0001 - row 1 column 16):
    DECLARE
    v_stoim_mdf   NUMBER(15,2);
    CURSOR cur_c
    IS
    SELECT STOIM
    FROM TIP_MDF_STOIM
    WHERE KOD_TIP_MS = TO_NUMBER (v ('TEMPORARY_STOIM_MDF'));
    BEGIN
    FOR c IN cur_c
    LOOP
    v_stoim_mdf := c.STOIM;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f16_0001">'  || v_stoim_mdf  || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f16_0001">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;
    The following JavaScript for update TEMPORARY_STOIM_MDF:
    +<script language="JavaScript" type="text/javascript">+
    +<!--+
    +function pull_value_mdf(pValue){+
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    +'APPLICATION_PROCESS=Set_stoim_mdf',0);+
    +if(pValue){+
    get.add('TEMPORARY_STOIM_MDF',pValue)
    +}else{+
    get.add('TEMPORARY_STOIM_MDF','null')
    +}+
    gReturn = get.get('XML');
    +if(gReturn){+
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i+){+
    +var l_Opt_Xml = gReturn.getElementsByTagName("item");+
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    +if(l_Opt_Xml.firstChild){+
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    +}else{+
    var l_Value = '';
    +}+
    +if(l_El){+
    +if(l_El.tagName == 'INPUT'){+
    l_El.value = l_Value;
    +}else if(l_El.tagName == 'SPAN' &&+
    +l_El.className == 'grabber'){+
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    +}else{+
    l_El.innerHTML = l_Value;
    +}+
    +}+
    +}+
    +}+
    get = null;
    +}+
    +//-->+
    +</script>+
    I don't know what the code need for any other rows. How update the other rows?

Maybe you are looking for

  • My next iMac-- which graphics card; which display size?

    Hi all, I'd like some advice in choosing my next iMac, specifically regarding the graphics card and the display size. Graphics Card: I'm not a gamer nor am I doing any 3D animation. Is there any other reason to upgrade the graphics card? I DO want th

  • Nested Tables, Forms and Portal

    I am trying to implement a form in Portal that accesses a nested table. I can access normal tables but not my nested table. The nested table within the master table are object tables. When trying to access from the designer page I get an error indica

  • E-mail attachments

    I am operating Windows 7 with Adobe Photoshop Elements 8. I set the preferences to Adobe mail because Windows 7 uses Windows Live mail. Went thru setup. When I go to attach photo to e-mail the program crashes!! Get crash submittal and send in but hav

  • SQL Plus Login issue

    Please assist...when i am trying to login following error is occuring .... Enter user-name: / as sysdba ERROR: ORA-01031: Message 1031 not found; No message file for product=RDBMS, facility=ORA

  • IPhoto Stalls While Uploading Photos To Shared Photo Stream

    Hi, I'm running OSX Mavericks and iPhoto 9.5. I created a new Event in iPhoto and imported my photos. I selected all images (71 off) and clicked Share -> iCloud. I created a new shared Photo Stream and invited subscribers. Photos began appearing in t