Problems updating Entity services or application services

Hello all,
I'm working with SAP Netweaver Developer Studio creating a new CAF application.
First all, I import the SAP Entreprise Service, then I model the entity service, I expose my application Service as a Web Service and finally I deploy it and test it.
However, when I try to edit my entity service (for instance, including a new attribute) or application service (for instance, changing the bussiness logic code) and I redeploy it, the Web Service Navigator doesn't update the changes.
So, sadly I must start again configuring the entity and application service.
Any idea??
Thanks,

everytime you change the signature (structure of input/output) of the entity or application service, the change is not automatically propagated to the web service definition. you have to delete manually the web service configuration for the entity or application service or recreate it. you can call it a bug or a feature. it's up to you.

Similar Messages

  • Update Entity Service using Web Dynpro

    Hi,
    I am pretty new to Web Dynpro. I have defined an Entity Service which is working. With Web Dynpro I can create new entities using:
    ASomething newSomething = SomethingServiceProxy.create();
    newSomething.setX(x);
    newSomething.getAspect().sendChanges();
    Now I would like to update this entity and tried:
    ... wdContext.currentSomethingElement().modelOject();
    mySomething.setX(y);
    newSomething.getAspect().sendChanges();
    unfortunately this is not working. The database is not updated. How to solve this problem?
    Thanks in advance!
    Felix

    Hi
    thanks for the answer, but I think you do not have to call serviceFacade.save() and unfortunately it did not help.
    I found a solution, but I think it is more a work around. There should be a better option...
    ASomething something = wdContext.currentSomethingElement().modelOject();
    ASomething something2 = SomethingServiceProxy.read(something.getGuid());
    something2.setX(y);
    something2.getAspect().sendChanges();
    using this coding the DB is updated.
    Why is it not possible to call directly:
    somethin.getAspect().sendChanges()
    Thanks,
    Felix
    Message was edited by:
            Felix Japs

  • CAF entity coupled with application service activation problem

    Hi Experts,
    I have an existing CAF entity service to which i had added an additional attribute.
    I have the assosiated application application setdataservice,which has a custom method to add data to the entity service (mass upload).
    In the custom method i have added the code to set data for the addtional attribute.
    I had generated the project and build the dc locally,
    The buid is fine with no error's .
    But when I activate the request the activity fails with "cannot resolve symbol" for the new method even though the local build is sucessful.
    Any idea why this is occuring,
    ERROR: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/ejbModule/com/spe/portal/prc_core/appsrv/setdataservice/SetDataServiceBean.java:3434: cannot resolve symbol [javac] ERROR: symbol : method setFixPromvalue (double) [javac] ERROR: location: class com.spe.portal.prc_core.besrv.int_promocodes.Int_PromoCodes [javac] ERROR: promoCode.setFixPromvalue(fixPromValue); [javac] ERROR: ^ [javac] 1 error Error: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/gen/default/logs/build.xml:111: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112) at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61) at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213) at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190) at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66) at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48) 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.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350) at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102) at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76) at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58) at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723) at com.sap.tc.devconf.impl.DCProxy.make

    Hi again,
    I've deleted the two methods (or just commented them) I had and have readded them by choosing the Override Method option in the Source menu of JDeveloper 10.1.3. I've addet the methods prepareForActivation and prepareForPassivation too.
    When I execute the application, with breakpoints into the four methods (I attach the code below), I see that it prepares for pasivation and pasivates. When I do any action, I see it prepares for activation, but the method activateState is never reached.
    I have no other overriden methods in the class. Any idea of why the activateState doesn't execute?
    Thanks,
    Carles Biosca
    BBR Ingeniería de Servicios
       protected void activateState(Element element) {
           super.activateState(element);
       protected void passivateState(Document document, Element element) {
           super.passivateState(document, element);
       protected void prepareForActivation(Element element) {
           super.prepareForActivation(element);
       protected void prepareForPassivation(Document document, Element element) {
           super.prepareForPassivation(document, element);
       }Message was edited by:
    cbios

  • CAF DB Update for CAF Entity Service from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailID.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
    Within the context of component controller of  Web Dynpro the structure is like
    APerson
         |_ personId
         |_ personName
         |_ personAddr
         |_ contactsRef       
                    |_ phoneNo (Under contactsRef)
                    |_ cellNo (Under contactsRef)
                    |_ emailID (Under contactsRef)
    So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
    java.util.List ls = new ArrayList();
    for(int i=0; i<4;i++)
    AContacts contact = ContactsServiceProxy.create();
    contact.setCellNo("9092130156");
    contact.setEmailID("[email protected]");
    contact.setPhoneNo("432258");
    contact.getAspect().sendChanges();
    ls.add(contact);
    person.setRelatedModelObjects("contactsRef",ls);
    person.setPersonID("9999");
    person.setPersonName("xyz");
    person.setPersonAddr("ABC, KOL");
    wdContext.nodeAPerson().bind(person);
    person.getAspect().sendChanges();
    CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan
    Message was edited by:
            Chandan Jash

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Problem while creating Complex Attirbutes of Entity Service in CAF Applicat

    I am Creating one CAF Application.
    while creating Entity Service i have Used one Complex Attribute. but in Application Services Implementation part when am assigning value to this Complex Attribute.it gives error that no method exist.
    Kindly provide some information on how to use Complex Attributes while creating Entity Service.
    Can i use NWDS2.0.11 for CAF Application?

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • "Entity Service" update function - response possible?

    Hello,
    I have created a WSDL file in XI and imported it into my CAF application as External Service. The External Service is wrapped by an update operation from an Entity Service.
    As my External Service is a synchronous WebService, I also get a response if the update was successful or not. But in update function there is no possibility to map this response for return (same with delete).
    Do I have to create my own update funtion to be able to get information in my application services if update was successful or not? Or is it anyhow possible to expand the standard update operation?
    Thanks for your answers
    Joschi

    As I know it's possible to create additional custom method for business entity wrapper and map it to external service operation. For example: "Collection updateMyEntity(params)".
    The question is the following: why do you need to use standart update method if it does not satisfy your requirements ?
    The only reason is to use CAF runtime service access functionality in order to access your business entity in generic way. CRUDs operations are designed for this purpose (create, read, update, delete standart operations). These standart methods are required for all business entites and can not be removed. From architectural point of view "update" method wrapping does not make sense without wrapping of others: "create", "read", "delete". If all these methods are implemented properly, in this case business entity service is consitent in the CAF context and  you can use additional powerfull CAF features.
    If you just need to execute some query for updating your data using external service I recommend you to create new custom method in your business entity according to your requirements. Also, it will not probably confuse another developer who touched this entity design.
    Best regards,
    Aliaksei

  • Realationship enterprise service - application/entity service

    I read some books about ESA and CAF but I still don't know the relationship between enterprise services in ESA and application and entity services in the Netweaver DevStudio (CAS framework).
    Are application/entity services also enterprise services? Or is there a difference?
    Thanks for your answers.
    Joachim

    You can consume SAP Enterprise Services. You can also participate in the definition of the Enterprise Services  through the ES Community (see ES Community under Enterprise SOA in SDN) and even create your own Enterprise Services. You can use whatever web development tools you like. In Netweaver Java stack, you can use CAF to implement or develop Application Services (where business logic is coded) leveraging Entity Services taping into your local or remote data model(s). Enterprise Services can be modeled and coded in CAF Application Services but you can use plain J2EE as well. In SAP case, the interfaces for Enterprise Services are defined in XI (input/output/exception). Their implementation happen in the appropriate SAP solutions like ERP where business logic can execute against appropriate data.
    Practically CAF Entity Services cannot be called Enterprise Services unless you want to. They just perform basic CRUD (create/read/update/delete) operations on an data object. They're more like utility services. But like Anton's mention of "Private Enterprise Services", what's private remains your own business!

  • Access to Entity Service from Portal Application

    Hi Experts,
    I have a hybrid application which will be making use of both Web Dynpro and Portal Applications. I decided to use Entity Services to store my back-end data and can access it fine from the Web Dynpro project. I have included the public part of my CAF project into the Used DCs of my Portal project and while I am able to call the methods of the Entity Service at compile time, at runtime I receive an error message on the page:
    An exception occurred while processing a request
    I know in order to get this to work for Web Dynpro I had to include sap.com/tccolapi.sap.com/cafruntimeuicouplingapilib as a Library Reference and a few Used DCs, but while I have added the Used DCs to the Portal project, I am unsure of how to add the Library Reference. I assume this has to be added to portalapp.xml, but I don't know the syntax.
    Could somehow please reply with how to do this and whether this is all that is required in order to call Entity Service methods from Portal applications?
    Thanks,
    JP

    Hi Smith,
    Write click on the Project then goto the Properties=>Webdynpro References=>Library references
    add
    caf/eu/gp/api
    sap.com/cafruntimeuicouplingapilib
    And add the following DC in your project.
    1> External in caf/eu/gp/api (CAF domain)
    2> caf/eu/gp/api/wd (CAF domain)
    3> com.sap.security.api.sda (SAP-JEE)
    portalapp.xml
    <?xml version="1.0" encoding="utf-8"?>
    <application>
    <application-config>
    <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal, SAPJ2EE::library:cafeugp~api"/>
    </application-config>
    <components/>
    Check this thread .
    Using CAF GP API in Portal Application project
    Regards,
    Mithu

  • Using different RFC's in one Application / Entity Service?

    Hello *,
    I just want to create my first Composite Application Service but before I begin I have some questions.
    The service will read out material master data from PLM. For that it has some findBy-operations with full-text search (creationDate, MatNr. ...) which return a result list and one operation which returns the material object for a given MatNr.
    For this operations I need to call different RFC's which are imported by external services.
    Now my questions:
    1. What kind of service should wrap my external services and provide the operations? Should I use one or more entity service to wrap external services and then realize the operations in an application service? Or should I just take an application service without entity services?
    2. The created service should not only be an internal CAF  service but also a Web service? How can I realize this?
    Thanks for your answers.
    Best regards
    Joschi

    Ok, thanks a lot. So nearly everything's clear now. Only one question remains:
    > 6. mark the entity service as "remote" and create a
    > web service from it
    > (note: this requires NW04s SP8)
    Is this possible? I can't find any checkbox to mark an entity service as "remote" like in an application service (NWDS 7.0.07 and NW04s SP8).
    So I have to map the findBy operations to an application service and create a web service from it!?
    Regards
    Joschi

  • In application services i am using entity services

    hi all
    i have created application services in entity services i have created findAll ()method that method i have accessed in application services by
    getEntityServices.findAll .and i have made application service as a webservices but when i am testing this method in wsnavigator
    this method gives error.please reply soon
    com.sap.engine.services.webservices.wsnavigator.WSNavigatorException: null
    Exception id: [02004C4F4F50004E000006FA00000E4000042DBF06435C4C]

    Hi, I tested the application using the CAF Runtime Configuration service test and it was an authorization Issue. The entity was set to check permissions. I disabled this in NWDS and it works fine now

  • Using application or entity services as model?

    Hello,
    is it a bad decision to access the CRUD and findBy operations of my entity services with UI patterns?
    The book "SAP xApps and the Composite Application Framework" says, only application services should be used to handle with the UI, according to the MVC principles. But in carpool examples also entity services are used. So why should I map the needed entity service operations to application services?
    What is the pro and contra?
    Thanks and regards
    Joschi

    Hello Joachim,
    I would also add that when the book states that "only application services should be used to handle the UI", the main point is that no business logic should be put in the UI and it should only be put in the application service.  Once business logic is put in the UI, then you can not web service enable this logic.  So in general, all business logic should be put in the Application Service.
    If there is no business logic between the UI and the Entity (like in the carpool example), then there is no need to create a redundant application service.  Since it is impossible to put business logic in the CAF UI Patterns, they can always directly call Entity Services without violating this design principle.
    Regards,
    Austin.

  • Removing/updating data through CAF entity service

    Does anyone know a way to remove/update data through a CAF entity service from a web dynpro which uses the webdynpro model of the CAF project ?

    Hi Nicolaij,
    This example describes how UPDATE and DELETE works under SP8.
    Hopefully it helps.
    Regards
    Kamil
    UPDATE of entity called "Bank"
    =======================
    ABank recordBank;
    recordBank = BankServiceProxy.read(“000000024”);
    recordBank.setCountryId(„Germany“);
    IAspect aspectList = recordBank.getAspect();
    aspectList.sendChanges();
    DELETE from entity called "TransferID"
    ============================
    ATransferID recordTransferID;
    recordTransferID = TransferIDServiceProxy.read(„123115651“);
    IAspect aspectList = recordTransferID.getAspect();
    IAspectRow aspectRow = aspectList.getAspectRow(0);
    aspectList.removeAspectRow(aspectRow);
    aspectList.sendChanges();

  • Entity service date input problem

    Hi
    I have wrapped  BAPI Holiday_Get as an external service
    its input parameter DATE_FROM and DATE_TO have been imported as caf.base.string type
    When i run along with others inputs in ECC/R3
    DATE_FROM   = 15.05.2006
    and DATE_TO  = 15.05.2007
    i get the required output
    when i call it using an Entity service and input data as above - i get the error --
    ERROR. For input string: "15.0":
    I have used the caf.core.shorttext type for my data_ to and date_from attribute
    I have also tried to pass them as default but still it is not working
    What is to be done for passing this as input to entity service?
    Help me in this issue .
    Points assured for help

    Hi Srivastava,
    I got the same problem for date mapping.
    I have wrapped BAPI_FLIGHT_GET_DATA as external service its input parameters are ARline ID,ConfigID and Date
    In R3 when i give AA,0017,  04.07.2007 date iam able to get the output correctly.
    when iam trying to get the data from the CAF UI. with the above given data iam getting  "com.sap.caf.rt.exception.CAFFindException"
    i have bind the date attribute to caf.base.date/caf.core.date and checked got the same exception.
    As,you also got the same problem.
    Can you help me regarding this if you have any idea.
    Thanks,
    Kiranmai.S

  • HT204053 Hi all, I am constantly running into problems opening iCloud services (mail, calendars, iWork's, etc.). I get a message stating i.e. Can't load Mail (Calendar, iWork), There was a problem loading the application. Does anybody know what a heck is

    Hi all, I am constantly running into problems opening iCloud services (mail, calendars, iWork's, etc.). I get a message stating i.e. Can't load Mail (Calendar, iWork), There was a problem loading the application. Does anybody know what a heck is going on?

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for

  • [CS3] [JS] Find Change Aesthetic Kerning Pairs

    Hi, I want to find and "erase" all the aesthetic kerning values in a document with Find Change. How do I say: "app.findTextPreferences.kerningValue" != (zero or null) Thanks PJB

  • Monitor christmas mayhem

    I am a macbook pro user getting a little to excited at the prospect of christmas round the corner. Display! I thought, not thinking of the ultimate dilemma that will come of actually choosing the thing. My budget is around 200 - 250 pounds and I woul

  • SQL 2000 to Oracle 8i migration...Urgent

    Can anyone help me in converting SQL 2000 database to Oracle 8i version(8.1.7). I have installed OMWB 9.2 on a windows 2000 machine, but it failed to convert even after many tries. It creates the SQL model perfectly with errors but while converting t

  • Are project files on the timeline?

    Echolations associates! I'm working on a CS3 PPro project and am currently at the stage where I'm overlaying a mammoth number of sound Fx's.  In the course of review I've gone over and over and replaced sound clips on the timeline with ones I later t

  • Code Groups not visibile in QS41

    He experts, I have created catalogs by t-code: QS41. After the entering and saving the code groups and codes system is not showing the codes for the code groups. Only code groups are visible. However I can see and use the code groups while donig tran