Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Security For Webservice

Former Member
0 Kudos

Hi,

How to add a security for webservices in NetWeaver Developer Studio.

regards,

Guru

1 ACCEPTED SOLUTION

Former Member
0 Kudos

What does that mean by adding security on NWDS?

If you mean building Portal WebService client and and requires the authentication via User mapping or SAP Logon ticket, you can use

I<Service> clientUserObj = client.getSecurisedServiceConnection(request.getUser);

Regards,

Piyush

ps: please mark for useful answers.

4 REPLIES 4

Former Member
0 Kudos

What does that mean by adding security on NWDS?

If you mean building Portal WebService client and and requires the authentication via User mapping or SAP Logon ticket, you can use

I<Service> clientUserObj = client.getSecurisedServiceConnection(request.getUser);

Regards,

Piyush

ps: please mark for useful answers.

0 Kudos

hi,

can i add security like userName and passWord while creatin webservice for a session bean.

my requirement is only authorised users can use the webservice.

regards

Guru

0 Kudos

Yes. You can do that.

In place of getting User Object from request, thorugh request.getUser?()

create IUser and pass it to the method.

Regards,

Piyush

ps: please award points if you find the answer useful.

Former Member
0 Kudos

Hi

please check the link below

Authentication of a Web Service Client with User-Password Request

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/aed49d0d-0301-0010-6d84-e3e...

Web Service Authentication help

http://help.sap.com/saphelp_nw04/helpdata/en/7c/a6d13f83a14d21e10000000a1550b0/frameset.htm

please scroll at teh end of teh above page and u will all the details in the lonk at teh end

Hope this helps, please mark points for helpful answers

regards

rajeshkr