Properties of Web Services generated from Application services in CAF

Hi to all,
first sorry for posting one question twice (in CAF and CE forums) but I am not sure where exactly it belongs.
I experience problems with exposing web services from application service in CE 7.1 (trial version).
I want to add fault elements or use document literal instead of RPC binding. I do it from the design page for web services. The problem is that after saving and regenerating the application, the changed information gets lost.
Is it possible to expose these services while changing some information?
And another question that would arise if this is possible. How can I catch the faults in VC? Is there e possibility to show different panels according to the value returned (from the data service, which is a web service with fault element).
Thank You in advance!
V S

Hi,
Please check note 1004108.
Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
It's a restriction that is planned to be solved in one of the next releases.
Regards,
   Jan

Similar Messages

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

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

  • Cfc component with readonly properties and web services

    I want to transfer a cfc component across coldfusion web
    services as a data transfer object. This cfc component is received
    when calling a load web service, and then supplied to an update web
    service. Some properties within the cfc need to be readonly since
    the update web service would ignore them.
    In java I would have my data transfer object with only public
    set methods for those properties which are not readonly. How can I
    achieve this in coldfusion?

    Hi,
    Please check note 1004108.
    Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
    It's a restriction that is planned to be solved in one of the next releases.
    Regards,
       Jan

  • 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

  • Java.properties in web services

    Hi,
    I have been having problems deploying web services using .property files to configure them, namely I keep getting file not found exceptions. I have had success using a relative properties file but I would really like a central file to ease maintenance issues, like when I am building stand alone apps I can add the files to the classpath and find them no problem.
    I have tried jar'ing them and adding them to tomcats common/lib directory but it still isnt working.
    Any ideas?
    cheers

    hi jjzou,
    This is what I am currently doing and works perfectly when I am running stand alone apps, as then I can set the classpath to where the properties file is. However when I try it in a web server the classpath isnt so easy to define, to find file I normally just drop the jar in the common/lib dir. But when I drop a jar with the properties file in it it still cant find it....
    I am totally perplexed at the moment, I know I could possiblt use the <env-entry> tags in the deployment descriptor but I am unsure if I can change these entries at run time, which I need to every now and again depending on what the user wants the web service to do.
    thanks for the suggestion anyway :)
    Pasty

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

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

  • Tracing query generated from application server

    Hi all,
    I'm trying to trace a session which is logged in to an application server.
    The application server and database server are in a windows 2003 platform.
    When I'm trying to generate a report from the application server it seems that it generates another session and when I checked on the program column from v$session, it was executed by java.exe.
    There are 2 similiar reports that existed in the application server the other one is really fast and the other one is really slow.
    using the deprecated parameter sql_trace which I can set to true, I can always get the trace file.
    How can I trace that fast generated report that I need to compare with the slow one without using the sql_trace parameter?
    My difficulty is just that when I click on the preview button which is going to preview it to PDF, it will spawn another session and that session will execute java.exe to generate the report.
    May be any of you can give me a suggestion on the things that I need to do with this.
    Regards,
    Adhika

    Hi Finbar,
    for the slow report, I was able to see the session from v$session but for the fast report, even if I prepred the query first before running the report, I don't have enough time to check it.
    it was just to fast. so definitely the fast query has something which is really right so it can generate the query really really fast compare to the slow report.
    FYI, my office is not in the same office as the developer so there's no way I can ask them either and also, there's no way for me to comunicate directly to developer as I need to go through some levels and procedures in my company.
    Thank you,
    Adhika

  • Error while using external service from application service

    Hello All,
    I have exposed webservice from a CAF project that i am importing as external service in another CAF project. Now i am using application service to directly call the external service. following is the code in my application service:
    Ns6_getCountryByCode__R inp = new Ns6_getCountryByCode__R();
                   inp.setNs6_countryCode(countryCode);
                   try {
                          HRServicesWSVi__DocumentLocal bn = this.getHRServicesWSVi__Document();
                          Ns6_getCountryByCode__RResponse result = bn.getCountryByCode__R(inp);
                          retValue.setCountryCode(result.getNs6_Response().getNs3_countryCode());
                          retValue.setCountryName(result.getNs6_Response().getNs3_countryName());
                     }catch(Exception e){
                          throw new ServiceException(e);
    I am getting the following error
    ERROR. Problem in server response: [Bad Request].:
    What could be the problem ? Thanks in advance
    Regards,
    Ashutosh Rastogi

    Hello,
    It's always a good idea to check the log file. In many cases you find hints what the reason for the error could be. The log file can be found here: <root>usrsap<SID>JC30j2eeclusterserver0logdefaultTrace.<xy>.trc where <root> is probably c:, SID something like F33, F41, ... and <xy> a number 0, 1, .... -> the highest number is the last and therefore most youngest log file. Please check out this file.
    Another very common (but trivial) error is that you forgot to specify the URL and the end point location of your Web Service in CAF's config tool. This tutorial explains this beginning on page 20 <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>.
    Regards,
      Jan

  • Invoking Web Service with PKI Authentication from BPEL process

    Hello --
    I am trying to test calling a Web service utilizing PKI-based authentication from BPEL running under the 10.1.2.0.2 Process Manager. When I access the service from a browser I am prompted for Username and Password the first time. When I attempt to access it from BPEL I receive this error:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
    Is it possible to access this service from BPEL in 10.1.2.0.2? How can I pass the service the required credentials?
    Thank you for your time,
    Paul Camann

    I've gotten past the original error by importing the security certificate of the Web service into my keystore/truststore. I'm also running the process on SOA 10.1.3.1.0. Now when I invoke the Web service from the BPEL process I get this error:
    exception on JaxRpc invoke: HTTP transport error:
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException:
    javax.xml.soap.SOAPException: Bad response: 403 Forbidden
    I've tried passing the credentials every way I can -- partner link properties, Oracle Web Services Manager, whatever -- and still get the same error. I would expect to see a 401 error for problems with credentials, not a 403.
    Any suggestions?
    Thanks for your time.
    Paul Camann

  • 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 with HTTP authentication using OdiInvokeWebService

    I did all configurations in OdiInvokeWebService Advanced Editor. When I press "Invoke web service" there are no errors. But when I try to execute this step there is an error:
    java.lang.IllegalArgumentException: Bad password format. Make sure that it's an encrypted password.
    Text of the command:
    OdiInvokeWebService "-URL=http://sapk02:8080/sap/bc/srt/rfc/sap/ZODI_FILE_SER?sap-client=800&wsdl=1.1" "-PORT_TYPE=ZODI_FILE_SER" "-OPERATION=ZODI_FILE" "-HTTP_USER=user" "-HTTP_PASS=_321321_"
    *<?xml version = '1.0' encoding = 'UTF8'?>*
    *<ZODI_FILERequest>*
    *<ZODI_FILE>*
    *<FILE>/tmp/temp1.txt</FILE>*
    *</ZODI_FILE>*
    *</ZODI_FILERequest>*
    When I fill HTTP password edit manually and try to execute there is another error:
    *com.sunopsis.wsinvocation.SnpsWSInvocationException: AxisFault*
    *faultCode: {http://xml.apache.org/axis/}HTTP*
    *faultSubcode:*
    *faultString: (401)Unauthorized*
    Text of the command:
    *OdiInvokeWebService "-URL=http://sapk02:8080/sap/bc/srt/rfc/sap/ZODI_FILE_SER?sap-client=800&wsdl=1.1" "-PORT_TYPE=ZODI_FILE_SER" "-OPERATION=ZODI_FILE" "-HTTP_USER=user" "-HTTP_PASS=*aIyHMmFSmTzVm1V08nTf"
    *<?xml version = '1.0' encoding = 'UTF8'?>*
    *<ZODI_FILERequest>*
    *<ZODI_FILE>*
    *<FILE>/tmp/temp1.txt</FILE>*
    *</ZODI_FILE>*
    *</ZODI_FILERequest>*
    ODI Version 11.1.1.3.0

    I've gotten past the original error by importing the security certificate of the Web service into my keystore/truststore. I'm also running the process on SOA 10.1.3.1.0. Now when I invoke the Web service from the BPEL process I get this error:
    exception on JaxRpc invoke: HTTP transport error:
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException:
    javax.xml.soap.SOAPException: Bad response: 403 Forbidden
    I've tried passing the credentials every way I can -- partner link properties, Oracle Web Services Manager, whatever -- and still get the same error. I would expect to see a 401 error for problems with credentials, not a 403.
    Any suggestions?
    Thanks for your time.
    Paul Camann

Maybe you are looking for

  • MPEG Streamclip Batch Pixelation

    Hi there I have a strange issue. When I use MPEG Streamclip to convert a video to MP4 one at a time it runs absolutely fine and the video looks perfect. However when I start a batch conversion I get all sorts of pixelation throughout the resulting MP

  • Doco/functionality mismatch: Adding a Bounded Task Flow to a Page

    Hi JDev team With JDev 11g TP4 and the latest published ADF Guide in hand, under section 14.3 "Adding a Bounded Task Flow to a Page", subsection "To add a bounded task flow containing pages to a JSF page:" it notes that when you drag n drop a bounded

  • Cjq process related entries in alert log

    Hi, I have recently set up 10g (10.2.0.4) database on solaris 10. In the alert log of the db , there are entries like this; Mon May 25 02:31:56 2009+ Starting background process CJQ0+ CJQ0 started with pid=15, OS id=18484+ Mon May 25 03:12:47 2009+ S

  • Sent Items Folder Showing Blank Messages After Installing Exchange Update Rollup

    Hi all, Over the weekend I installed Update Rollup 8 on my Exchange 2010 SP2 servers.  Some users today have reported that their "Sent Items" folders in Outlook 2007 are either showing up as empty or populated with "Blank" items (depending on how the

  • ITunes on my server

    This may sound really stupid to some of you, but I was wondering, can I tell iTunes that the Store is located somewhere different, like my server? I would like to use the iTunes software to make an internal store for our students to access course con