Create Entity Object from Service interface?

An option for creating an EO is to use a "Business Components service interface". Is this referring to a App Mod service interface, web service WSDL or what? Am having a real problem attempting to decipher this and cannot find any mention of how to do this in the doc. Any help is appreciated.
Thanks for a quick response - or for that matter any response - Casey

Additional info:
Created a simple AM - Emp and Dept for VOs in the data model. Added a simple service method to the AM - input String, return String and is exposed via the client interface.
Followed the following steps as per the doc (Fusion Developer's Guide for Oracle Application Development Framework) to create a service interface:
To create the web service:
+1. In the Application Navigator, right-click the application module and choose Open+
AppModule.
+2. In the application module overview editor, select Service Interface from the+
navigation list.
Problem - I do not have a 'Service Interface' in the navigation list.
So how do I create a service interface - what have I missed?????
BTW - Using JDev 11.1.1.0.1
Thanks - Casey

Similar Messages

  • Creating Entity Object from Service Interface - JDeveloper version 11.1.1.3

    In our project, we don't intend to have any JDBC connection to a database and want to create all my entity objects using SDO web services deployed in a remote server. I could create an entity object based on a SDO web service deployed in the standalone WL server successfully. But at the time of Development,when I select ADF Business Component --> Entity Object, it always takes to a screen that prompts for a JDBC connection, if you have no connection defined in the project yet. To bypass this, I need to create a valid connection to a local DB and then I can go the next page that prompts me to to choose service interface and asks for a WSDL URL. How do I get around creating a JDBC connection and create a service interface based data source directly?
    To get around this issue, I created a connection to a local DB by providing a wrong password to make sure that we don't need a valid db connection. The application module (Business Component Browser) works fine when the DB connection is broken. But when I create a JSF page and put the data control there, if we don't have the DB connection established it gives error during deployment.I tried deleting the unused connection, but that gives a lot of errors during deployment. My question is;
    1. How can I create a service interface based data source by-passing the requirement for a connection?
    2. If that's not possible - how can I cleanly delete the JDBC connection and all it's dependencies, so that, it deploys and runs without error

    Frank,
    Thanks for your response.
    I have made some progress in last two days and solved some of the original issues. I deleted the fake JDBC connection from connection.xml that I had to use to go to the second screen that lets me select the WSDL for the service interface. After that, I checked off the "Auto Generate and Synchronize ..." option from Application --> Application Properties --> Deployment. (thanks to Steve Muench's blog post on this subject). After that, I could deploy the JSF page and the page shows up with no problem.
    However, when I try to run the App Module that was created from the WSDL (service interface), it brings up a pop-up with heading "Password Required" that says "Enter the password for" and asks for a user name and password (not sure what they are as they take any value and takes me to the next screen). After that, I can open the View and navigate through it. When i change some data and try to commit - it makes the change to the data and stores in the DB but gives an error saying "(oracle.jbo.NotConnectedException) JBO-25200: Application module is not connected to a database."
    Also, the data control created from the service interface had operations called Commit and Rollback. I used the Commit on JSF page and that does the exact same thing too. Any idea?
    Also - when we consume a SDO WSDL to create the entity object - how can we access the SOAP Request and Response objects? We have to implement WS-Security by instrumenting the SOAP header and need to get a handle on that. Is there a mechanism similar to JAX-WS handler framework for SDO?
    R,
    Chandan

  • Trouble on Create Entity Object from AS400/DB2 version 5 rev 4

    Hi, hope any1 can help..
    I using jt400.jar (com.ibm.as400.access.AS400JDBCDriver) with
    jdbc url : jdbc:as400://host
    to create connection.
    However, when I try to create entity or business component based on the connection, it gave me "Attribute list error":
    java.lang.NullPointerException
         at oracle.jbo.dt.jdevx.db.DBApiUtil.fillAttributeListInternal2(DBApiUtil.java:1249)
         at oracle.jbo.dt.objects.JboDBUtil.fillAttributeListInternal2(JboDBUtil.java:87)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeListInternal2(JboUtil.java:2749)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeListWithException(JboUtil.java:2711)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeListInternal(JboUtil.java:2687)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeList(JboUtil.java:2626)
         at oracle.jbo.dt.objects.JboUtil.fillAttributeList(JboUtil.java:1059)
         at oracle.jbo.dt.ui.main.DtuUtil.createEntityFromThread(DtuUtil.java:562)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.createEntity(PKEntityThread.java:898)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.createEntity(PKEntityThread.java:719)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.doEntityViewCreation(PKEntityThread.java:537)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.createObjects(PKEntityThread.java:470)
         at oracle.jbo.dt.jdevx.ui.pkg.XPKComponentWizardEntityThread.createObjects(XPKComponentWizard.java:491)
         at oracle.jbo.dt.ui.pkg.PKEntityThread.run(PKEntityThread.java:447)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    I had refer other posts, but i might miss out some important piece. Beside, I able to create ViewObject based on sql query. Any1 able to show me some direction..perhaps..thanks

    Thanks ...I tried both SQL92 and db2...and tried both Java & Java Extended for Oracle.. too..I able to connect to the dbase, browse thought the db2 schema n tables, even able to create view object with sql query..just stuck in entity object creation..feel weird n cant find much of documentation on the web to describe this behaviour too..

  • Import POJO create Entity Object?

    Is it possible to import a POJO and create an Entity Object + table from it?

    Hi,
    you cannot create Entity Object from POJO but you can use POJO based model to generate Data Control and work with it "like with Entity Object" in view layer.
    example: http://www.oracle.com/technology/products/jdev/tips/fnimphius/pojopagination/index.html
    regards,
    Branislav

  • Have the capability that  let Entity Objects from Web Services Datasources?

    Have the capability that let Entity Objects from Web Services Datasources? or
    where can we found the example about implement Entity Objects from Web Services Datasources ?

    I'm not sure what are you asking for. If you are looking to create a data-control based on a web service then this online demo might help:
    http://www.oracle.com/technology/products/jdev/viewlets/1013/WebServicesAndADF_viewlet_swf.html
    Or are you asking how to expose an ADF Business Component as a Web service?

  • Unable to Create Entity Model from existing oracle database

    Hi,
    I am using Visual Studio 2013, .net framework 4.5, entity framework 5.0 and oracle 11g database.
    Issue Description: I need to develop WCF service to exposing the account information which needs to get the data from 20 oracle tables. Trying to create entity model from existing oracle database. first i tried creating just two tables it
    was created but it took more than 30 minutes. then i selected remaining few tables it took more than a days but nothing created just showing spinning the wheel. then i tried with fresh project and selected all the tables but same issue nothing created and
    also there is no error. during this process i checked database query monitoring there is a big sql statement collection tables metadata. i don't know what was wrong the query taking too much time to complete the  process.
    we tried multiple machine and different oracle database all are same issue.
    Sql server database -looks good no issues.
    Any help/tips/ideas welcome to overcome this issue.

    Hi Sakthimp,
    Welcome to MSDN forum.
    Your issue is out of support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue only occurred with oracle database, moreover Oracle developed the Entity Framework for Oracle itself, I suggest that you can consult your issue on Oracle forum/community:
    you will get better solution and support there.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to create Entity objects for tables in TimesTen database using ADF

    Hi,
    I am not able to create Entity and View objects for tables in TimesTen database using ADF. I have installed TimesTen client on my machine.
    I have created a database connection by using connection type as "Generic JDBC" and giving driver class and JDBC URL. I am attaching screen shot of the same.
    I am right clicking on Model project and selecting New option after that I am selecting ADF Business components and in it I am selecting Business components from tables and there I am querying for tables.I am getting list of tables and when I am trying to create a Entity object from the table after clicking finish Jdev is closing by itself giving an error.
    Can anyone please help me how to create Entity objects for tables using TimesTen as database.I might be missing some jars or the way I am creating connection might be wrong or any plugins required to connect to TimesTen.

    What is the actual error being given by Jdev? Are you sure that the JDBC connection is using the TimesTen JDBC driver JAR and not some other JDBC driver or the Generic JDBC/ODBC bridge?
    Is ADF even supported with TimesTen?
    Chris

  • Create Entity class from view

    Hello,
    Is it possible to use views in java persistence in the same way as tables (but just for fetching data)?
    Thanks in advance.

    hi,
    before doing this first consider the runtime usage of your appln. Will there be 2 separate appln modules that has its own entity objects..?
    creating 2 connections doesnt means that your eos will be used together?
    best is to make a single connection to a schema that has access to all tables of both the schema, with proper rights. next you create synonyms with proper access name i.e sch-name.tbl-name
    or else you can directly create entity object by this pattern. Right click the model project or any package in it and select create new eo from busniess components menu.
    Regards,

  • Create Class objects from an Array of File Objects

    Hi There,
    I'm having extreme difficulty in trying to convert an array of file objects to Class objects. My problem is as follows: I'm using Jfilechooser to select a directory and get an array of files of which are all .class files. I want to create Class objects from these .class files. Therefore, i can extract all the constructor, method and field information. I eventually want this class information to display in a JTree. Very similar to the explorer used in Netbeans. I've already created some code below, but it seems to be throwing a NoSuchMethodError exception. Can anyone please help??
    Thanks in advance,
    Vikash
    /* the following is the class im using */
    class FileClassLoader extends ClassLoader {
    private File file;
    public FileClassLoader (File ff) {
    this.file = ff;
    protected synchronized Class loadClass() throws ClassNotFoundException {
    Class c = null;
    try {
    // Get size of class file
    int size = (int)file.length();
    // Reserve space to read
    byte buff[] = new byte[size];
    // Get stream to read from
    FileInputStream fis = new FileInputStream(file);
    DataInputStream dis = new DataInputStream (fis);
    // Read in data
    dis.readFully (buff);
    // close stream
    dis.close();
    // get class name and remove ".class"
    String classname = null;
    String filename = file.getName();
    int i = filename.lastIndexOf('.');
    if(i>0 && i<filename.length()-1) {
    classname = filename.substring(0,i);
    // create class object from bytes
    c = defineClass (classname, buff, 0, buff.length);
    resolveClass (c);
    } catch (java.io.IOException e) {
    e.printStackTrace();
    return c;
    } // end of method loadClass
    } // end of class FileClassLoader
    /* The above class is used in the following button action in my gui */
    /* At the moment im trying to output the data to standard output */
    private void SelectPackage_but2ActionPerformed(java.awt.event.ActionEvent evt) {
    final JFileChooser f = new JFileChooser();
    f.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int rVal = f.showOpenDialog(Remedy.this);
    // selects directory
    File dir = f.getSelectedFile();
    // gets a list of files within the directory
    File[] allfiles = dir.listFiles();
    // for loop to filter out all the .class files
    for (int k=0; k < allfiles.length; k++) {
    if (allfiles[k].getName().endsWith(".class")) {
    try {
    System.out.println("File name: " + allfiles[k].getName()); // used for debugging
    FileClassLoader loader = new FileClassLoader(allfiles[k]);
    Class cl = loader.loadClass();
    //Class cl = null;
    Class[] interfaces = cl.getInterfaces();
    java.lang.reflect.Method[] methods = cl.getDeclaredMethods();
    java.lang.reflect.Field[] fields = cl.getDeclaredFields();
    System.out.println("Class Name: " + cl.getName());
    //print out methods
    for (int m=0; m < methods.length; m++) {
    System.out.println("Method: " + methods[m].getName());
    // print out fields
    for (int fld=0; fld < fields.length; fld++) {
    System.out.println("Field: " + fields[fld].getName());
    } catch (Exception e) {
    e.printStackTrace();
    } // end of if loop
    } // end of for loop
    packageName2.setText(dir.getPath());
    }

    It's throwing the exeption on the line:
    FileClassLoader loader = new FileClassLoader(allfiles[k]);
    I'm sure its something to do with the extended class i've created. but i cant seem to figure it out..
    Thanks if you can figure it out

  • Can you create an object from a string

    I have been working on creating a dynamic form, creating the
    form items from an xml file. I am getting very close to conquering
    this task. I will share it when it's complete.
    However, I am stuck at the moment trying to create an object
    from a string. For example, if the xml item is an HBox I want to
    create an HBox. Like this: parentObject = new arrayOfFormItems[
    index ]..type ()
    This isn't working. First, is this possible using some syntax
    I am unaware of in Flex? I don't want to use a large if or case
    statement if possible.
    Thanks in advance for your help!

    Thank you very much. Indeed that did solve the one problem. I
    missed the casting as a Display Object. That is awesome!
    I do still however, have to instantiate one of every item I
    want to dynamically create or I get the following error when I try
    to create a dynamic object that I have not instantiated before.
    ReferenceError: Error #1065: Variable HBox is not defined.
    at global/flash.utils::getDefinitionByName()
    at MyForm/buildForm()
    at DynamicForm/::onComplete()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    I read that you have no choice but to instantiate one of each
    type to force the linker to link the code for that class into the
    .swf. Unless you know another way to force it.
    This is what I have in my Application mxml to get it to work:
    <mx:HBox>
    <mx:Text visible="false"/>
    <mx:TextArea visible="false"/>
    <mx:TextInput visible="false"/>
    <mx:DateField visible="false"/>
    </mx:HBox>
    And those are the types I'm using to test with. . . I will
    have to add all the others I want to use as well . . .

  • Dynamically create Value Objects from XML file

    Hi
    I want to create a value object from Xml file dynamically,like in the xml file i have the name of the variable and the datatype of the variable.is it possible do that,if so how.

    Read about apache's Digester tool. This is part of the Jakartha project. This tool helps in creating java objects from the XML files. I am not sure, if that is what u r looking for.

  • Unable to create entity object in JDev 10.1.3(R12)

    Hi,
    I am Unable to create entity object in JDev 10.1.3(R12).Everything else works fine but not the EO creation.THe option for selecting table,synonym are disabled when I try to create new entity object.
    Please let me know if you any of you had the same problem and resolved it.
    Regards
    Sudhakar

    Sudhakar,
    The (R12) in the thread subject line leads me to believe that you are asking this question in the wrong forum. OA Framework has its own [url http://forums.oracle.com/forums/forum.jspa?forumID=210]forum that you should use.
    Best,
    John

  • Why can't I create new object from a class that is in my big class?

    I mean:
    class A
    B x = new B;
    class B
    and how can I solve it if I still want to create an object from B class.
    Thank you very much :)

    public class ItWorksNow  {
      public ItWorksNow() {
      public static void main ( String[] argv )  throws Exception {
        ItWorksNow.DaInnaClass id = new ItWorksNow().new DaInnaClass();
      public class DaInnaClass {
    }

  • How do I create an object from a filename?

    I'm traversing directories and storing a list of files in a File array. Then I traverse the array looking at the extension of the file. If it is .java then I would like to instantiate it as a class so that I may pass the new object to another function which will examine its methods. I've tried Class.forName(file.getCanonicalPath()) and it throws a ClassNotFound exception. How can I create an object from a valid filename, please?

    Rick_Avlonitis wrote:
    If it is .java then I would like to </snip>.java files contain source code, they can't be "instantiated". Class.forName() takes a classname as parameter, i.e. "mypackage.MyClass". A class name is not a file name, and it doesn't have an extension. As stated in the other reply, you'll need to have the class on your class path.

  • How to create and object from an arrayList

    Hi I want to create an object from an arrayList.
    here is my code...
    BillingQueryParam billingQueryParam = new BillingQueryParam();
    /*This BillingQueryParam and billingItemManagerActionForm has getter and setter method for following attributes.
    private int billingItemId;
    private String[] paramName;
    private String[] defaultParamValue;
    List billingQueryParamList = new ArrayList();               
    for(int i = 0; i < billingItemManagerActionForm.getParamName().length; i++) {
         billingQueryParam.setParamName(billingItemManagerActionForm.getParamName());
    for(int i = 0; i < billingItemManagerActionForm.getDefaultParamValue().length; i++) {
      billingQueryParam.setDefaultParamValue(billingItemManagerActionForm.getDefaultParamValue());
         billingQueryParam.setBillingItemId(billingItem.getBillingItemId());
         billingQueryParamList.add(billingQueryParam);
    System.out.println("****** ArrayList Size-->"+billingQueryParamList.size());
    for (Iterator iter = billingQueryParamList.iterator();iter.hasNext();) {
         billingQueryParam = (BillingQueryParam)iter.next();
          System.out.println("****** BillingItemId-->"+billingQueryParam.getBillingItemId());
          System.out.println("****** Param Name-->"+billingQueryParam.getParamName()); //printing an array of paramName
          System.out.println("****** Default param value-->"+billingQueryParam.getDefaultParamValue());
    }Here after iterating this list I want to create an object of billingQueryParam which contains a single value of itemId, paramName,paramTypeId and defaultParamName and I want to persist this object in database.
    Please help...!!!
    Thanks

    Now this is too much.. Do i need to tell this thing to u as well. How did u come to this forum?
    Can't u see link to Java programming forum at the top.

Maybe you are looking for

  • Installing windows on my mac.

    Im new to macs and I was wondering how would I go about doing that. Are you even allowed too? I have a game I like to play but it says it wont work on a mac. any way to help would be great. like a step by step or anything thanks for all your help.

  • Windows 8.1 Enterprise Evaluation- Strange behaviour of network adapter

    Hello there are discussions and questions around this community about network adapter dropping connection while system is running. But I have found unique problem with my network adapter driver. I have tried to state my problem as clearly as possible

  • How to change the colour of selected item in itemrenderer

    Hello guys please tell me how to change the selected image( which is in itemrender of tilelist).so that the colour sholud be shown within  image not its outer part due to renderer. Thanks in Advance   vineet sharma

  • Spry XML and image map

    Hi all- I'm new to using spry and xml, but not new to xhtml and layout, having said that. I'm trying to store file paths in my xml and parse that xml to repace <href> tags in an image map. For example (the actual cooridnates in the map are just made

  • The need for the option to purchase perpetual license of Production Bundle

    My business has used Adobe products for 15 years. I am a big fan. But I wish to continue purchasing the Production Bundle line of products with perpetual licenses. I have no need for the Cloud. I also want to upgrade from my current version of CS6 as