Expose the Entity Service in CAF as Web Service

Hello,
How can I expose the created Entity Services in CAF (for example xPerson) as a Web Service, for be used in other applications?
Thanks

Hi,
These will actually get saved in your internal SAP database. This is nothing but a MaxDB database which will be installed along with your CE. All your business objects will be saved in this in the server.
Regards,
Srinivasan Subbiah

Similar Messages

  • Table Name Issue of CAF Entity Service

    Hi All
    I have a problem in the following scenario :--
    I have created a CAF project named xflit_01 in local development. Another CAF project xflit_02 is created in local development of another machine's NWDS but both the project has a same entity service name,'Flight'. But one interesting observation from persistency tab of the entity service'Flight' is that for tables generated for both the entity services are same name, 'XAP_XFL_FLIGHT0001' where "XAP_XFL_" is namespace and "FLIGHT0001" is names. Both entity services are mapped with same external service.
    Next I have deployed that two projects such as xflit_01 and xflit_02 in same central WAS from different machine's NWDS one by one. but how two tables with same name, 'XAP_XFL_FLIGHT0001' would be handle by WAS? But after the deployment we need to configure external service. So in External Service configuration window we are getting error when the link Service Registry is clicked.    
    Any idea will highly be appreciated.
    Thanks
    Chandan

    Solved by myself. Reason is for same db and CAF table naming convention

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

  • How to read CAF entity services in BCO

    Hello,
    I try to read an entity service out of an background callbale object.
    For this i added the the public part of the webdynpro DC of the entity service as used DC to my bco. I did this as well with the library, including my bco.
    The problem is, that the included class cant be found in the deployed bco.
    I get the NoClassDefFoundError while executing the bco.
    Any hints how to reference my entity service?
    Regards
    Robert

    Hi,
    If I understand your problem then I can tell that you are trying to make a link in between two Entity service of two different projects. If I am correct then I can tell you that please publish the DC part of your EJB project not the Web Dynpro. Then you use that in another projects (ejb sub project) DC dependency part. Then try it.
    If any problem please let me know.
    Thanks
    Chandan

  • How to expose a application service as web service?

    <UL>Hi Experts,
       <LI>I have created a business component and application service. i have also built and deployed it,
       <LI>Now I want to expose the application service operation as web service so that I can call the application service from XI or any webservice testing tool like SOAPUI or SOAPSONAR?
       <LI>What are the steps involved in doing this?
       <LI>I have selected application service then right clicked and selected "Expose service as web service".
       <LI>This has generated the WSDL file. After this I don't know what to do.
       <LI>In the WSDL file the soap address location is pointing to a default link (<soap:address location="http://www.example.org/"/>).
       <LI>What will be the actual location look like?
       <LI>For example: http://<CE server>:<Port>/?  <--- what will I have to put here so as to give the exact location?
    <LI>Thanks & Regards
    <LI>Gopal
    </UL>

    Hi Gopal,
    If I am not wrong, you need not do anything to the WSDL.
    If you carefully look at your WSDL in your NWDS, the soap:address attribute will point to the default location. However, the 'location' attribute will be 'Empty'. When you Deploy the Composite Application on the server, the location attribute value will be replaced by http://<server host name>:<port>/<WebService Name>/<Application  Service Name> in the WSDL on the server. The WSDL URL  is generated using the same format, and that is how it recognizes the service.
    You can deploy your application on the server and go to the Web Service Navigator and check the WDSL.
    Regards,
    Ajay

  • Create Entity Service as Web Service wrapper for Netweaver dev studio 7.1

    Hi,
    I am totally new to Netweaver.
    I was trying to create a CAF service that wraps my own service.On searching i found this document
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370] where the process was mentioned.But this document is on netweaver 7.0 and i am working on 7.1 .
    Here while trying to create a entity service, its mentioned in the doc to right click on the entity service node..but in my netweaver i dont find that node anywhere..the only nodes i see are external and modeled..I am assuming the components must have chaged for version 7.1..
    Can anyone tell me where i can find the updated documentation for Netweaver 7.1 to create a entity service as a webservice wrapper.
    Thanks in advance.
    Regards
    Siri

    Thank you Dipankar..that solved my problem.
    Regards
    Siri

  • Error while testing the created entity service

    Hi
    I have an error  "access forbidden.please login again" while testing the entity service  in the service browser.Please help.
    Regards
    ms.

    Hi,
    I think this is not a problem from your end.  You please check for another entity service. If you get the same error then this is the problem from server side. If possible please restart the server and try it again.
    Thanks
    Chandan

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

  • 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

  • Error while testing entity service

    Hi all,
                I created a CAF Development component and an entity service for the same. While trying test the entity service through service browser i get the follwing error :
    Application error occurred during request processing.
    Details:com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object 'sap.com/cafUIservicebrowser' since it is not of a Web Dynpro object.
    Exception id: [0014225F392C006100000013000009A400042388306C40DD]
    Please help...
    Regards,
    Sharmila
    Message was edited by:
            Sharmila S

    Hi Sharmila,
    It looks like your WAS does not have CAF deployed.
    Regards,
    Shubham

  • Entity Services: readByCustomKeys operation mapped to External Service

    Hello *,
    in my CAF application I'd like to read a product from SAP PLM. Within my Entity Service materialNumber is my custom key and therefore a corresponding operation exists: readByCustomKeys.
    I map this operation to my External Service (Web service provided by XI).
    As I can't test this operation directly with the Service Browser (deosn't appear there), I wrap  my Entity Service with an Application Service where I use the readByCustomKeys operation from Entity Service.
    Now when I test the Application Service operation I get the following error message in Service Browser:
    ERROR. Invalid type value :
    In XI I can see that there was no error and I got well defined XML data as response. So the problem must occur anywhere in the mapping back from External Service data to Entity Service attributes.
    Wrong data type mapping can be excluded as I already tested this possibility.
    Does anyone know what could be the reason?
    Thanks for your answers and best regards
    Joschi

    Hello Joachim,
    I dont have a lot of experience with readByCustomKeys (one experience which failed) but uou can also use read itself. If you have defined materialNumber as a key in your entity service, then this field can be used in read operations as well (I have a lot of positve experiences with this approach). You will find materialNumber while mapping read with your external service and you need not map the key field generated by Entity Service.
    For testing entity services, we have had several positive experiences with the config browser, specially for a findBy, read and even update operation. It was very easy to have a prototype UI to check the entity services.
    I know this isnt the answer to your question, but just sharing my experiences.
    All the best!!!
    Regards,
    Parag.

  • Remote Persistency And Entity Services References

    Hi Guys,
    I try to build a composite service with remote persistency (via webservices). There are several tuturials explainig it:
    81 Using a Web Service as External Service
    85 Using RFCs as External Services
    95 Implementing Remote Persistency with CAF and RFCs
    This is no problem at all, when only using one entity service or several entity service with no relations to each other. But for an demo application I try to create two entity services ("Main" and "Sub") and the "Main" entity service should have a relation to "Sub".
    What I try:
    1.) Create the entity services "main" with an own id.
    2.) Create the entity services "sub" with an own id.
    3.) Open the attributs for main again and create an relation to the entity service sub (via add button).
    4.) deactivate "local persistency" for every entity service
    5.) create the mapping for the read and find by operations.
    But how can I "teach" my application the relation between these entity services? A look into the sql database shows an empty relation table and the pattern "relation tab" is empty, too.
    I try to create a findby operation for the entity service "sub" like "findByMainID". But the attribut list only shows attributs of the "sub" entity service.
    Are entity service relations working with remote persistency?
    Kind regards
    Martin

    Hi Austin,
    thank you for you answer. But the findBy operation is only one problem. The main problem is the missing option to map a webservice to a reference/relationship. Due this fact the application has no chance to know which child record is part of which main record or which main record is parent of which child record. As a result I have two totaly isolated entity services which doesnt know, that they relate to each other. The application has no information about the relationship.
    When I create only one entity service with a complex attribute for child attributs I didn't have the these problem. I could map parameters to the (parent) attributs of the entity service and the (child) attributs of the complex attributes in the same step. In this way the application have informations about the relationship between parent and child records. For example a web service for the read operation could return exactly one record for the attributs of the parent entity service and a list of records to the child attributes (modelled as complex attributs) in case of a 0...n cardinality. I think there must be a solution like this for two entity services with a relationship between each other.
    Do you understand my problem? Maybe I've missunderstood something. But what?
    Thank you
    Martin

  • How to represent foreign key relationship between entity services

    Hi All,
    I have two entity services sbu and lob with remote persistensy(web service).In the sql database also i have these two tables.
    lob table attributes: lobId and lobName.
    sbu table attributes:sbuId,sbuName,and lobId.Here lobId a is foreign key referring to primary key of lob table.
    I want to represent this in the entity services.
    Can you plz tell me how can i do this?.
    Thanks
    Sampath.G

    Hi Sampath,
    to avoid creating a lob entity set the lobId and the timestamp attributes. because this is not smoothly done in the service browser, continue writing your UI.
    in old caf implementation this blog serie gives you a short overview...
    /people/raphael.vogel/blog/2006/05/18/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-i
    /people/raphael.vogel/blog/2006/05/18/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-ii
    /people/raphael.vogel/blog/2006/05/19/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-iii
    /people/raphael.vogel/blog/2006/05/21/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-iv
    Regards, Jens

  • Find operation with range of dates in entity services

    Hello,
    I created an entity service called A with 3 attributes: description (string), startDate (date) and endDate (date). I need to have a find operation that retrieves all A instances where startDate and endDate are in specific ranges of date.
    For example, operation needs to return all instances where startDate is between 01/03/2007 and 05/03/2007 and/or my endDate is between 10/03/2007 and 15/03/2007.
    Is it possible to do using entity services operations ? If yes, how can I do that ?
    Thanks in advance,

    Hi Helder,
    Create a findBy method (findbyDateRange) for the entity service with the fromDate and toDate as input parameters. In the app service create a method with four input parameters of type caf.core.timestamp/date (fromdateStart, fromdateEnd and todateStart and todateEnd). In the method implementation write :
    //instantiate query filters
    QueryFilter qfInputfromDate = new QueryFilter(fromdateStart, fromdateEnd);
    QueryFilter qfInputtoDate = new QueryFilter(todateStart, todateEnd);
    //get entity service instance
    myEntityServiceLocal entityServiceInstance = this.getmyEntityService();
    //call entity service method
    List dataList = entityServiceInstance.findbyDateRange(qfInputfromDate, qfInputtoDate);
    for(int i=0; i<dataList.size();i++)
       myEntityService data = (myEntityService) dataList.get(i);
      //do your custom processing
    retValue = dataList;
    Hope this helps.
    Thanks,
    Dipankar

Maybe you are looking for

  • Php code is not working as intended in a simple spam block solution

    Hi. I'm trying to get some simple php code (as suggested on a tutorial page I found) to work on my form submission test page in order to reduce/stop spam. However, the results so far have not quite been what I expected. Any help will be appreciated.

  • ORA-04044 Error in SQL statement

    Hi All, I faced ORA-04044 in a SQL statement being written inside a shell script. I really don't know what is wrong with the script. Without shell variables is working ... Here is the excerpt: line=`sar -u 2 5 |tail -1` var_io=`echo "$line" | awk '{p

  • How do I copy a Navigation Bar?

    I've created a Navigation Bar, and I want to copy&paste into other documents, or into a cell in a table. But it stops working after the simplest cut&paste I can devise. What don't I understand here? Sure would LOVE some help.

  • IBooks: font size of footnotes is too small! Can I change it?

    iBooks: font size of footnotes is too small! Can I change it? Can I change the style of foonotes viewing? It's determines by iBooks or by epub file?

  • Oracle Apps 11i ATTACHMENT_FILE_DIRECTORY Profile

    Hi Friends, i am using standard oracle apps form(11i) to upload files using attach button and i would like to know where this uploaded files stored? whether in database (or) OS? 2)what is the use of the profile ATTACHMENT_FILE_DIRECTORY The default v