Encapsulating web services in CAF core

Hi,
I am trying to call external services namely web services in caf core. I read the earlier posts and i guess I am missing out on something.
1. what is the difference between encapsulating external service as entity service VS application service. For example, I am trying to call the PurchaseOrderVendorAddress_WSD webservice. It takes vendorID and purchaseorderID as input and returns vendor address. What should I use and why?
2. I checked out CAF core tutorial. It talks about encapsulating RFC as application service. Is it same for web service? I mean can I assume the same approach is valid for web service
Many thnx,
Mayukh

did you follow the tutorial "81 Using a Web Service as External Service (Service)"?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370
you can't be lost after that. otherwise you're in big trouble my friend...

Similar Messages

  • Using XI created Web Service in CAF Core

    Hello,
    i'm despairing!!!!
    For 2 days I'm trying now to get my XI created Web service working in my CAF Core application...the result is depressing.
    First of all: the Web service works without any problems when I import the WSDL into "oXygen" tool. I'm generating a request and get the correct result. The message is processed without errors in XI.
    I followed the steps described in <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370">Using a Web Service as External Service</a>. I have 2 search values (with option, minValue, maxValue) where I map each minValue to the corresponding external service attribute.  But when I test the everything in the ServiceBrowser (with parameters ""), the message is processed in XI but with empty search parameters. This means that my "" values are not transferred via XML to XI.
    Maybe I put in incorrect URLs (tutorial part: "Configure external services") for WSDL Description URL and End point URL. Which URLs are the corresponding ones in a WSDL file?
    Can anyone help me?
    Thanks and regards
    Joschi

    Hi Andre,
    Thanks for your answer, but now I'm a bit confused...why is this tutorial for GP? A Web Service is imported as External Service into a Composite Application Service DC in NWDS and then wrapped by an Entity Service. After deployment the Entity Service is tested with the Service Browser. So I don't see the connection to GP.
    The passage with 2 search values is maybe a bit confusing, yes. I will search for materialNumber and salesName (2 search values). And for each my Entity Service operation presents me in the mapping mask three "sub"-parameters: option, minValue, maxValue.
    So my question on your question: Why do I have to set the "option" to "=="? I don't need the option for my Web Service. In the tutorial there's also no "option" set. In addition I'm not able to set the "option" in my Entity Service because no coding is allowed. So is the tutorial  wrong?
    By the way, I already set the "option" to "==" in an extra Application Service (which cals my Entity Servie) and tested it. I created 2 QueryFilters and set "option", "minValue" and "maxValue". But this also doesn't work.
    Regards
    Joschi

  • Consuming ES Workplace Web Services in CAF - ReadCustomer Example

    Hi,
    I am trying out the steps from [Consuming ES Workplace Web Services in CAF|http://help.sap.com/saphelp_nw72/helpdata/en/6d/00932cf834471789ad286986185acb/content.htm]
    Completed steps 1 through 5 successfully. For step 6 I am unable to locate the options and I guess I missed something here.
    When I am testing the development I get the error Service Mapping is missing.
    More Error info: com.sap.caf.rt.connectivity.exception.CAFWSExecException: The Service mapping is missing.
    Please let me know if I am missing something here or the configuration I might be missing in step 6.
    Environment:
    SDN_Preview_SR_5_CE71.rar
    SDN_Preview_SR_5_IDECE71.rar
    Thanks,

    solved.

  • Consuming external web services in CAF

    Hi there,
    I am trying to set up a show case where a composite CAF app (exposed via WD or VC) uses SAP web services as well as external services. In this case, I chose to use the Fedex web services (http://fedex.com/developer).
    Everything works fine, I am able to import the webservice using the locally stored WSDL into my composite app, apply the mapping and implement the application service......build, deploy...all good.
    The problem occurs when trying to create the physical destination (under nwa/destination template management). NW expects a pointer/url to the wsdl or wsil file, but Fedex doesn't provide that via http. Putting the wsdl on a different web server doesn't help either as the SOAP call will be routed to the same host where the wsdl resides (in this case NOT the fedex system).
    Is there any way to circumvent the WSDL retrieval with external web services in Netweaver ? One alternative solution could be to use the Netweaver Service registry and publish the fedex wsdl to that, but I would like to avoid that as we haven't configured the SR at the moment.
    Thx, Nick

    Looks like I don't need it necessarily.
    There seems to be a bug in NW/CE 7.1. When defining a destination which points to a WSDL file which in turn points to a different server for SOAP messages (ServicePort), the endpoint URL is incorrectly defined.
    WSDL URL: http://www.server1.com/test.wsdl
    SOAP URL/Port: http://server2.com/webservices
    the server tries to dispatch the SOAP call to http://server1.com/webservices which can't be found.
    In CE 7.1.1. though, that bug is fixed, and everything works fine without the need to publish the remote service (wsdl) to the SR and to subsequently query it.
    Nick

  • Accessing BAPI web services from CAF External Services

    We have wsdl files that corresponds to BAPI calls.  Using CAF, we want to create an external service using those wsdl files and then create an application service which will be in turn used by web dynpro for developing our composites. We did the following steps:
    1. Created a new  Composite Application Service project
    2. Then right click on the External Services, select import, choose Web service.
    3. Select 'Local File System or URL' option. Copy the URL from the wsdl file and pasted the URL in the 'Browse' text field and click Next. Got an error in loading the web service.
    4. Removed the Proxy Server settings in Developer Studio but in vain. Tried all possible combinations with the URL also (such as with and without the wsdl key at the end of the URL and using the 'UDDI or URL' option under the Proxy Definition of the External Services Import and also with the Window => Preferences => Proxy settings).
    5. Since the above options failed, copied the wsdl files to the local drive and then choose that WSDL from the file system. Able to import.
    6. Created the application service and provided the custom code for the request and response.
    7. Registered the external service in the CAF browser -> Administrative tools -> External Service Configuration
    8. Tested the service through the Developer Studio.
    The error I get is: ERROR: IOError while working with the message. Check the nested exception: Connect Refused: connect:
    Any idea on what needs to be done to resolve it?

    authentication is required at design time to read the wsdl from bapis. did you provide username and password when importing the web service.
    you can always add the username and password to the url to see if you can successfully get to the wsdl. Like that http://<webas_abap_servername>:<portnumber>/sap/bc/soap/wsdl11?services=BAPI_PO_CREATE&sap-client=<clientnumber>&sap-user=<username>&sap-password=<password>

  • Web Service and CAF Application Services - How to return a table

    Hello,
    I'd like to build a CAF Application Service and expose it as a Web Service. This service should return an array or table which I'd like to display in a Visual Composer model.
    I understand that there're limitations at CAF regarding supported data types.
    Does anyone know how to get a workaround?
    Any information is very appreciated.
    Kind regards
    Stefan

    Hi,
    You can return a list.
    The standard way to do this is you have to create a complex data type for response.
    Configure the cardinality of this data type to 1..n so as to accomodate a list.
    In your implementation add your list to this response message and return the list.
    This waly you can return collections.
    Hope it helps.
    Regards,
    Srinivasan Subbiah

  • Importing web Services in CAF application

    Hi friends,
    I am involved in desgining a CAF application which makes use of some web services,
    After importing and deploying the application when I run that webservice through service Browser by creating a record,
    it gives me an<b> error: "Invalid address"</b>
    I have tries with many webservices, same output error i m getting,
    Can you please tell me what is the problem,
    Please reply,
    The suggestions will be highly appreciated,
    Thanks,
    Deepak

    Hi Andre,
    Thanks for the reply,
    <b>but the scenerio is like this,</b>
    I have some web services which are talking to MDM,
    like create, update and delete master data in MDM,
    Now I want to create a CAF application using Guided procedures and want to put it on Portal,
    So that different actions can be done based on authorizations,
    <b>Now what I have done</b>
    I have created a CAF application in which for each webservice, I have created an entity service then an application service,
    so that I can create Callable Objects for those app services and then create a GP,
    <b>Now where I am stucked?</b>
    After creating entity service, when I create a record in entity service, so that corressponding webservice mapped can be run, I get this error
    <b>Error: Invalid Address</b>
    Now please tell me where i am wrong?
    Am I following the right approach?
    Please advice..
    waiting for the valuable opinion.
    Thanks,
    Deepak

  • Error calling a Web Service in CAF

    Hi Experts
    I have develop an CAF project and in this project i call some Enterprise Services. One of this ES is CapacityLoadPlanningViewByCapacityLoadPlanningViewQueryResponse_In.
    I import this service in CAF Project from SCM system. Then i did a default mapping to an Application Service.
    I generate, build and deploy the project. When i test this service i have this message error:
    Caused by: com.sap.caf.rt.exception.CAFServiceException: Connection IO Exception. Check nested exception for details.
    Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Parameter set failure. The runtime was not able to set some result parameter value. See nested exception for details
    "failed to execute Operation query: String index out of range: 0"
    In trabsaction SICF i can see the response xml of this service, and i see that one of returning attribute is empty and should be return some value because this attribute is required.
    timeZoneCode and daylightSavingTimeIndicator
    <ProductionPlanningOrderTotalCapacityLoad>
          <ProductionPlanningOrderStartDateTime timeZoneCode="" daylightSavingTimeIndicator="">2010-01-12T16:48:13-02:00</ProductionPlanningOrderStartDateTime>
    I try to change the xml schema to corretct this but nothing happend.
    Cab someone help me about that issue?
    Thanks and regards.
    Marcos Brandao.

    Marcos,
    This looks like the error message you have:
    http://wiki.sdn.sap.com/wiki/display/JSTSG/%28NWA%29Problems-P050
    Have you checked if this is related to a permission error?
    Cheers.

  • Invoking BAPI_MATERIAL_SAVEDATA as a web service from CAF

    I am new to BAPI world. Currently, we are building a composite application - a part of the application interacts with SAP R3 for creating materials and then getting a list of all created materials. We are using the following BAPIs: BAPI_MATERIAL_SAVEDATA, BAPI_MATERIAL_GETLIST, BAPI_MATERIAL_GETDETAIL.  All these BAPIs are exposed as web services. I have created an external service using wsdl file that corresponds to BAPI_MATERIAL_SAVEDATA.  I would like to create a new material by passing minimum possible parameters. I am setting the values in HEADDATA and MATERIALDESCRIPTION only. I am giving Y to basic_view and N to all other views in HEADDATA. The call succeeds apparently but when I try to retrieve it using BAPI_MATERIAL_GETLIST/GETDETAIL it fails to retrieve. My questions:
    1. What is the best way to create a new material (basic view) by passing minimum parameters?
    2. How to verify if the material is successfully created?
    3. How does CLIENTDATA and CLIENTDATAX differ? There are similar 'X' appends in other places as well. Can anyone please provide any pointer/link about some more basic information on the following BAPIs: BAPI_MATERIAL_SAVEDATA, BAPI_MATERIAL_GETDETAIL, BAPI_MATERIAL_GETLIST.
    Thanks.

    Hi,
       3. To get more information about a BAPI, you can look at the function module documentation. Login to the R/3 system, start transaction SE37 and type in the name of the BAPI and select "Display". Once you see the source code, you'll see a button called "Function module document". Clicking on that will open up the help document for that BAPI.
       For eg., quoting from the docs for BAPI_MATERIAL_SAVEDATA, CLIENTDATA structure is used to transfer the general basic data on a material. CLIENTDATA X structure determines which fields in the assigned user data structure (CLIENTDATA) contain change-relevant information.
       2. When the BAPI_MATERIAL_SAVEDATA is executed, it should ideally contain the material number in the structure HEADDATA. Check if you are getting that. If you have it, then it should've been created. You can double check by starting transaction SE11 and display table MARA. Type in the material number that you received.
      1. All the parameters except HEADDATA is optional for the  BAPI_MATERIAL_SAVEDATA. So you can just choose to pass some of the fields of this structure and that should do it.
    Regards,
    Satyajit.

  • Questions on web services in the CRM system from abap

    Hi, we are new to consuming web services within the abap engine and have a couple of questions
    When we consume the webservice do we have access to the web.xml and ejb-jar.xml deployment descriptors is there a standard servicref element
    Are these descriptors editable so we can add JAX/RPC client side messages to the service ref element
    What are all the versions also as I can't seem to find any info also any documentation on the above if it exists would be greatly appreciated
    Cheers,
    Devlin

    Hi Devlin,
    When you can consume the services with CAF core or deployable proxies within Netweaver04s, you are able to see the web.xml and the ejb-jar.xml deployment descriptors.
    For Comsuming services within ABAP,this doc shoukd serve the purpose,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
    This doc shows how to provide and conmsume services in ABAP,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    Also I found an old doc which talks about consuming in Netwaever,probably throws somelight on deployable proxies.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c4e8960-0501-0010-fc82-bb83af9155bf
    Message was edited by:
            Karthik S J

  • Exposing Web Services as Callable Objects

    Hello!
    I have SAP NetWeaver 04s SP7. How can I expose Web Services as Callable Objects?
    According to "Exposing Web Services as Callable Objects" (http://help.sap.com/saphelp_nw2004s/helpdata/en/44/4758351fcb1193e10000000a155369/frameset.htm), I should start with choosing type of CO "Service -> Web Service".
    Actually, I haven't this entry in CO type list!
    According to integrate Web Services with GP, this type appeared in SP8. What are the alternatives in SP7?
    "Background execution" and "External service" seem to be the best candidates...
    What is the best solution?
    Thanx in advance!

    Hello, Jan!
    I have SAP NWDS 7.0.07, and I cannot find there an option to create a CAF project. I can create Web service, EJB, Web DynPro, and something else - but not a CAF project. In documentation I did not find the connection points between NWDS and External Services, except some plug-ins.
    Maybe I've misunderstood you, sorry - I'm a newbie in SAP
    Actually, I've made a simple EJB, created a Web service from it, and deployed the WS to portal. Maybe, EJB instead of Web service can be somehow used in CAF?
    I've tried to create a CO of type Composite Application Service, but there was necessary to configure endpoint aliases. I've read the manual "Configuring Endpoint Aliases", but didn't succeed to make one for EJB remote call... I've defined the name, URL (http://<host_of_portal>:<portal_port>), user and pwd - but I've got an exception when tried to use the created alias:
    com.sap.caf.core.gp.servicelocator.exception.MetaModelBrowserException: Exception while trying to get InitialContext. at com.sap.caf.core.gp.servicelocator.CAFMetaModelBrowser.getAllApplications(CAFMetaModelBrowser.java:77) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.browseCAFCore(VSelect.java:305) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.onActionSelectEptAlias(VSelect.java:750) at com.sap.caf.core.gp.ui.backgroundco.admin.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:287) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
    Maybe, the easiest way is to upgrade the versions of SAP and NWDS?
    Are there some manuals that could provide me some help about:
    1) creating CAS from the deployed Web service (from its creation in NWDS till its use in CAF, step-by-step)
    2) binding Web Dynpro apps and Web services, using CAF and GP.
    Or maybe I should attend SAP courses?
    I have SAP NetWeaver 04s SP7 and NWDS ver. 7.0.07.
    Sorry for the messy post, I did my best
    Message was edited by:
            Kirill Shepitko

  • Invoking web service multiple times

    Hello,
    in CAF I have modeled a business object Order which contains a number of OrderLines.
    In VC I have modeled a form which is used to collect the metadata of the Order as well as a table containing the OrderLines of the regarded Order.
    For storing the Order I have specified a web service in CAF, which basically inkoves the create operation of the Order.
    For storing the OrderLines I have specified a web service which adds an OrderLine to a given Order (i.e., invoking the add operation on the association).
    Is it possible to invoke this web service for each row in the table? When I connect the table to the web service and choose "all rows" only the last row seems to be processed.
    Best regards
    Alexander

    Hi Alexander,
    Consumption of  complex structure is possible when calling a web service.
    Please refer to the below links:
    http://help.sap.com/saphelp_nwce10/helpdata/en/32/07c93f26903a1ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/43/733b956d596fcee10000000a1553f6/frameset.htm ( here click on Supported web service struct and facets link)
    Let me know if its useful
    Regards,
    Vani

  • Web service return 500 invalid response code in WS Navigator

    hello everyone,
         There is a problem I work for several days.
         Everytime I deploy a web service in CAF, I can find it in WS Administraton. But in WS Navigator, I click it from the local services list. It says "Invalid Response Code: (500) Internal Server Error. The requested URL was <the wsdl url> "
         I try the NW Demo Web Service described in [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e050d6ac-01a7-2a10-f5b3-80e2f137b57b|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e050d6ac-01a7-2a10-f5b3-80e2f137b57b], also the 500 code return.That means, the demo service "http://<host>:<port>/NWDemoAdminBeanService/NWDemoAdminBean?wsdl" is also invalid in my WS Navigator.
         Anybody has some good ideas? or it is a bug?
         Our enviroment is CE 7.1 SR5 SP06
         Thank you!
    Best Regards,
    Liting Zhou

    Hi Lakshminarayana,
    there may be lots of reasons.
    [http://lmgtfy.com/?q=http%20%2B%20403]
    Regards, Hubert

  • IPhone SDK: Web Services?

    Hiya all,
    Webservices core doesn't seem to be included in the iPhone SDK.
    Anyone have any tips on communicating with a SOAP web service without webservices core? I'm surprised at how little documentation there seems to be online about Cocoa and web services. Any advice would be much appreciated.
    Thanks!
    Pablo

    One option is to port Apache Axis2/C to the iphone:
    http://ws.apache.org/axis2/c/
    It's already been ported to OSX so it may be possible to port it to the iphone:
    http://sahans.blogspot.com/2007/06/axis2c-on-solaris-and-macos.html

  • External Web Services in core CAF in NWDS

    Hi All
    Cannot Load Web Service WSDL from URI
    reason : IO exception occured while parsing  file :
    what can be the error
    Thanks & Regards
    Namita

    Hi Namita,
    We also had a lot of problems working with WebService with 7.0.07
    We upgraded to 7.0.09 and lot of problems were solved.
    For testing WebService you can use a lot of free tools available on net.
    I use Microsoft Infopath(with Microsoft Office). In this you
    Select Design a form --> New from Data Connection
    Then you have to specify the wsdl file location manually since there is no popup for selecting the files. The path will be in this format " file:///c:/ ........"
    After this you can Preview this form to test the WebService.
    Hope this helps.
    Regards,
    Shubham

Maybe you are looking for

  • Sales BOM & Free Goods Material

    Hi There are 2 materials X & Y For few distributors  it goes as Sales BOM 1) if you enter 5 qty of X , it picks 2 Qty of Y also in Sales Order i have Created Sales Order BOM for same. item category group of X is ERLA item category group of Y is NORM

  • Safari 7.5.1

    I updated my safari till 7.1.5. After this I cant open safari. Why?

  • How to reset ichat plists on lion

    my ichat isnt working i keep on getting an error that says "An undefined AIM socket error has occurred." 1. where do i find the com.apple.ichat.plist file in mac os x 10.7.1 2. if that wont fix it then is there any other way i can fix this Please hel

  • Create new resource in XDB using PL/SQL problem

    Hi Forum, I'm struggling with the problem of creating folders and resources automatically using PL/SQL. I'm working with Oracle 9.2 What I'd like to achieve is a proc like so: create_folder(path in varchar2) This proc should create the folder for me.

  • [SOLVED] VirtualBox 4 & USB Host

    I'm moving from Virtualbox 3.x (binary PUEL edition with USB from AUR) to 4.x. My 3.x was fully working including USB host. I've uninstalled Vbox 3.x and installed the following packages: - virtualbox 4.0.0-2 - virtualbox-additions 4.0.0-1 - virtualb