How To Consume UME services in Web Dynpro applications
Dear Friends,
I am developing a new web dynpro application in which i want to get the user related information in my dynpro code. I have used com.sap.secuirty.jar file in class path -> lib of my project.
I have written code sth like this.
IUser user = null;
String username = user.getCurrentUser().getSAPUser();
and defined sap.authentication as a application variable to fetch user creadentials from portal run time.(user logs in to the portal and dynpro application fetches user credentials from portal). When i do this, the login window appears twice and user needs to enter his credentials more than once. If I remove sap.authentication parameter from the application then i am not able to get the user credentials. Could you please tell me the right method of fetching the user credentials in web dynpro application? Do we need to use sap.authentication? do we need to include sharing reference of the usermanagement in our application?
kindly share your knowledge.
These might be good places for you to start.
[User|http://help.sap.com/saphelp_nw04s/helpdata/en/80/45da9619d24b61bb869c31ef3b780a/frameset.htm]
[Protecting Access to the Web Dynpro Application Using UME Permissions|http://help.sap.com/saphelp_nw04s/helpdata/en/f3/a64d401be96913e10000000a1550b0/frameset.htm]
-Michael
Edited by: Michael Shea on Sep 2, 2008 8:24 AM
Edited by: Michael Shea on Sep 2, 2008 8:25 AM
Fix link
Similar Messages
-
How to send a mail through web dynpro application
Hi
How to send a mail through web dynpro application?
ThanksHi ,
Please post some more details about your query .
One way is to can use LinkToUrl UI element and in the reference property of the UI element , give it as mailto:mail addess
Thanks.
aditya. -
Consume XI web service in web dynpro application
HI All,
I have scenario access web service in web dynpro java, which is created by XI ..Now I have WSDL file. Using that WSDL file I have imported web service model(Adaptive web service method) in my web dynpro java.
By following the PDF document = https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
I have created a Model as mentioned in the PDF.
Once model is created I have done the mapping from model to component controller, after that I need to execute the Web service model .For the execution I need to write a code in component controller :-
model class name = XIModel
XIModel obj = new XIModel();
Once I am done with the above coding , and when I try to run the application I get the following error :-
com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 200 while accessing URL:http://atind037:50000/WSDL/GetPOPDF.wsdl. Response Message: OK. Content Type: content/unknown
Could you please help me with this at the earliest , as it is a urgent issue.
Regards,
Boopathi M.Hi boopathi,
It seems your wsdl url is not correct. Put the http://atind037:50000/WSDL/GetPOPDF.wsdl
in your browser and check whether you are getting the WSDLDefinitions in xml format or not ?
In wsdl url put ? instead of .
URL : http://atind037:50000/WSDL/GetPOPDF?wsdl
call adaptive web services mit Parameter
Regards,
Mithu -
CE 7.1 - How to call CAF services from Web Dynpro
Hi,
whats the suggested way to call caf services from web dynpro?
Of course I can use the Web Service model. But can I call caf directly?
I read something about caf web dynpro model, but I cannot find it in nwds 7.1. On some older tutorial it was in context menu of caf project, but it seems to be removed.
best regards
tomHi ,
The standard way is to use the web service model.
You have to expose the the services as web service and then you can use the wsdl url in the Adaptive web service model option.
The above option will be available when you click the Model in the webdynpro application and the click create new model.
Hope it helps you.
Regards,
Srinivasan Subbiah -
Error while implementing a web service in web dynpro application
HI All,
I am trying to use a webservice in a web dynpro application.
Web service description:- This is a very simple application which takes two String inputs and when submitted displays the string in the concatenated form.
Web dynpro:- I used this web service in the web dynpro as an adaptive web service model.
The Layout design consists of two input fields which are mapped to the request fields
ex : - Request_Add.Add.S1 and Request_Add.Add.S2
A text area to display the response:- Request_Add.Response.AddResponse.Response
And a button which invokes the execute method
public void onActionWebserviceCall(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionWebserviceCall(ServerEvent)
wdThis.wdGetWebserviceCompController().executeRequest_Add();
//@@end
When I am trying to run the application I am getting error:-
Exception on execution of web service with WSDL URL 'http://<Host>:<Port>/EjbWebservice/Config1?wsdl' with operation 'add' in interface 'EjbWebserviceVi_Document'
Kindly reply.
Thanks
NehaHi,
Yes I have tested the web service in Navigator . The WSDL is also properly generated.
I have not publish the web service in UDDI but as per my understanding this is not necessary. please correct me if I am wrong.
Thanks
Neha -
How to make changes to stdandard web Dynpro applications used in ESS
Hi all
I have uploaded the standard ESS Business Package,
now the requirement is to change some features in the web dynpro application in it.How do I go about it?
Regards
MansoorEven though those are tow different tabs, but both are under one view controller.
So create a node and pass the data.. so data will be available to both tabs.
View controller is local controller
component controller is global controller.
if you want to access the node outside your view then declare the node in component controller.
Regards
Srinvias -
How to inject external configuration into web dynpro application
Hi colleagues,
I've a web dynpro application, which has some hard coded hostnames in the source code.
All hard coded hostnames should be moved to some else place, either engine parameters or external configuration file.
Searching over the project, hard coded hostnames were found in following file types:
- wdmodel files
- properties files
- java files
How to inject external configured hostnames into web dynpro applications, especially wdmodel and property files? Are threre best practices?
Thanks for any hint!
Best regards
Danielproperty file is supposed to do that job, you can configure the value at nwa after the application is deployed.
Configuring a Web Dynpro Application (Java) - IT Scenarios at a Glance - SAP Library -
How to get User Id in Web dynpro application
Hi Experts,
I am running web dynpro application with authentication checkbox set. I want to display user id of the user in my application. I am using following code in Init method of component controller.
IWDClientUser wdUser = WDClientUser.getCurrentUser();
WdContext.currentContextElement().setUserName (wdUser.getClientUserID());
Here I am getting some integer value as userId.
I am not using Portals, so solutions suggested for portal are not useful for me .
Is there any way to get this uset id.
Thanks in advancehi
try this piece of code
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
if (user != null)
IUserAccount[] acct = user.getUserAccounts();
if(acct[0] != null)
String strUserid = acct[0].getLogonUid();
wdContext.currentZtms_Fm_Regupdate_InputElement().setAssoid(new String(strUserid));
Note: Defining the IUser will show an error. To resolve this, within the properties of
the project, choose Java build path -> Libraries -> Add external jars ->
com.sap.securities -> lib -> com.sap.security.api. Open this file and retype the code. -
How to reference Portal Theme in Web Dynpro Application?
Hi All,
I have implemented a WDA that is being embedded into the Portal. My customer has designed his own Portal Theme.
However, the WDAs embedded into the Portal do not appear in the style of the Portal Theme.
Now, my question is which means are required in order to have the WDAs use the same Theme as the Portal?
Can I provide WDA parameter WDTHEMEROOT with the URI of the Portal Theme? If yes, how do I get the URI of the Portal Theme?
I guess parameter WDFORCEEXTERNALSTYLESHEET also is relevant in this matter... Please let me know how I get this working!
THANKS
JohannesHi Johan,
Please go through this links..
Portal Theme in Webdynpro ABAP
Re: Deriving Portal Theme
also check this..
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8?quicklink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/WDABAP/StylesheetforWDAwithoutintegratinginSAP+Portal
Cheers
Kris. -
How to make use of Portal service in the web dynpro application
hi
I have some portal service and how to use that in the web dynpro application.
and also what is the main diff between Portal Component and web dynpro application.
do we required portal to run web dynpro application.
thanks
mmukeshHi,
>> I have some portal service and how to use that in the web dynpro application.
Yes. U can use Portal service in webdynpro. Check the link given by subathra.
>> and also what is the main diff between Portal Component and web dynpro application
Portal Components are components designed to run in portal server while webdynpro application can run in J2EE WebAS.
>> do we required portal to run web dynpro application.
No for general cases. Just WebAS is sufficient to run webdynpro appl. But if u use portal service in ur webdynpro appl, then make sure both (portal service and webdynpro appl) run on same J2EE engine. That is mandatory.
Regards,
Vijai -
Integrating Help files in Web Dynpro Application
The requirement is : To give context specific help for each fields..
Description:The requirement is to provide context specific help..for each field that would appear on dynpro screen..
Now what that means is.. for each field on the screen...there will be a "?" icon next to it..when the user clicks on that "?" icon...a small pop-up type of information. box should come up...displaying the text corresponding to that field..this u might of seen on some of the web sites...or microsoft applications..
No we have to store the help files..in some proper place either KM...or anywhere...and maintaining the relationship between the field and it's corresponding help file.One of the option for this is to use microsoft help tool which creates files in the .chm format and then use these files for our purpose.
So can anyone please guide me what's will be the best way to achieve my purpose .chm files where i the help files will be stored and how they can be accessed in Web Dynpro Application.If u have any good suggestion apart from using .chm files then please suggest me.Please try to give a detailed solution.
Any direction will be appreciated even if just to the proper place for a forum post of this nature or documentation
that will send me down the right path.Hi Candace, thanks for your time!
Nothing is "clickable".... as in, nothing will is hyperlinked to each individual file....
In my settings for items in this region, I have chosen mime type image, Image or Display Name Link, and when updated as attributes....
All that appears for each item/file is Image or Display Name and item updated info, though neither of which is clickable, or hyperlinked.....
Arrrrrghhhh.......... -
Unable to consume secured Web service from a Dynpro application
Hello,
I have followed <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/bac36a469e4c75aba646077e71516d/frameset.htm">this tutorial</a>
in order to protect and consume a secured Web service from a Dynpro application using SAP logon ticket.
The problem is that after implementing everything needed I receive 401 Unauthorized when I am trying to consume it from the web dynpro side.
If I manually transfer the request the credentials, before the execute i.e:
modObj._setUser
modObj._setPassword
modObj.execute();
I am able to call it, meaning the dynpro application doesn't transfer these credentials to the Webservice even though it's authentication property is set to true.
Any idea how to solve it?
Roy
Message was edited by:
Roy CohenTry below steps
Add jars
o security.class
o tc/sec/destinations/interface
Setting WebDynpro project property
o Project>Properties>Web Dynpro References-->Interface references
 Name=tcsecdestinations~interface
o Project>Properties>Web Dynpro References-->Service reference
 Name=webservices
 Name=tcsecdestinations~service
Dynamically Set httpdestination and Call web service
final InitialContext ctx = new InitialContext();
final DestinationService dstService = (DestinationService)ctx.lookup(DestinationService.JNDI_KEY);
if (dstService== null)
throw new NamingException ("Destination service not available");
final Destination destination = dstService.getDestination("HTTP"," DestinationName");
// getting user name
Properties destprop = destination.getDestinationProperties();
String username = destprop.getProperty("USERNAME");
String password = destprop.getProperty("PASSWORD");
final HTTPDestination httpDestination = (HTTPDestination) destination;
HttpURLConnection httpConnection = httpDestination.getURLConnection();
String httpURL = String.valueOf(httpConnection.getURL());
Request_AdvLocationVer1ViDocument_getLocation obj=wdContext.currentRequest_AdvLocationVer1ViDocument_getLocationElement().modelObject();
obj._setUser( user );
obj._setPassword(pass);
obj._setEndPoint(httpURL);
obj.execute();
Rahul -
Consuming External Web Services in Web Dynpro Java
Hi All,
I an trying to consume external web service in Web dynpro java using Adaptive Web Service Model.
But getting below mentioned error while executing the web service
Exception on execution of web service with WSDL URL 'D:\Web Service Project\CurrencyConvertor.asmx.xml' with operation 'ConversionRate' in interface 'CurrencyConvertorSoap'
Steps i followed are as below:
1. Created Adaptive Web Service Model for this i select WSDL source as "Local File System or URL"
In next step i select No logical destination radio button and click on next
In next step, browse the WSDL file and successfully import the WSDL file.
2. After successfully importing the WSDL file i wrote below code in Init method:
WebModel modelweb = new WebModel();
Request_ConversionRate reqConversion = new Request_ConversionRate(modelweb);
ConversionRate conversion= new ConversionRate(modelweb);
reqConversion.setConversionRate(conversion);
wdContext.nodeRequest_ConversionRate().bind(reqConversion);
3.After that execute the model - code is given below :
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentRequest_ConversionRateElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeConversionRateResponse().invalidate();
catch(Exception e)
manager.reportException(e.getMessage(), false);
Please let me know how to resolve this.
Thanks
SandyHi,
You need to use destinations for metadata and modeldata.
Configure those destination in Visula admin.
you can refer to following link.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
Regards,
Shruti. -
How to call web services in WEB DYNPRO ABAP
Hi ABAPER'S,
Please let me know how to call web services in web dynpro.
Thanks,
Sandy.Hi Sandy,
Please check this blog..
/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
also cehck this...
call the webservices in webdynpro ABAP.
calling webservice in webdynpro component
Re: Web Services in WDA.
Cheers,
Kris.
Edited by: kissnas on May 24, 2011 11:37 AM -
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D.
Maybe you are looking for
-
I have arranged my tool panels (swatches/paragraph styles etc.) onto the second monitor. However, every time I restart InDesign, all my tool panels go back to one monitor and I have to drag all the tool panels back to the second monitor. Is there som
-
Well is needed buy the USA EDU Ver ?
I have MM-STUDIO MX 2004 EDUCATION I think is USA Ver., well to upgrade to Web Premium CS4 what to do ? I live in Cyprus-EUROPE, Well is needed buy the USA EDU Ver ? When Web Premium CS4 will be available about ?
-
Hi, I have CS2 version and there was a "photoshop actions"folder. I am trying the trial CS5 extended with intent to purchase. I only see an "actions" folder. Can I just copy the PS actions folder from CS2 and add to CS5 as a separate folder? Thanks f
-
Hi all am just finished backing up and want to reinstall lion...Where do i get the disks?....is there a new operating system.....
-
I have 10.5 installed on a quad core Xserve, configured as Workgroup, (therefore it's own OD master), and bound to my company's Active Directory. If I open up Directory, use the [+] button at the bottom left, and create a New Location, on save, it ap