Skip to Content

How to make IE can recognize http content-type: application/x-sapshortcut

Hi experts,

I have a web service which can provide a response with sap shortcut as content to the browser then the user can open SAP GUI application when accessing this web service. In the http response the service application writes the response header: name = 'content-type'; value = 'application/x-sapshortcut' to let the IE browser recognize the repoonse content is a sap shortcut. However when I try to access this web service by IE on an XP os the browser can't recognize the sap shortcut and it pops up a dialog to let user save the untyped file (no "Open" button but just "Save" button appears), but when I access this web service on another PC (windows 2003, IE) the browser can recognize the sap shortcut and pops up a dialog to let user choose "Open" or "Save" the .sap file and if user clicks "Open" button SAP GUI will appear. So is it IE setting problem or other configuration issue which make IE can't recognize content type "application/x-sapshortcut" on the first XP PC? Thanks.

Best regards,

Eric Jiang

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 21, 2012 at 08:18 PM

    Eric,

    I think you are seeing a difference in the regkey for MIME type based on SAPGui patch version.  We are having the same problem.

    I have found the Patch 6 key works.  note the difference in the slashes after 'application'.

    SAPGui 7.20 Patch 6

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type\application/x-sapshortcut

    SAPGui 7.20 Patch 8

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type\application\x-sapshortcut

    I have on my list to open a Customer Message on this as to why the change between patch levels.  I think it was an oversight on someones part.

    Bob H

    Minneapolis, MN

    USA

    UPDATE: SAPGui 7.20 Patch 11 puts the key back to how it was in patch 6 ... so the evidence would lead one to believe a developer made a mistake!

    Message was edited by: Bob Held

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2013 at 03:01 PM

    Hey Eric,

       Any chance you could show how you wrote that service?  I have the same requirement.  Did you just send the raw data in the response or did you do something else?

    Add comment
    10|10000 characters needed characters exceeded