Validating XML offline: is a web-proxy and cache the solution?

Is implementing a web-proxy and cache, the solution to offline XML validation?
Our application uses XML to store data (local, and remote: it's up to user), but needs to work even when offline. This is a problem for the validated XML, since it's DTD may be located on a remote server. To complicate things, we would like to allow others to extend our application with data-formats (DTD's) of their own.
At the moment, the DTD is stored in the applications jar file, but this is going to be a problem. In the data files, the URL for it's DTD includes the jar file's system dependant path name. If data files are moved to a different system (where paths are different) this will no longer work. As you can guess, simply using relative URL's (using the data file or the even the Application jar as Base URL) will also cause problems.
Before concerning ourselves with offline editing, we ran into the problem of firewalls. This we could circumvent by setting Java's global HTTP proxy (thanks to http://www.javaworld.com/javaworld/javatips/jw-javatip42.html for the tip)
  if (userNeedsProxy) {
    System.getProperties().put ("proxySet", "true");
    System.getProperties().put ("proxyHost", userProxyHost);
    System.getProperties().put ("proxyPort", userProxyPort);
  }Which appears to affect all URL.getStream() calls for http URL's, so works fine.
To get around the offline problem, I'm thinking of implementing my application as a 'proxy', and caching any downloaded DTDs locally. This cache could be seeded with our apps default DTD, and any extensions can take advantage of this as well. This solution has the benifit of not modifying the basic XML parsing routines or doing something undesirable, like just turning off validation (suggested on other forum threads). Would this involve creating a custom URLConnection object and or URLStreamHandler?
Any suggestions or comments are welcome, as I haven't started this, and I'm pretty sure it has been solved before. Does this sound feasable, or insane? :) Any experience shared is very appriciated!
Thanks in advance
...Chad

Hi ..
I am a computer science student .. I am reading alot about web caching
so i deside tht my graduate project must be a web caching application
but I don't know from where I must begin ... to study about creating that in java ..
can u help me plz ???
my e-mail : [email protected]
Ahmad

Similar Messages

  • Want the link to open EAS IN WEb mode and also the Java API details needed

    Want the link to open EAS IN WEb mode and also the Java API details needed to get it up and running.
    Kindly provide the answer if knows.
    Thanks .

    Yes, you can have single sign on enabled on multiple essbase servers,
    It works like using single userid and password across mulple servers. you can configure essbase server to read from active directory.
    you can configure css.xml file in bin folder
    sample CSS FILE
    here is an example of a css.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <css xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <spi>
    <provider>
    <msad name="msad1"> <trusted>false</trusted>
    <url>ldap://ldapserver:389/dc=CompanyName,dc=com</url>
    <userDN>CN=#######,OU=Security Accounts,OU=IT,DC=CompanyName,DC=com</userDN>
    <password>########</password>
    <authType>simple</authType>
    <identityAttribute>dn</identityAttribute>
    <user>
    <loginAttribute>sAMAccountName</loginAttribute>
    <fnAttribute>givenname</fnAttribute>
    <snAttribute>sn</snAttribute>
    <emailAttribute>mail</emailAttribute>
    <objectclass>
    </objectclass>
    </user>
    <group>
    <url>cn=LostAndFound</url>
    </group>
    </msad>
    </provider>
    </spi>
    <searchOrder>
    <el>msad1</el>
    </searchOrder>
    <token>
    <timeout>60</timeout>
    </token>
    <logger>
    <priority>ERROR</priority>
    </logger>
    </css>

  • I dont have internet connection, so can i still use offline adobe indesign, photoshop ? and whats the adobe product cos cs6 is not offered anymore...

    i dont have internet connection, so can i still use offline adobe indesign, photoshop ? and whats the adobe product cos cs6 is not offered anymore...

    CS6 products are still available thru Adobe:
    Purchase CS6 products:
    http://www.adobe.com/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html

  • Are there any shortcuts to connecting the printer with web services and/or the eprint server?

    (HP Officejet Pro 8600 Plus, IE, Windows 7)
     As I am unable to execute the instructions given by
    by Ryamond 1411, I'm looking for  other avenues to connect my printer to web services and/or
    the eprint server so I can release 4 emails for printout now stuck in que.

    Hello MurrayJ,
    The first thing I would do is follow step six in this document to set a static IP: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02817031&cc=us&dlc=en&lc=en&product=4023246&tmp...
    When it askes for DNS information, enter in Google's DNS. Preferred DNS = 8.8.8.8 Alt DNS = 8.8.4.4
    If that does not help, if you could provide me with the following information it would help me out. First, who is your ISP( Internet Service Provider, i.e. Comcast, AT&T, Verizon, ect.)? Second, who is the maker of your router? Lastly, what is the model number and firmware version of your router?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • When I add pictures into MUSE , do the pictures resize for web quality (And so the page loads fast enough) or do I have to do this using an external software like photoshop, etc. ? Thank You

    When I add pictures into MUSE , do the pictures resize for web quality (And so the page loads fast enough) or do I have to do this using an external software like photoshop, etc. ?
    Also is there any way I can change the contact form email for all of my contact forms at once.
    I have over 100 contact forms and i want to make them reach the same email anyway I can do that without going one by one?

    If you have placed the image in Muse using File > Place and then scaled the image down in Muse while editing, then Muse publishes/exports the scaled down/optimized image in final output. When using as a Fill, the output size depends on the Fitting option you setup in the Fill options.
    As for the contact form email, you would need to specify the email address for each form individually. There is no workflow to edit the same for multiple forms at a time.
    Cheers,
    Vikas

  • TS3899 I can no longer in email click on a web address and have the address open in Safari. Nothing happens if I hold and click on Open in the window that comes up. I can copy the address there and put it in Safari and it opens OK

    I can no longer in email click on a web address and have the address open in Safari. Nothing happens if I hold and click on Open in the window that comes up. I can copy the address there and put it in Safari and it opens OK

    Reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.

  • I have reached out  to this community as my Iphone display gone black and got the solution to keep home and power button pressed. It worked but I would like to know why it went black

    I have reached out  to this community as my Iphone display gone black and got the solution to keep home and power button pressed. It worked but I would like to know
    1. Why it went black and is there a permanent fix for this
    2.Will the IOS gets automatically updated as I feel the IOS was 5 when I got the phone in 2012 december
    3.Do you suggest 7.1 for Iphone 4

    1. There is no way of knowing. These things happen.
    2. The iOS only gets updated when you want it to be.
    3. You should always update to the latest iOS your phone will support. Apple do not write the updates to make your experience worse.

  • Download and upload the solution

    Dear Experts
    I'd like to copy the customer specific solution from my tenant to other tenants.
    But, I can't copy the solution due to an error below.
    Is it possible to upload and download the solution between different customer ID?
    Best regards,
    Ryota Ichida

    Hello Ryota, Dhruvin,
    Yes, that's right.
    Here's an excerpt from the docu:
    What you can't do with a solution template
    You can't switch on the admin mode for a solution template.
    Therefore you can't, for example, define analytics content or create a mashup in a solution template.
    You can't create BC sets using SAP BCOs in a solution template.
    If you create a business object extension in a solution template, you can't use the following functions:
    Enhance Enterprise Search
    Enhance Forms
    Enhance Report
    Enhance Screen
    HTH,
        Horst

  • I have an iPhone 4s. Suddnely for past two days, the contact names from my address book are disappeared.  Has anyone came across this issue earlier and know the solution please?

    I have an iPhone 4s. Suddnely for past two days, The contact names from my address book are disappeared.  Has anyone came across this issue earlier and know the solution please?

    You had to have some kudos for the effort put in to your thread as week as the point you make.

  • Reverse web proxy and Javascript

    Hi,
    We are trying to use Sun Java web proxy server to reverse proxy Siebel Analytics and Marketing. When we log onto the main page, we get the following error (a javascript error I believe).
    Error: '_swe._sweapp.S_CAS' is null or not an object
    The URL works fine with direct access (not via the Reverse WP). Can anybody shed some light on this? All advice appreciated - we're kinda stuck right now.
    TIA. Tom

    Under the "filters" tab, select "Set Content URL rewriting" from the left hand menus.
    Then create a filter .. source = "websrvname", destination="pxysrvname", mimetype="*/*"
    Basically, the mimetype of "*/*" should catch all "text/*" instances, and "application/*" instances.
    Essentially, the backend hostname gets embedded in some of the javascript for the interface. The filter rewrites the javascript to include the proxyserver name.
    BTW : Your proxy server must be listening on the same ports as the back end webserver.
    HTH. Tom

  • Web Proxy Server - Cache Windows Updates

    I''ve just installed Sun Java System Web Proxy Server 4.0.9 on our Network, but I'm having a hard time getting it to cache Windows updates.
    Any help?

    And here is the obj.conf file:
    I would like it to cache as most as possible, inlculding windows updates.
    # You can edit this file, but comments and formatting changes
    # might be lost when the admin server makes changes.
    # Use only forward slashes in pathnames--backslashes can cause
    # problems. See the documentation for more information.
    Init fn="init-proxy" timeout="300" timeout-2="15"
    Init profiling="on" fn="stats-init"
    Init byteranges="On" fn="tune-cache"
    Init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->vars.p2c-cl% %Req->vars.remote-status% %Req->vars.r2p-cl% %Req->headers.content-length% %Req->vars.p2r-cl% %Req->vars.c2p-hl% %Req->vars.p2c-hl% %Req->vars.p2r-hl% %Req->vars.r2p-hl% %Req->vars.xfer-time% %Req->vars.cch-status%" no-format-str.access="yes" fn="flex-init"
    Init cache-size="1024" expire="3600" negative-dns-cache="yes" fn="host-dns-cache-init"
    <Object name="default">
    AuthTrans fn="match-browser" browser=".*MSIE.*" ssl-unclean-shutdown="true"
    NameTrans fn="assign-name" name="stats-xml" from="(/stats-xml|/stats-xml/.*)"
    PathCheck fn="url-check"
    ObjectType fn="block-ip"
    ObjectType fn="cache-enable" cache-auth="1" min-size="0" max-size="512000" cache-local="1"
    ObjectType fn="cache-setting" term-percent="100"
    Service fn="proxy-retrieve"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="file">
    PathCheck fn="nt-uri-clean"
    PathCheck fn="find-index" index-names="index.html"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    ObjectType fn="cache-enable"
    Service fn="send-file"
    </Object>
    <Object ppath="ftp://.*">
    ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
    ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="43200"
    Service fn="proxy-retrieve"
    </Object>
    <Object ppath="http://.*">
    ObjectType fn="cache-enable" log-report="off" min-size="0" max-size="512000" cache-auth="1"
    ObjectType fn="cache-setting" lm-factor="0.00" max-uncheck="43200" term-percent="100"
    Service fn="proxy-retrieve" method="*"
    </Object>
    <Object ppath="https://.*">
    Service fn="proxy-retrieve"
    </Object>
    <Object ppath="gopher://.*">
    ObjectType fn="cache-enable" query-maxlen="10" log-report="off" cache-auth="1" min-size="0" max-size="512000"
    ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="43200"
    Service fn="proxy-retrieve"
    </Object>
    <Object ppath="connect://.*:443">
    ObjectType fn="cache-enable" cache-auth="1" min-size="0" max-size="512000"
    Service fn="connect" method="CONNECT"
    </Object>
    <Object ppath="connect://.*:563">
    ObjectType fn="cache-enable" cache-auth="1" min-size="0"
    ObjectType fn="cache-setting" term-percent="100"
    Service fn="connect" method="CONNECT"
    </Object>
    <Object name="stats-xml">
    Service fn="stats-xml"
    </Object>

  • Create a abap server proxy and consume the service with the pi WS Navigator

    hi all:
    i create a abap server proxy ,i use the t_code "sproxy"  to generate the proxy, and then write the abap code to implemente the method;    then i use the T-code (soamanager)  to define the  endpoint,  but when i click the " Open WSDL document for selected binding" to get the WSDL  file ; some error occur,the error is follow:
    ==========================================================================
    Service cannot be reached
    What has happened?
    URL http://foxxi:50000/sap/bc/srt/wsdl/bndg_000C2938EF591DEE8A9A8D3DD5CCB6AD/wsdl11/allinone/ws_policy/document call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XIF with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If it is a valid URL, check whether service /sap/bc/srt/wsdl/bndg_000C2938EF591DEE8A9A8D3DD5CCB6AD/wsdl11/allinone/ws_policy/document is active in transaction SICF.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:FOXXI_XIF_00-v:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team
    ==========================================================================
    when i go to the ws navigator to consume the service  i can not find the service which i define, but some system content display ,  what's the problem

    had a chance to look at this?
    /people/jitender.chauhan/blog/2009/04/20/service-enabling-in-abap

  • Cache engine http transparent proxy and caching

    Hi..
    My customer some GPRS user in which they couldn't control proxy setting of the web browser.
    Is it possible to configure on a cache engine such that when these users access the Internet, they will be intercepted by the cache engine. THe cache engine then forwards the request to a proxy server and out to the Internet ?
    Rgds
    Eng Wee

    It is possible to configure the cache engine to provide access to the users. The following URL shows an example on how to configure the Cisco Cache Engine for transparent caching using the Web Cache Coordination Protocol (WCCP).
    http://www.cisco.com/warp/public/117/cache_engine/transparentconfig.html
    This scenario is pretty similar to your requirement. Hope this helps.

  • Open XML file with user default browser and not the default editor.

    Hi,
    I'm writing a java program that appends numerous XML files together. The result is a NEW well formed XML document. Since i have an XSLT that performs several UI modifications on this xml file, the file extension must remain '.xml'. I need to open this xml file with the users default web browser. The problem is that:
    Runtime.getRuntime().exec(cmd);
    ....opens the xml file with the users default program for opening xml files which in my case is Oxygen. I want to force java to open this xml file with the users default web browser and nothing else.
    I guess i need the Windows command to perform the 'open with' feature but i have no idea what that command is or how to find it.
    Any ideas?
    Thanks,
    Varun Singh
    Edited by: Jagara00 on Jul 2, 2009 3:49 PM

    sabre150 wrote:
    Jagara00 wrote:
    Your right, but my question relates to the java issue and not the XSLT aspect of the problem. I am looking for a java solution for reasons i will no go into here. You have lost me.Me too.
    People do not often ask questions (or make challenges or observations) idly for the sake of 'theory'. It is most useful to explain to the best of your ability.
    As to
    "Since the Desktop class was only released with SE 6 I am forced to find another alternative. "
    There is an 'alternative'. You can import it into a 1.5 project. It was available as a free standing API before 1.6 - through JDIC. See [https://jdic.dev.java.net/documentation/Examples.html|https://jdic.dev.java.net/documentation/Examples.html] for more info.
    Edit 1:
    To a later reply
    "Do u .."
    ..want to spell incorrectly when you get frustrated?
    "..do not wish to.."
    ..get any help? That is the way you are heading.
    Edited by: AndrewThompson64 on Jul 3, 2009 9:27 AM

  • I've updated a web page and now the links will not open in any browser except safari

    I've updated a web site and the links no longer work. I'm using Dreamweaver. The page works perfectly in Safari but not in Explorer or Firefox and I don't know what to change to fix this.
    == not sure what to add here

    I thought I did post the page. Anyway, I did solve the problem. I'm working in Dreamweaver on files originally created in GoLive. The CSS from GL has to be completely expunged from the file or Firefox has this issue (doesn't respond to links). This, even though the problem had no obvious connection to the linked text. Interestingly, images with links worked fine.
    I spent 45 minutes on the line with Adobe tech support and they didn't catch this. But while talking to them it occurred to me.
    thanks, Bob

Maybe you are looking for