Importing Model: Response.setResult?

Hello,
i created a web service including an ejb bean which provides the method getAllData() with return type String[][].
After this i created a web service model for accessing the web dynpro. I am importing a web service model via url. The NWDS automatically creates the java code including the following lines:
Response = new Response_TelBuchWebServiceDisplayViDocument_getAllData();
               Response.setResult(logicalPort.getAllData());
The problem is, that the Method setResult is not known:
The method setResult(String[][]) is undefined for the type Response_TelBuchWebServiceDisplayViDocument_getAllData.
I do not know where to start with this problem,
any hints?
Thanks,
André

I am having similar problems.
I created a Java bean to hold some employee data:
package areva.eeds.emp.bo;
import java.io.Serializable;
public class EmployeeData implements Serializable {
     String _employeeID;
     String _firstName;
     String _middleName;
     String _lastName;
     public EmployeeData(String employeeID, String firstName, String middleName, String lastName) {
          _employeeID = employeeID;
          _firstName = firstName;
          _middleName = middleName;
          _lastName = lastName;
      * @return
     public String get_employeeID() {
          return _employeeID;
      * @return
     public String get_firstName() {
          return _firstName;
      * @return
     public String get_lastName() {
          return _lastName;
      * @return
     public String get_middleName() {
          return _middleName;
      * @param string
     public void set_employeeID(String string) {
          _employeeID = string;
      * @param string
     public void set_firstName(String string) {
          _firstName = string;
      * @param string
     public void set_lastName(String string) {
          _lastName = string;
      * @param string
     public void set_middleName(String string) {
          _middleName = string;
I created a stateless session bean with a method to return an array of EmployeeData beans:
* Business Method.
public EmployeeData[] getEmployeeListByCostCenter(String costCenter) {
     ArrayList list = new ArrayList();
     Statement stmt = null;
     ResultSet rst = null;
     try {
          if (ds != null) {
               conn = ds.getConnection();
               if (conn != null) {
                    stmt = conn.createStatement();
                    rst =
                         stmt.executeQuery(
                              "SELECT eeds_emp_id, "
                                   + "eeds_fname, "
                                   + "eeds_mname, "
                                   + "eeds_lname "
                                   + "FROM eeds_emp "
                                   + "where eeds_costcenter = '"
                                   + costCenter
                                   + "'");
                    while (rst.next()) {
                         EmployeeData ed = new EmployeeData(rst.getString(1),
                                                                    rst.getString(2),
                                                                    rst.getString(3),
                                                                    rst.getString(4));
                         list.add(ed);
                    return (EmployeeData[]) list.toArray(new EmployeeData[] {});
               } else {
                    return null;
          } else {
               return null;
     } catch (Exception ex) {
          ex.printStackTrace();
          return null;
     } finally {
          try {
               stmt.close();
          } catch (SQLException e) {
               e.printStackTrace();
I created a web service from the EJB, tested, and the WS return the correct number of EMployeeData beans.  However, when I try to create a WDP model from the WS and then apply a table template, I again get the correct number of rows in the table, but the columns are comming back empty.
HELLLPPPP!!!!

Similar Messages

  • How to Re-import model in webdynpro in NWDS 7.1 EHP1 version

    Hi All,
    We have webdynpro DC in NWDS 7.1 EHP1 version, we are trying to re-import the model which already exists in DC. actually in the BAPI ABAP people is added new field in the BAPI structure then we are trying to incorporate the same changes in webdynpro to reflect the new field in model  through the Re-import model.
    But when we right click on model and then selected the re-import then it is not happening any thing in studio its a kind of new action, but ideally in general  it should open the new window where the SAP r/3 credentials should be given to re-import the model. In our case nothing is happening after we right click on the model on selection of "Re-import" model.
    Please let me know what is the issue we have?, do we have any issue with our studio  NWDS 7.1 EHP1 version? or should we follow any other procedure to re-import model in NWDS 7.1 EHP1 version.
    In other versions of studio like earlier versions we were able to re-import the model thru re-import the model by right click on model. but the current version of studio NWDS 7.1 EHP1 should have problem for re-importing the model.
    Thanks,
    Portaluser100

    Hi,
    1.Its Simple way. Just Right click on your Model--- Choose Re-Import. Then choose your RFCu2026Click on Finish
    2. while re import the RFC u will get some error. By cache invalidation and Re Start the J2EE Engine Server you can solve the problem.
    After Re-Import the model you can do cache invalidation
    There is a need to restart the portal system to clear the cache. Once its done your application would work fine.
    Another thing that you can try to clear the cache is
    1. Go to link http://<servername> : <portname> /webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole
    2. Click on the last link in detail navigation "Invalidation of ARFC Metadata Cache"
    3. From "Adaptive RFC Metadata Cache Invalidation " tray, choose the JCO that you are using
    4. From " Dictionaries Cache Invalidation" tray, choose the dictionary(model) whose cache you want to clear.
    The above option saves time but in case it doesnu2019t work, you can go in for Portal restart. It would surely work.
    If you have more clarification please read the [Document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df]
    Hope this helps!!
    Best Regards
    Vijay K

  • NWDS - "Import Model" Window - Password field is disabled

    Hi,
    I am using the below version of NWDS;
    Version: 7.0.14
    Build id: 200711171656
    When i try to import/re-import a model, the Password field on the Import Model Window is disabled. Can anyone please suggest what should i do to get this enabled. I am unable to proceed further.
    Thanks.

    HI,
    I hope you are entering the landscape directory server URL in the specified path:
    NWDS->Windows->Preferences->Java Development Infrastructure->enter URL (try to ping and check if this works).
    once okay then just restart your nwds.
    In case everything is fine. Please check with your network team.
    Regards,
    Gaurav

  • "Cannot import certificate response" for SSL in STRUSTSSO2

    Hi
    I have got an SSL certificate signed from verisign for my ECC5.0 SP17 backend. When I try to import this certificate response in Tr STRUSTSSO2 it says cannot import certificate response.
    Please help.
    Thanks
    Sheril

    Hi
    Thanks for the helping me out. I have managed to find a fix for the problem. All you had to do was to restore the SSL certificate. I was trying to do this for a system which was a copy of the production and the certificate was generated for the system before the refresh. So all I had to do was to restore the SSL.
    Thanks
    Sheril
    Thanks
    Sheril

  • Import model from OWB repository

    We have an OWB repository with several 100 tables, mappings, etc. what we try to import but SQL Modeler seems to import nothing although it gives no errors.
    We've found that before importing all the OWB environment variables must be set.
    Which we did.
    Then it seems to connect to the repository, do some processing and returns but without any changes in the model.
    Did anyone import model from OWB successfully?
    We are using version 10.2 OWB and database.
    Bye,
    Gabor

    OK ive imported from Designer into OSDM just fine.
    Good. Glad this works.
    However things I dont like so far ...;)
    The properties palete can you make it like owb in that when i open it and change context in the browser it updates? I dont want to have to keep going show properties.
    In future releases User Interface will be adresses to be more intuitive and to be more SQL developer alike
    Pushing the OK button does not appear to do anything the properties window stays open so how is it different to apply?
    Sorry, but we don't understand. Pushing OK should work and should close the property window.
    Things I dont like... the number of clicks to see information ( no hotkeys or shortcuts  )
    Agree. In future releases User Interface will be adresses to be more intuitive and to be more SQL developer alike
    Next Early Adopter will have new dialog for entities and tables
    No drag n drop columns from 1 table to another. No right click on browser nodes to create keys etc No CTL drop no SHIFT drop
    You can drag columns
    an enhancement request will be created
    Why cant I reorder columns by moving them in the browser? Then I could move them visually. This also applies to property paletes if I have to go to the effort of highlighting a current row then why cant I just grab it and move it?
    You can reorder columns/attributes by the "up" and "down" arrows after you highlighted the column or attribute in their respective property window.
    an enhancement request will be created for doing this from the browser and the grabbing
    Appears to be no ability to set common properties over a number of attributes. If I select a number of columns I cant pull up a property pallete to set a common attribute on them.
    an enhancement request will be created
    I could not get the enginer to logical model to enable
    Should work. when you have the relational model, use the engineering to logical model icon (2 red arrows) or the design menu option and do engineer to logical model
    Otherwise looks promising
    Thank you!!
    Kind regards,
    René De Vleeschauwer
    SQL Developer Data Modeling team

  • Importing model

    I was able to successfully import model from the existing schema. But it only generated physical schema and not logical model. I want to use this tool for future enhancement for which i need to use logical model, how do i get logical model from export?

    Got to the menu Design -> Engineer to logical model. Then you get a dialog to select which tables and realtionships (FKs) to retrofit. This will produce entities and relationships along with unique identifiers, etc. The only thing you really have to do is adding the relationship names.

  • Can't Import models

    Hello experts.
    I'm new in SAP Visual Composer and I am trying to do this [sample|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50ff2c7d-9fb8-2b10-e387-c358f4b30307] but the problem is I can't import the models , I can't even import models that I export by myself.
    I am using SAP NW CE 7.1 SP 3
    IE 7
    Best regards
    Soufiyan

    Hi ,
    in page no.4 its mentioned that how to import the model to your VC@IDE.
    When you click on the model menu options you will be getting import option.
    hope you are trying import ZIP fole of your model.
    Regards,
    Govindu

  • Cinema 4d lite suddely stopped supporting imported models

      I've put more than 100 hours in creating environments with imported models.  All of the sudden all of my imported models disappeared.  I also created a model of a table in C4d lite with some slightly beveled cubes as legs.  Those also went away.  I'm ready to junk After Effects and just use Blender.

    Mea Culpa.
    This was operator error.  The "Axis Bands" filter got unchecked somehow (Not intentionally -- I don't even know what it does). I turned on all of the filters and the models came back. I checked and unchecked filters until I found the 1.

  • Importing models created in SP 9 into VC SP 8

    Hi
    Is it possible to import models that were created in SP 9 into a VC SP 8?
    I got an error : "Kit is incompatible or outdated"

    Normally not, bu you can try the following: before importing the model edit the gml file, you can open it in any text editor. Please edit the following tag>><GMLPACK kit="EP" version="700.9" change the version number to 700.8, then try and import.

  • WebDynpro Importing Model as Spring and Hibernate

    hi guys,
    Can any one tell me clearly about how to import model(Spring and HIbernate) in WebDynpro for java
    Thanks & Regards
    RK

    Hi Ramakrishna,
    Spring and Hibernate is used for Database access instead of EJB.
    To import spring and Hibernate model Use Either <b> Import Adaptive Web Service Model </b> or <b> Import Java Bean Model </b> by right Click on Models.
    WebDynpro with Hybernate
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/e081a4b6-0801-0010-7fa4-c3c7a0454815 [original link is broken]
    Regards,
    Mithu

  • Import Models without any extra engines?

    I have a very simple question to ask you people here at Sun.
    I'm making a 3D game and I DON'T want to use any other stupid engines for game development, no NetBeans, no Eclipse, no JME, nothing... I want to make a 3d from scratch but I want to know if I could just import models into my code from scratch (this is a yes or no answer) and also how could I do this (again without using any engines, because I want to do this FROM SCRATCH)
    So thanks for any and all help,
    It will be really appreciated
    -Mimz

    Closed, solved it myself using this step by step approach suggested by Martin
    1) create an ejb module Development ComponentDC
    2) apply a stateless session bean, implement your business logic and add the methods
    to the local interface
    3) right click your ejb DC and select Development Component > Show In > Component Properties from context menu
    - switch to the permissions tab and select Entity forwarding
    4) create a Java EE Enterprise Application Archive (ear) file and reference your ejb
    5) right click your ear DC and select Development Component > Show In > Component Porperties from context menu
    - switch to the Public Parts tab
    - add a new puplic part (compilation)
    - right click it, select Reference Entities from the context menu and browse for your ejb DC and choose the Client public part
    4) create WebDynpro DC
    5) import your ejb
    in this thread Using EJB as model
    thanks anyway

  • Can you import form responses from one responses file to another? I know you can export...

    I have a distributed form with a responses file that has six responses in it. Somehow the distribution got cut off and I had to set up a new distributed form and a new responses file. I was able to export the six old responses to a .csv file, but have not found a way to IMPORT the .csv file into the new responses file.
    "Add" does not work-- it is looking for PDF files only. Does anyone know a way to import those 6 responses into my new responses file? The distributed form did not change in any way, so all of the fields are still exactly the same.
    I can create a master portfolio and just add the two portfolios together, but they just remain as file icons within the portfolio and I need the data to be inline together in one file.
    Thank you very much.

    If you still have the .muse file for the template you want you can open it up in Muse 'Select All' --> Copy.
    Open your destination blank template and paste it. You can have bothe muse files up in Muse at the same time.

  • How do I import multiple responses from outside Forms Central into a form at one time?

    I created a survey in Word, used Adobe to make into a fillable pdf, emailed it to the prospective respondents, and I have received many emailed responses.  I have uploaded my original form to Adobe Forms and now I would like to upload those responses into Forms Central to make use of its reporting capabilities.  How can I import all of my repsonses into Forms Central?  

    Hi,
    I don't mean to hijack this thread, but Randy had mentioned a bug in Chrome regarding copy/paste. I've been searching for hours for a solution, but nothing on Google Chrome and c/p for the fillable area of a pdf document. Google forums have not yielded anything about fillable forms, so I'm hoping an Adobe forum would be more knowledgable.
    I have a fillable form online where the fillable area cannot be pasted into or copied out of while using Google Chrome. Note that the text already on the document can be c/p'ed. You can see it here: http://www.centralcallegal.org/eictaxcampaign/Coverform.pdf   This is a form for our self-help computer kiosks which use Google Chrome. The form is designed so users can copy and paste their own info into the cover sheet so there won't be any typos.
    Without looking at alternative methods of using the form (i.e. saved on desktop), is there a way to fix this copy/paste issue? It is definitely a Google Chrome issue, as c/p works fine in IE and Mozilla. Thank you.

  • Error while importing model in NWDS 7.1

    Hi All,
    I am trying to consume a Web Service in NWDS 7.1.
    Following are the steps which I have followed for consuming the web service :
    Create a model in the DC using 'Adaptive Web Service model' template.
    Create component and reference this model as used model in it.
    In the custom coontroller apply the 'service controller' template to the model.
    In this 3rd step, its giving the following error while applying the template in component controller:
    Status ERROR
    Plugin : com.sap.ide.metamodel.common.services.eclipse
    code=0
    Internal error
       Plugin name: Metamodel Common Services for Eclipse
       Internal error  : com.sap.ide.metamodel.common.services.eclipse
       Class      : com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard$1
       Method     : performFinish()
       Message    : Error in template generation
       Exception  : java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.RangeCheck(ArrayList.java:546)
    at java.util.ArrayList.get(ArrayList.java:321)
    at com.sap.ide.metamodel.core.collection.MetamodelOrderedCollectionImpl.get(MetamodelOrderedCollectionImpl.java:188)
    at com.sap.ide.metamodel.webdynpro.implementation.ModelRelationProxy.getModelRelationRole(ModelRelationProxy.java:590)
    at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.createNestedStructure(ModelGeneration.java:350)
    at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.createNestedStructure(ModelGeneration.java:385)
    at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.generateCoding(ModelGeneration.java:131)
    at com.sap.ide.mmservices.common.eclipse.internal.template.generation.GenerationStartup.generateFragments(GenerationStartup.java:246)
    at com.sap.ide.mmservices.common.eclipse.internal.template.generation.GenerationStartup.generate(GenerationStartup.java:87)
    at com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard$1.run(ApplyTemplateWizard.java:64)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard.performFinish(ApplyTemplateWizard.java:61)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.sap.ide.mmservices.common.eclipse.template.actions.ApplyTemplateAction.run(ApplyTemplateAction.java:28)
    at com.sap.ide.mmservices.common.eclipse.template.TemplateInvoker.startApplyTemplateAction(TemplateInvoker.java:78)
    at com.sap.ide.mmservices.common.eclipse.template.TemplateInvoker.startApplyTemplateWizard(TemplateInvoker.java:34)
    at com.sap.ide.webdynpro.wdexplorer.actions.other.ApplyTemplateAction.run(ApplyTemplateAction.java:48)
    at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseDelegateSingleAction.runInternal(BaseDelegateSingleAction.java:65)
    at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseDelegateSingleAction.run(BaseDelegateSingleAction.java:58)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Please do let me know how to resolve this error .
    Thanks.

    Hi Yogita,
    I suggest you get in touch with the SAP support team via an OSS message to help you resolve this issue. Please don't forget to attach the DC that you have created so that the support team can help in resolving this at the earliest. You could raise the issue via the OSS component BC-DWB-WD-JAV.
    Without details of the DC that you are working on and the model that you have imported, I doubt if anybody in SCN would be able to help you out.
    Thanks and Best Regards,
    Pradyut.

  • Error when opening/importing model

    I am getting the error
    Failed to instantiate core.svg:ZDrawing aspect for Transition OG (Source pin C not found)
    when I open or import a particual model.  I have no idea what it means, and the model appears to work.  Are there any ideas as to its cause?

    Hi Emily,
    The error message means that during the last time the model was edited one of the transition lines was corrupted and the model was saved that way. My opinion is that your model is missing a transition line, try to see if all transition lines are present in the model. I would appreciate if you could attach the model (you can export it) and try to remember or find out what was the last action done on the model that is related to transition lines (for example: deleting an element that was connected with a transition line to another element).
    Thanks in advance,
    Udi

Maybe you are looking for

  • Using iTunes to burn a CD

    I'm trying to convert some ACC files form my iTunes library into MP3 files to burn on a CD and, have run into a problem. I created a new playlist of 130 songs from my library to burn on to the CD. 27 of the 130 songs need to be in MP3 format. So, I c

  • Sharepoint can't connect to database?

    Hello, our server all of a sudden cannot connect to the SQL database.  Nothing was changed (afaik), and this happened overnight sometime from 9 PM to 8 AM Sunday night.  What happens is, our single sharepoint 2010 server has all the services started,

  • IPod 4th gen has lots of lines over screen looks like bar codes and can't see display?

    My step sons iPod I just a year old but for about 3 months it's been coming up with lots of lines on screen looks like bar code. Now he can't see anything on screen due to his. He has not been on it for a while as he has a 2nd one from his mum but I

  • Line in display

    My new iPad mini has a line in the middle of the display that comes and goes. Is there something I can do to correct this or do I need to return the product?

  • Archive backup restore problem

    When am restore the Archive logs in br tools it asking . ? First sequence number (first_seq) ........ []  ? Second sequence number (second_seq) ........ [] What is sequence number? Pls give any suggestions