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,
Amey

Hi 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???

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,
    Karthika

    Hi 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

  • 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 me

    1.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.

  • Model in Web Dynpro

    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

  • Problem in executing the external webservice in a web dynpro java

    Hi,
    I have imported the Adaptive Web Service Model in web dynpro application and while executing the model, I am receiving the following error,
    Exception when retrieving the WS invoker using the execution destination
    I have tested the webservice in ws navigator which works fine.
    I have defined the destinations under destination management template of SOA.
    If anyone has encountered and solved this problem, please advise.
    Thanks,
    Appachi

    Hi Robin,
    Yes I have defined the stack trace and have defined the system & host name in configuring the destinations.
    Yes, I have given HTTP authentication to webservice.
    Advise me if anymore configurations have to be done.
    Thanks,
    Appachi

  • 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.
    thanks

    Hi,
    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

  • 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

  • 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

  • Calling a WebService on a Web Dynpro Project

    Hi Experts,
    I'd made an EJB, then a WebService of that.
    I'd tested the url in a Browser, and everything works fine... I sent the values, and got the correct response.
    Now i'm trying to call it in a Web Dynpro. I'd imported the model, added to the controller, generated a method and set all the values that the WS receive, however every time i execute an error occurs.
    This is the error in Log Viewer:
    com.sap.engine.services.webservices.addtions.exceptions.ProcessException: Cannot find the required parameter [RefPagamento] in the request message content.
    This is the code i'm using:
    wdContext.nodeRequest_PedidoAutorizacao().invalidate();
    WS_PagamentoVisa model = new WS_PagamentoVisa();
    wdContext.nodeRequest_PedidoAutorizacao().bind(new Request_PedidoAutorizacao(model));
    IPublicHotelariaController.IPedidoAutorizacaoElement input = wdContext.createPedidoAutorizacaoElement(new PedidoAutorizacao(model));
    wdContext.nodePedidoAutorizacao().bind(input);
    input.setRefPagamento("12321321323");
    wdContext.currentRequest_PedidoAutorizacaoElement().modelObject().execute();
    I believe the input is not well formed in my code, but i can't understand where's the problem.
    Can anyone help me, please?
    Thanks in advanced,
    Luis

    Hi,
    Assuming you context to be..
    Context
    --Request_PedidoAutorizacao (node)
    PedidoAutorizacao (node)
    RefPagamento (attribute)
    <i>You are invalidating Request_PedidoAutorizacao which is your main node.This node contians subnode PedidoAutorizacao</i>
    <i>which has the input attribute RefPagamento</i>.
    // try the following
    WS_PagamentoVisa model = new WS_PagamentoVisa();
    Request_PedidoAutorizacao req = new Request_PedidoAutorizacao(model);
    PedidoAutorizacao input = new PedidoAutorizacao(model);
    req.setPedidoAutorizacao(input);
    wdContext.nodeRequest_PedidoAutorizacao().bind(req);
    wdContext.currentPedidoAutorizacaoElement.setRefPagamento("12321321323");
    wdContext.currentRequest_PedidoAutorizacaoElement().modelObject().execute();
    wdContext.nodeResponse.invalidate(); // invalidate your response node

  • 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 wu

    I 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

  • Using the XML returned by XI to populate table in Web Dynpro UI

    Hi,
    In Web Dynpro,I have a scenario where i have to generate reports. For this, I enter the "Customer number", "Date" & "Item No" in 'Generate report' page  and hit the "submit" button. These details are sent as XML to XI which interacts with the ABAP R/3 system, performs the search and returns the search results as an XML
    Now, I want to display search results contained in this XML by populating it in a table.
    From, the point where the XML is returned by XI, could you please tell me the step by step process to populate this XML in a table. Please include code, if any.
    Kindly help.

    Hello Sandeep,
    Create context node with following strucure:
    <i>
    result
    -CustomerNumber
    -ItemNumber
    -Material
    -OrderDate</i>
    Create data handler:
    public class XIDataHandler extends DefaultHandler {
         private String lastAttribute;
         private IWDNodeElement newElement;
         public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) {
              if ("Result".equals(localName)) {
                   newElement = wdContext.createResultElement();
                   wdContext.nodeResult().addElement(newElement);
              } else {
                   if(null!=newElement)
                        lastAttribute = localName.trim();
         public void endElement(String namespaceURI, String localName, String rawName) {
              if ("Result".equals(localName)) {
                   newElement = null;
                   lastAttribute = null;
         public void characters(char[] data, int off, int length) {
              if(null!=newElement && null!=lastAttribute) {
                   final String value = new String(data, off, length).trim();
                   if(!"".equals(value)) {
                        newElement.setAttributeValue(lastAttribute, value);
    And parse XML in appropriate place within your application:
    try {
         SAXParserFactory factory = SAXParserFactory.newInstance();
         SAXParser parser = factory.newSAXParser();
         //Loading XML from string (XI_DOCUMENT), change if source differs
         StringReader sr = new StringReader(XI_DOCUMENT.trim());
         InputSource is = new InputSource(sr);
         parser.parse(is, new XIDataHandler());
    } catch (Exception e) {
         final StringWriter sw = new StringWriter();
         final PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         wdComponentAPI.getMessageManager().reportException(sw.toString(), true);
    Create table and table columns and map your context to it.
    Best regards, Maksim rashchynski.

  • 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,
    Anupreet

    hi,
    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

  • Using EJB Model in Web Dynpro

    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

  • Model in Web Dynpro for ABAP

    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
    vinoth

    Hi,
    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
    Srikant

    Hi 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!!

Maybe you are looking for

  • Installed new hard drive and ram but freezes on apple logo

    i have a mid 2010 macbook pro and last night i opened it up and installed a 750GB hard drive and 8gb of ram. now my computer doesn't want to boot up, even with the install DVD (original one) i have done the PRAM thing and even went back to my old har

  • How to drag files to Bluray disc in bluray internal burner, not working.

    Hi Been trying to burn various files to my MCE Tech's Bluray internal burner on my early 2008 MAC PRO...was able to do it from FCP 7 to burn to this drive a mov file and play it on a set top player. But all I want to do now is drag a folder with abou

  • Function return boolean with combine query and validation

    Wondering how would you combine a query and the condition together... Right now i have a computation that would do a single sql query. and in my validation i would use a function return boolean call the result from the computation to do some if state

  • BADI for F-28 - Customer receipt

    Hi We are making one development. In that development, our requirement is after clicking one button, my F-28 (customer receipt) should be executed in background. My incoming bank account should be debited and selected invoices (i.e. customer line ite

  • Parsing a sample xml

    <?xml version="1.0" encoding="UTF-8" ?> - <QAcctSvcRemoveMsg Type="Account"> <ActI val="75000097" /> <ActMnc val="768081215" /> <LegalEntity val="0A" /> <CPINum val="76808121" /> <FirmExtnStrtgyC val="?" /> <FirmExtnSubStrtgyC val="?" /> <IMSNum val=