cancel
Showing results for 
Search instead for 
Did you mean: 

Passing R3 username & password to a web service.

Former Member
0 Kudos

Hello all,

We wrote an EJB that calls an RFC.

Exposed it as a web service to .NET clients.

What is the best way to pass R3 username and password to the WS?

Are we suppose to send them as simple parameters and encrypt the message or is there a way to somehow use SSO?

Thanks in advance, Adi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Adi,

If you were using a Java web service client, then you can refer the following help section to see how credentials are set for a standalone web service proxy, programatically in your Java code.

http://help.sap.com/saphelp_nw04/helpdata/en/ab/c955e2e2d24a888127f211f2d5043f/content.htm

since your web service consumer is written in .net, you'll need to figure out how you can do it there...may be the above code will help you figure out that...

All the best

-- Amol

Former Member
0 Kudos

Thanks Amol,

Assuming that I will use encryption+username as the inbound policy, I know how to create and add the username token.

But how can I get the user name and password later in the EJB code?

Thanks, Adi.