on 06-26-2006 3:54 PM
I've been tearing my hair out trying to find a way to do this for ages now, but to no avail 😕
I need to extract documents from the HTTP-based SAP content server.
To access documents stored in the content server, you need to build up a URL that looks something like this:
I can generate all of this, <i>except</i> the <b>secKey </b>parameter.
I've read every document I can find on the subject, for example:
http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/9561c8f3b111d1955b0000e82deb58/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e8c192eaf811d195580000e82deb58/content.htm
But I can't find anything anywhere that describes how to <b>generate</b> a secKey.
Can anyone help me with this? It would be much appreciated!
Many thanks,
Colin Anderson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
you should have a llok at Function Module
SDOK_PHIO_GET_URL_FOR_GET
This should help.
kind regards,
Carl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I eventually gave up this plan :o(
Instead I have created a working solution that SAP BAPIs:
BAPI_DOCUMENT_GETOBJECTDOCS (get documents linked to a given material)
BAPI_DOCUMENT_GETDETAIL2 (get details of a document)
BAPI_DOCUMENT_CHECKOUTVIEWX (download a document)
Many thanks for the responses!
Hello,
the private key, where the hash is signed with is stored
in your AppServer directory $DIR_INSTANCE/sec and is
called SAPSYS.PSE. Where the PSE is a secude (www.secude.de) specific format which contains the private and the publik key.
But I guess you won't get the private key, because its private, unless you are the Administror
Then signig is done via the normal industry standards. (http://www.rsasecurity.com/)
regards,
mumba.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help with this!
Assuming I can convince an administrator to supply me with the SAPSYS.PSE file, what format does the file take? How do I parse the private key out of it?
I had a look at the website www.secude.de but couldn't find anything useful
Hello Colin,
are you generally interested in getting ALL data from the contentserver, or do you plan to provide URLs to specific documents.
What application stored the docs in the CS?
kind regards,
Carl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, I've figured out a way to do it. It's not ideal, but disabling security on the Content Manager server .ini file means I don't need to generate a secKey. I can lock things down by IP address within IIS, which should be sufficient for our needs.
Next problem: How is the docId URL parameter generated and encoded?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.