cancel
Showing results for 
Search instead for 
Did you mean: 

Calling j2ee web service with portal user

Former Member
0 Kudos

Hello,

I created web service using Nwds Ejb.

I want to run this web service from sap portal iview and to receive the same user Id that logon to the portal , on the web service side.

In the j2ee Ejb code I am using :

try{

String username = myContext.getCallerPrincipal().getName();

IUser user =

UMFactory.getUserFactory().getUserByUniqueName(username);

return user.getUniqueName;

} catch(UMException e) {

return e.getMessage();

}

But the result is always Guest ?

even if I selected use sap authentication on the wsdl descriptor.

Need some help solving this issue?

Thanks in advance

Nir

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

how do you integrate web service calling into iview?

webDynpro? Flex application?

Regards

Cristian

Former Member
0 Kudos

Thanks Cristian,

Already solved the problem.

Regards

Nir

Former Member
0 Kudos

Hi,

And Could we know how you manage this?

I'm also interested in resolving this kind of issue.

Edited by: Xavier Tendron on Oct 19, 2009 3:23 PM

Former Member
0 Kudos

Hi,

Can you please send the questions and I will try to answer.

You can send it direct to me.

Regards

Nir