Skip to Content
author's profile photo Former Member
Former Member

How to get trusted connection using MDM Java API - MDM 7.1

Hi All,

I have developed a webdynpro application which I am launching on UWL task. I am able to launch the application and read the data from the uwl task and do activities.

I fetch the user and password from the MDM reference system, we created in Portal with alias.

Below is the code how I create a usercontext.

Issue :

Users will not know the mdm password. So it is not possible for them to set in the system individually.

usrCtxt = new UserSessionContext(mdmServer, mdmRepository, mappedUserId);

SessionManager.getInstance().createSession(usrCtxt,SessionTypes.USER_SESSION_TYPE, mappedUserPwd);

Is there any other way I can create a usercontext without password?

I came across trusted connection. It is set on our Portal and MDM. It is working fine for the wdconfig projects.

But how do I create trusted connection using APIs in my webdynpro project? Could you please help me with codes?

Regards,

Durai

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 08:26 AM

    Hello,

    For [Trusted connections|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d09eaa01-f941-2c10-8d88-be7e05a85c47?QuickLink=index&overridelayout=true]

    follow the mentioned link.

    By default the MDM Java API opens a socket connection to the MDM server at port number 20005. If the MDM server is behind a firewall, the necessary permissions should be provided. A connection to the MDM server can also be a trusted connection. Trusted connections are configured through configuration files on the MDM server.

    http://help.sap.com/saphelp_nwmdm71/helpdata/en/5e/87ba37c9134ad586ccebc558aa5e8c/content.htm

    regards,

    Abhishek

    Edited by: Abhishek Biwal on Dec 8, 2011 2:02 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2011 at 08:22 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Ravi Verma

      Thanks Ravi and Abhisek.

      Instead of reading each and every property on the MDM server, I have included the mdm WD search component interface (invisible) in my webdynpro application and got the usersessioncontext from the repository bean. Using this usersessioncontext I am able to do all the required api calls.

      Regards,

      Saravanan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.