Http LOCK method using ms-word

Hi all,
I'm trying to open a .doc file via MS-word that will be downloaded from my server.
I provide word with a url that maps to a servlet that should serve the file from a DB, and write it back to the client (MS-word).
The thing is that word sends to my server a request with "LOCK" method, which obviously is specific to microsoft and not a standard. I played around with it for a while and didn't get to any reasonable solution. I also tried googling around a bit for microsoft specifications or something (god I hate microsofts documentation, somehow I never understand anything from it) to see what kind of a response would be appropriate for that "LOCK" request, but found nothing usefull enough.....
I know this has nothing to do with java or servlets but I thought maybe one of you encountered this situation and has something usefull to tell me.....
thanks.

Oh yes, of course....
thats what happened first, when I simply didn't know word is going to send "LOCK" and not a simple "GET"... so what happened was that the response returned by the servlet was some kind of "bad request" status code, since the service method doesn't know the "LOCK" method. I don't remember what exactly status code that is, but word didn't like it and as a consequence tried some other http request that came up with no results.
What I did later on was to override the service method and return a specific status code (SC_BAD_REQUEST if I remember correctly) for that LOCK request. that response actualy got word to launch another nice "GET" http request that did serve up the file, the problem is it "hangs" on the lock response for about 10 seconds for some reason and sometimes doesn't work at all (couldn't quite figure out when exactly).
I looked around a bit more and this actualy is a WebDAV standard documented in a couple of RFCs. I need some kind of way to inform the client I don't support lock, I thought what I did was on that track, but as I've written, word doesn't like it....

Similar Messages

  • Locking Styles using Microsoft Word 2008 for Mac

    Greetings-
    I'm not sure if this is a good place to post a software question, but I having difficulty locking styles on Microsoft Word 2008 for Mac. When I try locking a document's styles on a PC it allows you to lock only the styles but allow users to edit anything else in the document. When I try to open the same document on a Mac the entire document is write protected.
    I tried setting up the document protection using my Mac and it only gave me these three options: Protect for: Track Changes, Comments, Forms. I only want to protect the styles.
    I hope this makes sense. Does anyone have any suggestions?
    Thanks.
    Kevin

    tnganalyst wrote:
    Does anyone have any suggestions?
    One suggestion is to ask in the Word forums at Mactopia, MS's site:
    http://www.officeformac.com/ProductForums/Word/
    Someone here may have an answer, but this is a forum for Apple products. As such, you may have a better chance of getting an answer there.
    Good luck!

  • Authentication syntax for HTTP GET method using TCP functions in Labview on linux

    Hi,
    Currently, I am trying to communicate to web server. I have Labview installed on a Linux machine. The HTTP function blocks and other labview functions do not work. Hence, I am building a HTTP code string using TCP functions (port 80) to talk to the web server. I am successfully able to fetch a response from web sites (example www.ni.com) from my vi. However, when I try to communicate to my web server, it does not work. It requires an authentication. I am able to open http://ipaddress in my browser from my machine using username and password. Can someone help with Authentication string requirement for GET method?
    so far the string is:
    GET /index/ HTTP/1.1
    Host: http://xx.xx.xx.xx

    An easy option would be to try http://userassword@server syntax for the URL.
    Else I posted a Twitter fetcher once (won't work anymore since Twitter moved to Oauth authentication) at LAVA. Based on code from @cloew.
    The code is part of this LLB.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Retrieving image using HTTP GET method?

    I want to send a image to a client browser. My servlet's HTML response to the client browser contains the <img src="..."> tag. The client browser uses the HTTP GET method to call my servlet's DoGet method, and I must transfer the desired image to the client browser in this DoGet method at servlet. Now, the problem is that, what should be the source URL in the image(img) tag that is present in my servlet response to client?
    For eg: the img tag should be like this
    <img src="http://<hostname>:<portname>/<servletname>/...?[var1=value1]">
    Now at the ellipsis that you see in the above source URI, I want to write the type of image file (something.jpg) ,so the browser knows what kind of image file it is.
    To sum it up...how to get the image using DoGet method and <img src="...">
    Regards,
    Amit

    To give you a better idea on what's happening, read the RFC:
    (HTTP/1.0) http://ftp.ics.uci.edu/pub/ietf/http/rfc1945.html
    (HTTP/1.1 - compressed data)
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
    If you for example execute the command by telnetting to port 80 on a server:
    GET http://somewhere.com/some.jpg HTTP/1.0<cr>
    <cr>You will get this header:
    Trying 217.22.64.73...
    Connected to xxx.xxx.xxx
    Escape character is '^]'.
    HTTP/1.1 200 OK
    Date: Fri, 01 Aug 2003 12:36:30 GMT
    Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2510
    Last-Modified: Tue, 15 Jul 2003 03:11:52 GMT
    ETag: "268de8-2fc4-3f1370f8"
    Accept-Ranges: bytes
    Content-Length: 12228
    Connection: close
    Content-Type: image/jpegWatch the last part, that's what the setContentType does, normally the content-type defaults to text/html in a webserver.
    A webserver usually maintains a list of file extensions by which it will determine the correct MIME type to emit, when a resource is retrieved.
    The browser reads the header, and decides what to do with it, in combination with (X)HTML markup.
    Greets.

  • JAX-WS -- Force a wsimport generated ws client to use http POST method

    I've used wsimport to generate a JAX-WS client for a wsdl and xsd bindings that were provided to me.
    The basic implementation goes something like this.
    URL serviceUrl = ...url to the live web service's wsdl (this will change often and needs to be data driven)
    QName qname = new QName("thenamespace", "MyService")
    MyService myService = new MyService(serviceUrl, qname);
    At this point a http GET request is sent to the server which promptly spits back a "405: method not allowed" because it is only configured to accept the http POST method.
    Unfortunately i cannot change this behavior and need a way to get the web service client to generate http POST requests.
    Setting the following seemed to have no effect.
    System.setProperty("javax.xml.ws.http.request.method", "POST");
    Thanks!

    so, keep the wsdl as a local resource and use a url for the local resource. then the service will not request the remote wsdl.

  • Example of sending the po request to my partner using https post method

    I need to send the po request to my partner using https post method.
    Is there any example for my scenario in oracle b2b?
    Usecase:
    mycompany
    othercompany
    mycompany -> Posts xml document with no namespace -> othercompany
    Protocol: https

    I need to send the po request to my partner using https post method.It is possible. FYI, by default HTTPS uses post method.
    Is there any example for my scenario in oracle b2b?Not exact sample is available but yes, similar samples are available here -
    http://www.oracle.com/technology/sample_code/products/b2b/index.html
    I would suggest you to go through below tutorial to have better understanding -
    http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU003_ebxml.pdf
    Namespace is not an issue. It's upto you whether you like to keep it or not. From XML technology point of view, it is always recommended to have a namespace to bind each and every node with it, but I have seem cases where people don't use them.
    Regards,
    Anuj

  • Let us know list of HTTP methods used by Everest application 4.1

    Hi All,
    Please let us know list of HTTP methods used by Everest application. currently performing security scan on the Everest application.and have to disable unwanted HTTP methods (e.g. PUT, DELETE). Also let me know if we can use URLSCAN tool to disable the same.
    Regards,
    Srini

    Dear Srikumar,
    You need to have the following ports open for proper functioning of DOE in firewall environment ( I have configured the following ports in our server based on requirements):
    SAP Message Server ports - 3600,3601
    SAP DOE /ABAP http port - 8000  or 80 (or whatever ABAP http port you have configured).
    SAP Gateway ports : 3300,3301
    SAP dp00 and dp 99 - 3200, 3299
    Sometimes required - SAP host control ports - 1128, 1129
    Regards,
    Veera

  • [Oracle JDBC Driver]This driver is locked for use with embedded application

    Hi
    I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
    The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
    I don't understand what is happening.
    Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
    Name: Oracle Driver
    Driver: com.sun.sql.jdbc.oracle.OracleDriver
    Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
    If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
    Many thanks and take care,
    Shayne
    import java.sql.*;
    public class CreateCoffees {
    public static void main(String args[]) {
    //String url = "jdbc:mySubprotocol:myDataSource";
    String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    //Class.forName("myDriver.ClassName");
    Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    //con = DriverManager.getConnection(url, "myLogin", "myPassword");
    con = DriverManager.getConnection(url, "login", "password");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    } //end class CreateCoffees
    ---

    There are two similar threads:
    http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
    http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
    To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
    That's weird, I agree. I will raise a question on reasons for such a behavior.
    The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    HTH,
    Kirill

  • Disabling HTTP OPTIONS method

    Hi
    Can anyone tell me how I can disable the HTTP OPTIONS method in Sun One Web Server 6.0 SP4.
    Thanks

    1) Why would TRACE and OPTION request specifying HTTP 1.0 vs. 1.1 yield such different results?
    Web Server 6.0 only implements the TRACE and OPTIONS methods for HTTP/1.1, not HTTP/1.0. This is reasonable as TRACE and OPTIONS are part of the HTTP/1.1 protocol and not the HTTP/1.0 protocol.
    In other words, TRACE is always disabled for HTTP/1.0 requests, even if you don't use the set-variable work around.
    2) Is the OPTIONS command a legitimate test of whether this fix works? If it is, has anyone managed to have the command return an "Allow:" line MINUS the TRACE?
    Nope, not in Web Server 6.0. OPTIONS will always list TRACE. (Note that in Web Server 6.1, TRACE is not as tightly integrated into the server core. As a result, OPTIONS will conditionally list TRACE in 6.1.)
    3) Has anyone managed to generate a 501 error message after specifying TRACE / HTTP/1.1 instead of 1.0?
    Nope, not in Web Server 6.0.
    4) Does this fix really work?
    I wouldn't call it a fix; it's a work around. However, it does effectively disable TRACE. The work around is a bit of a kludge, resulting in the odd 413 status code.
    The real "fix" appears in Web Server 6.1 where you can disable TRACE simply by commenting out the Service method="TRACE" fn="service-trace" line in obj.conf.

  • Hello i am using ms word when i open my saved documents but cannot edit anythings and all are option is hide .....so how to edit

    hello i am using ms word when i open my saved documents but cannot edit anythings and all are option is hide .....so how to edit

    Hi,
    In regarding of the issue, I need more information:
    Which Office and operation system do you use?
    Does the other Office suits encounter the issue?
    Does the issue occur in some special documents or every documents (even a new blank Word document)?
    Do you get some error message? Please upload some images about it if you can.
    Let's try some methods, check if they are helpful:
    a) Delete the Word Data registry subkey.
    1.Exit all Office programs.
    2.In Windows 8 or Windows 8.1, swipe in from the right edge of the screen, and then tap Search. (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.) Type regedit in the search box, tap
    or click Apps, and then tap or click Run.
    Or, in Windows 7, Windows Vista or Windows XP, click Start, click Run, type regedit, and then click OK.
    3.Locate the following registry subkey, as appropriate for the version of Word that you are running:
    Word 2013
    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Data
    Word 2010
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Data
    Word 2007
    HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Data
    Word 2003
    HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Data
    4.Click Data, and then click Export on the File menu.
    5.Name the file Wddata.reg, and then save the file to the desktop.
    6.On the Edit menu, click Delete, and then click Yes.
    7.Exit Registry Editor.
    8.Start Word.
    b) Start Word in
    safe mode, if it works fine, the issue may be caused by the add-ins, please try to check them one by one.
    c) Repair Office.
    http://office.microsoft.com/en-us/project-help/repair-office-programs-HA010357402.aspx
    For more detail information, please refer to the following link:http://support.microsoft.com/kb/921541/en-us
    Regards,
    George Zhao
    TechNet Community Support

  • How to lock transaction using function module or something like that

    Hi, all
    I'd like to know the way to lock transacitons using function module or something like that.
    I know this would be possible if calling transaciton SM01, but I want to know other ways like calling function module  (BAPI ) or method.
    Thank you for your cooperation In advance.
    Regards,
    Hideki Kozai

    Hi,
           Try the following FM
    BRF_NETWORK_GRAPHICS           BRF: Network Graphics for BRF Objects
    BRF_INITIALIZE_GRAPHICS_NGR    BRF: Initialize Network Graphics
    BRF_NETWORK_GRAPHICS_NGR       BRF: Network Graphics: Start
    BUSG                           SAP Business Graphics
    GRAPH_2D                       Calling up the 2D business graphics
    GRAPH_2D_MENUE                 DO NOT USE (use 'GRAPH_2D' and 'GRAPH_BUSG_MENU_SET')
    GRAPH_3D                       Calling up the 3D presentation graphics
    GRAPH_BUSG_COLOR_SET           Definition of color pallets for business graphics
    GRAPH_BUSG_MENU_SET            Pushbutton menu (tool bar) for all BUSG modules
    GRAPH_MATRIX                   Calling up SAP Business Graphics (2D, 3D and 4D)
    GRAPH_MATRIX_2D                Calling up the 2D graphics (user-friendly version)
    GRAPH_MATRIX_3D                Structure of 3D graphics (user-friendly version)
    GRAPH_MATRIX_4D                Calling up a 3D graphic (4th dimension stacked representation)
    Regards,

  • Can you use microsoft word on an ipad 2 for free and how?

    HI
    my family and friends tell me I can do my coursework on the ipad2 and use Microsoft word. Is it true and how do I set it up and download it
    thanks
    Shannon

    You can't use Microsoft Word on the iPad because of the different operating system but you can have a look at the following apps.
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1

  • How can I use microsoft word, power point and those apps in my new iMac ? i bought this iMac yesterday so am new on tho and i would like to know

    how can I use microsoft word, power point and those apps in my new iMac ? i bought this iMac yesterday so am new on tho and i would like to know

    If you absolutely must have the Microsoft applications, you can purchase and download them from http://microsoft.com/mac.
    Free software suites LibreOffice and OpenOffice offer similar functionality (word processing and spreadsheets).
    Or you could do worse than look at Apple's Pages, Numbers and Keynote, which should already be installed in your Mac and can export to Microsoft formats if need be.
    Matt

  • Can I use Microsoft Word on an iPad

    Can you use Microsoft Word on an iPad, and send the documents as a word fil via email?

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • Locking when using a component as an object in the application scope...

    I have a component that I am building right now that hold
    application settings that are stored in a database table. The
    settings are maintained in a structure "variables.settings" within
    the component and can only be accessed by get and set methods. I
    use the following to create the instance of the object:
    <cfset application.settings =
    createObject("settings","component").init() />
    Now when getting a setting I do not think locking is needed
    as its just reading the value and I am not really concerned with a
    race condition...
    But when using the set method which will update the value of
    the setting.... should I be locking that as technically the object
    is in a shared variable scope? Or is it safe because its within the
    cfc/object?
    If locking is needed, would I need to lock when using the set
    method? or can I just build the lock into the set method so that
    its always there?

    To disagree with craigkaminsky, I think you only need to lock
    if you are
    concerned about race conditions and what could happen during
    a 'dirty
    read' and|or conflicting writes.
    A lot of developers have an old impression of ColdFusion that
    one *must*
    lock all shared scope variable access to maintain a stable
    application.
    This dates from the ColdFusion 4.5 days where there where
    bugs in
    ColdFusion that could cause memory leaks and eventual
    application
    instability if one did not lock shared scope reads and
    writes. This has
    long been fixed, but the advice persists.
    So now it is only a matter of your data and what would happen
    if one
    user read an old value while it was in the process of being
    updated by
    another user. Or could two users be updating the same value
    at the same
    time and cause conflict. If either of those two statements
    are true,
    then yes you should use locking as required by your
    application.
    But if they are both false and it does not matter that user A
    might get
    the old value microseconds before user B changes it. Or there
    is no
    concern with user A changing it once and user B changing it
    again to
    something different moments later without knowing the user A
    has already
    changed it. Then locking is probably unnecessary.
    There can be a cost to over locking shared variable writes
    and|or reads.
    Every time one creates a lock, one is single threading some
    portion of
    ones code. Depending on how the locking is done, this single
    threading
    may only apply to individual users or it may apply to every
    single user
    on the entire server. Either way, too much of this in the
    wrong places
    can create a significant bottle necks in ones application if
    too many
    user requests start piling up waiting for their turn through
    the locked
    block of code.

Maybe you are looking for

  • Clearing vendor open items - URGENT !

    Hi all, We are facing an issue when clearing the vendor account F-44. When we compare FBL1N and F-44, there are 8 line items appearing in FBL1N but in F-44 there are only 6 line items appearing. Please guide me as to how to proceed on this and let me

  • Disappearing Application Windows?

    Hi, I am running mac os x 10.5.5 on a 3.06 24inch imac with 4gb ram. recently I have a worsening issue with application windows disappearing. It seems to happen with all applications intermittently & i cant pin down why it is happening. I do use spac

  • Function Based Indexes Errors

    Hi I am trying to create function based indexes based on the examples in the b10826 Spatial Users guide -- The Create index statement is failing because it says it cannot read the metadata create index EMITTER_LOB_WIDX ON EMITTER (OWNER1.WT_GEOMETRY_

  • Changing Configuration off EBS App Tier Hosts

    Hello I have a couple of questions regarding re-configuring a TEST APPS system setup after a clone/backup/restore. 1) We have three nodes on our PRODUCTION file system. Node A - serves as the DB tier; Node B - is Application Server (Conc Processing,

  • Displaying UMLAUT characters in WEBI report - Need Confirmation in Settings

    Hi, I am using BOXI-R2 in Windows machine. I have done the below settings in BO configuration files. My WEBI report shows no data to display when there are UMLAUT German characters (for example) in the data. Japanese and English characters are displa