Integrate VC models within Web Dynpro?
Hi
It easily is possible to integrate Web Dynpro Components within Visual Composer models. Does it work the other way around too - is it possible to integrate VC models within Web Dynpro, and if yes, how?
Regards
Hi Jan,
Unfortunately not. Currently there's no way of doing this (other than having them as UI for human tasks in BPM, but this is not what you want I guess). The generated Web Dynpro application (from the Visual Composer model cannot be consumed as a project in the IDE, but it you can try to call it from the WD application (I just don't remeber the exact API for this) like it was any other WD application (after it's eployed, of course).
Regards,
Netanel
Similar Messages
-
Error while importing EJB model in Web dynpro: Unable to fetch the EJBs.
Hi,
We are getting the below error while importing ejb model to Web dynpro.
Error :
Unable to fetch the EJBs. Check if the selected Enterprise Application contain the EJBs.
I have created the public part-> It has a reference to EJB client and the enterprise application also has reference to the EJB project.The EJB is also added in dependency list.
But still we are getting this error. Could anyone please explain what can i do to solve this issue.
Best Regards,
KarthikaHi Vishweshwara,
Thanks for your reply.
Please find the steps i followed while importing EJB model in webdynpro.
1. The Entity forwarding permission has been enabled.
2. public part reference has been created and through the reference entity option the ejbDC->Client public part is selected.
I followed all the steps mentioned in the document. But still i am getting that error. In EJB DC we have list of JPA entities and stateless session beans are exposed as a webservice(top-down manner).The enterprise application has a reference to the EJB DC.
I could be able to invoke the ejb service beans from ejb explorer and Webservice navigator.
I am able to insert,delete and modify the records from there.
Please let me know what could i do to resolve this error?
Best Regards,
Karthika
Edited by: SAKarthika on Apr 29, 2011 1:43 PM -
Problem Importing Web Service as model in Web Dynpro
Hi experts,
I want to import a new adaptive web service model into web dynpro. As when I open Data Model to create the model, it prompt me login to DTR as the feature required logon to DTR. After I logon to DTR, there is nothing happen.
Any idea what is done wrong ?
help help.
thanksHi,
Just found out that there is error and it is as followed:
com.sap.cms.util.exception.client.CMSClientVersionConflictException: Version conflict: to call method "readSystemMessages" the minimum server version is "Release6.40 SP16 Patch level 00" but the used server has only version "Release 6.40 SP15 Patch level 00"
at com.sap.cms.client.organizerAPI.CMSTransportOrganizerAPI.versionCheck(CMSTransportOrganizerAPI.java:1232)
at com.sap.cms.client.organizerAPI.CMSTransportOrganizerAPI.readSystemMessages(CMSTransportOrganizerAPI.java:1164)
at com.sap.cms.client.ideAPI.CmsConfiguration.readSystemMessagesMap(CmsConfiguration.java:445)
at com.sap.ide.eclipse.component.devconf.DevConfManager.getSystemMessages(DevConfManager.java:809)
at com.sap.ide.eclipse.component.provider.listener.DevConfLoginListener.showSystemMessages(DevConfLoginListener.java:97)
at com.sap.ide.eclipse.component.provider.listener.DevConfLoginListener.loginPerformed(DevConfLoginListener.java:91)
at com.sap.ide.login.UserValidator$1.run(UserValidator.java:161)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:357)
at com.sap.ide.login.UserValidator.getData(UserValidator.java:411)
at com.sap.ide.login.UserValidator.getDefaultServerData(UserValidator.java:131)
at com.sap.ide.login.UserValidator.getDefaultServerData(UserValidator.java:116)
at com.sap.ide.metamodel.core.plugin.DtrHelper.logon(DtrHelper.java:401)
at com.sap.ide.metamodel.core.repository.RepositoryServices.showReadonlyRepositoryObjectsAndCheckout(RepositoryServices.java:345)
at com.sap.ide.metamodel.core.repository.RepositoryServices.checkWriteability(RepositoryServices.java:279)
at com.sap.ide.webdynpro.service.controllereditor.ServiceWithUI.createModelUsages(ServiceWithUI.java:727)
at com.sap.ide.webdynpro.tsmodel.application.provider.ModelUsageNodeProvider.createUniqueName(ModelUsageNodeProvider.java:63)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
Help Help -
About import web service model in web dynpro dc
Hi all,when i import a web service model in web dynpro dc, an error occurs.
java.lang.Exception: com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter$FatalImportException: Model setting definition 'considerNillable' not defined for Adaptive Web Service model type
at com.sap.tc.webdynpro.model.webservice.modeltype.service.AWSModelImporterService.createModel(AWSModelImporterService.java:67)
at com.sap.tc.webdynpro.model.webservice.modeltype.ui.wizard.AWSModelCreationWizard.createModel(AWSModelCreationWizard.java:238)
at com.sap.ide.cmi.core.model.importer.CMIWizard$3.run(CMIWizard.java:246)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter$FatalImportException: Model setting definition 'considerNillable' not defined for Adaptive Web Service model type
at com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter.setModelSetting(AWSModelImporter.java:174)
at com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter.importModel(AWSModelImporter.java:632)
at com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter.doImport(AWSModelImporter.java:351)
at com.sap.tc.webdynpro.model.webservice.modeltype.service.AWSModelImporterService.createModel(AWSModelImporterService.java:65)
... 3 more
please tell me1.Create New Model.
2.Select the type of model as Adaptive web service model and click next.
3.Give Model name and Model Package .Select Available WSDL sources.
a.If u get wsdl from local system,select Remote Location/File system.
b.If u get wsdl from Sap location ,u have to configure with esr reposirtry.
4.Select Remote Location/File System and click next.Get WSDL URL from services repositry and click next.
5.Click finish. -
Generate web service model in web dynpro
Hi,
I have a web service which I generated a model in web dynpro and working fine.
But the problem is that when I update my web service(change in method prototype, number of parameters, data type changes) I need to regenerate the model again and need to map to context elements.
So, is there any way so that I can update my model instead of regenerating entire model to reflect to new changes in web service.
Thanks for your time and effort.
Regards,
Shiva.Hi Shiva,
Please look at this weblog for reimporting web service model.
/people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java
There is no direct method available for that. But u can do by following this method.
Regards,
Bhavik -
When changing the WebService already exposed and linked with a model in WebDynpro, can we modernize the changed in WebDynpro?
Please check this.
/people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java
Regards,Anilkumar -
Interactive Form within Web Dynpro ABAP
Hi,
I've an Adobe interactive form element within Web Dynpro ABAP view. I've more than one WebDynproActiveX buttons within the Interactive form (like Submit, Cancel, Clear).
How can I differentiate the user selection within Webdynpro ? Whether the user selected Submit or Cancel or Clear ? Can we associate any function code for each button ?
Thanks
RavikumarHi Ravi,
You can take a context attribute lets say "STATUS"(string) in your form context. For your buttons in the form, in click event set the value. like
STATUS.rawValue = "1"; (eg Submit)
STATUS.rawValue = "2"; (eg Cancel)
And in your submit event read this context attribute and you can use CASE like when 1 , when 2 etc and you can execute your code accordingly.
it should solve your problem.
With Regards,
Ravi.D -
Using External java within web dynpro DC
Hi
I'm new in web dynpro and I'm facing a problem.
I'm doing a web dynpro DC application and I want to use some external java classes I have created into my DC. But I don't really know how to do it, I tried EJB but I don't exactly how it works.
by the way, I was using a stand along web dynpro before and this worked fine, I just needed to create a package within my web dynpro project with all my class architecture to have them directly. but now with the DC stuff, it's not the same at all. so please help
thanksHi
Better you create a Java Development component and add all your java classes to that DC and build it.
Create a webdynpro DC to develop front end and add the java DC in used DC's of your Webdynpro DC.
This is the way you can use the java classes effectively with out redundancy.
If you create a package inside a normal webdynpro project, then you can not reuse them later in other webdynpro proj
Go with SAP component model by creating 2 development components one for java and other for webdynpro and define the reusability (Used DC's) in DC Metadata.
Regards
Kalyan -
Return parameter of a Webservice model in web dynpro
Hii,
I have imported one webservice model in my web dynpro application.
After execution, when web service returns 'NULL' ( i checked in web service navigator)
but at the same time, the response node in web dynpro is NOT NULL and it is showing size 1 ??
How come this is possible? When i check the attributes of response node, they are all NULL...
Im checking response node this way==>
wdContext.currentRequest_BodyShopUAViDocument_checkUsernamePasswordElement().setUsername(uniqueName);
wdContext.currentRequest_BodyShopUAViDocument_checkUsernamePasswordElement().setPassword("dummy");
wdThis.executeRequest_BodyShopUAViDocument_checkUsernamePassword();
if(wdContext.nodeResponse() == null){
WDClientUser.forceLogoffClientUser("someURL");
Pls help me in resolving this...
regards,
AmeyHi Manoj,
I'm checking webservice, this is the session bean method for which i hav created web service==>
public UserDTO checkUsernamePassword(String username, String password) {
// TODO : Implement
UserDTO UserMasterResult = null;
java.sql.Date sqlDate = null;
java.util.Date utilDate = null;
try{
Collection result = userMasterLocalHome.findByUsernamePassword(username,password);
// If invalid user
if (result.size() == 0)
return UserMasterResult;
}else {
// Valid user found. Returning the details
UserMasterResult = new UserDTO();
for (Iterator it = result.iterator(); it.hasNext();) {
userMasterLocal = (UserMasterLocal) it.next();
UserMasterResult.setLoginid( userMasterLocal.getLoginid() );
UserMasterResult.setUsername(userMasterLocal.getUsername());
UserMasterResult.setPassword(userMasterLocal.getPassword());
UserMasterResult.setUserrole(userMasterLocal.getUserrole());
UserMasterResult.setEmail(userMasterLocal.getEmail());
UserMasterResult.setCreatedAt(userMasterLocal.getCreatedAt());
UserMasterResult.setCreatedBy(userMasterLocal.getCreatedBy());
UserMasterResult.setChangedAt(userMasterLocal.getChangedAt());
UserMasterResult.setChangedBy(userMasterLocal.getChangedBy());
UserMasterResult.setData1UserMaster(userMasterLocal.getData1UserMaster());
UserMasterResult.setData2UserMaster(userMasterLocal.getData2UserMaster());
UserMasterResult.setData3UserMaster(userMasterLocal.getData3UserMaster());
}catch(Exception e){
e.printStackTrace();
return UserMasterResult;
M i going wrong somewhere here??? -
Using Java Model In Web Dynpro
Hi
I have a Java Bean. I have created a JAR file for this DC. A public Part si created for this DC and the JAr file has been added to it.
In the Web Dynpro DC, i add it in the used DCs. But when i go for Add Used Components, iam not able to see it there. And also when i am creating a model by selecting Import JavaBean Model, and selecting the Public Parts of the USed DCs Option, it gives "No Java Beans available for Import" message.
Can anyone please help in this regard, as to how the java bena model is to be used.
Thanks & regards,
Anupreethi,
just check out some of these links, i guess they points to your problem,
Doubt in creating a java Bean Model
/people/anilkumar.vippagunta2/blog/2005/09/02/java-bean-model-importer-in-web-dynpro
Importing a java bean model from another DC
Expose EJB through Java Bean model importer in Web Dynpro
hope it helps
regards -
Can't create model in Web Dynpro
Hi all,
I want to create a model in a web dynpro project.
When i click the "models" --> "Create Model" in the , it appear below error.
===================================================
Internal error
Plugin name :Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
Method : createModel
Exception : java.lang.NullPointerException: null
===================================================
In the log file :
======================================================
com.sap.ide.webdynpro.ui.service.ServicesUI [Thread[main,5,main]] Error: Internal error
Plugin name: Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
Method : createModel
Message : An error ocurred. See error log for more details.
Exception : java.lang.NullPointerException: null
!STACK 0
java.lang.NullPointerException
at com.sap.ide.jcb.core.service.SAPLogonHelper.<init>(SAPLogonHelper.java:48)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.fillUpLoadBalancingPaneSystems(SAPLogonPage.java:1003)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.show(SAPLogonPage.java:303)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.createControl(SAPLogonPage.java:91)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.createPageControls(ModelWizard.java:408)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:524)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:473)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.createModel(ModelEditorCallback.java:52)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.createModelWithUI(ModelService.java:70)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.createModel(ServiceWithUI.java:49)
at com.sap.ide.webdynpro.tsmodel.application.provider.ModelNodeProvider.createUniqueName(ModelNodeProvider.java:55)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)
at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)
at com.sap.ide.webdynpro.projectbrowser.actions.PBCreateModelAction.run(PBCreateModelAction.java:95)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
=============================================================
NWDS
Version: 7.0.13
Build id: 200708072056
OS
Window Vista Home Basic 32bit
Could anyone help me?
Regards.
Wenjr
Message was edited by:
wenjr wuI encountered the same issue in all NWDS versions I tested on Windows Vista, while it works perfectly fine on Windows XP.
This issue is caused by com.sap.ide.jcb.core.service.SAPLogonHelper not being able to retrieve system environment variables on Windows Vista.
Fortunately the solution is simple: let NWDS think that it is running on Windows XP instead of Windows Vista. This can be achieved by adding the following parameter to "vm.parameters" in the NWDS installation directory (probably C:\Program Files\SAP\IDE\IDE70\eclipse):
-Dos.name='Windows XP'
(don't forget the single qoutes)
So your vm.parameters should look something like:
-Xmx1024m
-Xms256m
-XX:PermSize=32m
-XX:MaxPermSize=128m
-Dos.name='Windows XP'
Regards,
Hans de Boer
Edited by: Hans de Boer on Jun 25, 2008 1:17 PM -
I have to redeploy my EJB.ear (used as a Web Dynpro model) everytime the J2EE server is started (only the first time), after which My Web Dynpro program continues to work. In other words, the following code in my Command Bean is not successful without redeploying the EJB.ear for some reason. Can someone please tell me what I am doing wrong ?
home = (MyLocalHome) context.lookup("localejbs/MySessBean");Walter, thanks for the reply. When I checked the EJB Container in VA after starting up the J2EE server, my EJB shows a blue check mark already with the START button grayed out (STOP button is active). So I would think the EJB is started already... HOWEVER, I noticed that when I hit the DEPLOY button there, I see a warning message popping up which says : "This Application hasn't J2EE modules, so it cannot be loaded. Proceeding with Deploy". I go ahead and finish the Deploy and then my EJB works. It seems I am not including a module when I deploy it ?
Paul -
Hi,
Web dynpro ( ABAP ) comes under MVC pattern. In that "MVC" V & C is clear. For business logic we are using this model.My question is while creating a web dynpro component..
1)how model comes into the picture.
2) Actually where we are defining this "MODEL"
Thanks in advance
vinothHi,
I'm afraid you've put the MVC model in place, violating the MVC rules.
- you use a webdynpro component as model, sharing the data via the context, this means you create the model using the controller of that component
- Model: this is not available up to now in WDA, but that place is taken by the assistance class: [documentation|http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm]
- View: this in fact is only the layout tab in the views
- Controller: all the rest: methods, attributes, context, events, actions,..
an overview can be found in [documentation|http://help.sap.com/saphelp_nw2004s/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm]
grtz,
Koen -
Oracle or MS SQL Server, EJB Models and Web Dynpro Application
Hi
I've a table in MS SQL database. I've created in Visual Admin, the datasource(jdbc/MyAlias) for the above. SQL Server has Employee Table with EmpId, FirstName, LastName and Description as its Columns.
I want to display, modify , insert and delete entries from the Employee Table using web Dynpro. For this we have used JDBC method by which we create class file which will have JDBC connectivity and logic for getting data from backend. This class file then used for display, update and other operations. And the context is built at design time.
This is not proper method, as this doesn't come under perview of MVC concept.
I want to use EJB Models for this case. But I'm stuck with some problems.
1. How do I implement EJB models in this scenario.
2. How do EJB module (entity bean) connects to external database.
3. What are the most logical steps to be used in this case.
Any pointers for this will greatly appreciated with points?
So far I was able to do create EJB module of Entity Bean type with all interfaces. But beyond this I'm not able to proceed. Do let me know the step wise procedure for this kind of scenario.
Thanks
SrikantHi Srikant,
I have worked on similar stuff, but the scenario was a little different. I worked on creating Web Services using EJBs, but the basic part was that, the web service was supposed to interact with the SQL Server database. So maybe I can help you...
First thing which is needed is that you have created the JDBC Connector in your Visual Administrator correctly. If you wish to cross check, you can see my answer in the following thread:
JDBC error
In this thread itself I have given the code which is the solution to your problem (this is what i believe). I am pasting the code again:
<b>InitialContext initialContext = new InitialContext();
DataSource dataSource = (DataSource)initialContext.lookup("jdbc/MyAlias");
java.sql.Connection connection = dataSource.getConnection();</b>
You can use this code in the method of your EJB, and then you can easily use this connection object to access your database tables using SQL queries.
And if by any chance you are looking for a step wise procedure for creating a web service from an EJB, then give me your email address, i will send you the doc.
Bye
Ankur
Do reward points if it helps!! -
Using External JAR file within Web Dynpro DC
Hi,
I have created a Web Dynpro DC and I need to use an external JAR file.
I want to use this external JAR file within the same Web Dynpro DC and NOT creating another DC to house the external JAR file as I can see from the blog.
I have included the external JAR file in the "lib" folder of the Web Dynpro DC.
When I tried to perform a DC build, it keeps complaining error....
How should I solve this problem...
Thanks.
mikeHi Mike,
Go through the below which might help you.
Re: Lookup of RFC Destinations
Re: Import a Java Bean from a different DC
Web Dynpro References
Re: j2ee library with webdynpro
Re: Web Services :HTTP Destination not getting resloved.
http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce3e4df201d63e10000000a11466f/frameset.htm
Thanks n Regards,
Jhansi Miryala
Maybe you are looking for
-
10.5.6 update is installing updates in Previous System/Applications folder.
After updating from OS X 10.5.5 to 10.5.6 I discovered several of the updates were installed into Previous System/Applications rather than the Macintosh HD/Applications folder. This resulted in Mail (3.1 build 914/933) quitting repeatedly which is wh
-
Can I put only the top image of a stack in a Mobile Album?
I have an album that contains stacks and I would like to put only the top images of these stacks in a Mobile Album. Is this possible? I have tried to make a new album and only put the top images in this new album without sucess. Is it possible to
-
When i go to start a new email in yahoo mail the aoutomatic insertion feature that lets me type just a few letters then fills in the rest of the email address do not work in firefox
-
I try to download an app and it says "waiting" for 3 seconds then disappears. EVERY TIME. I tried creating a new account, restarting phone, checking for software update, lots of different apps, on full 3G service, fast wifi network, nothing works. I'
-
FBCJ For Bank Account???
I'm trying to set up the Cash Book for a new business unit (FBCJ). My initial assumption with this was its 1 transaction for both Cash & Bank account cash books, with each being on its own page per currency/account. I've now found an official SAP do