cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing UME data programmatically

Former Member
0 Kudos

Is it possible for me to access UME data on one server when running on another server?

Here's the scenario:

I am building some common code that will get information about a user from various sources and create one object to contain all that data. For example, the code will get some data from an Oracle database, some other data from a Notes database and some data from the UME. I'll then build an object that I will return to the calling program and it can use this information while the application is running to improve the 'user experience'

I know how to read from the UME on the server I'm currently running on but that becomes a problem when the code is running on the local engine. We have all our developers setup with a local engine so they can test their code locally before putting on server.

For accessing Oracle this is no problem because we just use the same datasource name (defined in Visual Admin) as we have on the server. The actual datasource definition on local engine points to the same Oracle server/database as the development server's datasource does. This means that our developers can test their code that accesses Oracle locally without having to deploy to development server.

Problem is that I can't figure out how to do something similar with UME. I don't want to duplicate the UME on every developer's machine and I don't want to have them deploy their code to development server each time they want to test. Obviously, they'll need to deploy to development server eventually but we like to do our testing locally first.

Sorry for the long post but I wanted to give as much info as possible. Please let me know if you have any questions and I'll be glad to clarify/elaborate.

Thanks in advance for any help.

David.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182374
Active Contributor
0 Kudos

Hi David,

You can try using the UME Web Service:

http://<server>:<port>/irj/servlet/prt/soap/UMWebService?style=rpc_enc

Omri

Former Member
0 Kudos

Omri,

Are you saying that there is a web service interface to the UME?

I searched SDN for "UME web service" but I'm not finding any information on how to use this web service if there is one.

If you have any links to some documentation, would you please point me in the right direction?

Thanks

David

former_member182374
Active Contributor
0 Kudos

Hi David,

I don't have any documentaion about the Web Service.

However, consuming it is like consuming any other Web Service in Web Dynpro:

Models -> Create Model -> Import Web Service Model

Select WSDL Source -> Local File System or URL

Enter WSDL: <b>http://<portal>:<port>/irj/servlet/prt/soap/UMWebService?style=rpc_enc </b>

This works in EP6 SP16 and I guess will work on other versions as well.

See attached snapshot for methods.

http://img260.imageshack.us/img260/2788/umewebserviceot9.jpg

Hope it helps,

Omri

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks all for your replies. I'm marking this as solved (I've rewarded points for useful answers).

It appears that there is no API for reading UME on a different server than the one the code is currently running on.

I'll be working on 'hooking' my local UME to the LDAP instead. That appears to be the best approach for this situation.

Former Member
0 Kudos

David,

Good luck!

Hope my advise was really useful

With your rewarding post I've just crossed 10 000 barrier

VS

Former Member
0 Kudos

David,

I guess the only option is to try UME config with centralized LDAP source -- so there is single "ource of truth" -- LDAP directory, and all developers servers use it.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Valery - Are you suggesting that each developer's local UME be setup to go against a central LDAP?

If so, I would like to try that. Do you by any chance have any examples or any documentation you could point me to?

I hate to ask that. It's not like I want you to do my work for me. It's just so hard to search for things on SDN.

Thanks!

David.

Former Member
0 Kudos

David,

Frankly, I didn't try this myself.

But among 3 UME options (local DB, R/3 and LDAP) the LDAP sounds like the only applicable.

Try to start from here: http://help.sap.com/saphelp_nw04/helpdata/en/cc/cdd93f130f9115e10000000a155106/frameset.htm

VS