Webservices in CAF

hi
           i have been using  webservice  in CAF  and  it got some problem
  while  using  configuring   ENDPOINT URL
   but  was solved later  when  i  have used
                  http://<host>:<post>/default?style=document
     when in the  above URL  i have  written  style=document 
    the  problem has been  solved(problem was : bad request)
    why in the ENDPOINT URL  we should write     style=document

Hi Richard,
as far as i know the External Service configuration is only for web services (or RFC's) which are imported as external service in a CAF-Project.
I assume you developed a application service in CAF and applied a web service on this. Those web services are not visible in external Service Configuration only (as you have found) in Service Navigator)
I hope this helps,
best regards,
Rene

Similar Messages

  • Error while using External Webservice in CAF

    Hi All,
    I am trying to use an external webservice in my CAF project. The webservice is working fine when tested using WebService Navigator but when I m testing in CAF Administrator UI it is giving the following error.
    ERROR. Problem in server response: Bad Request.:
    Please provide the appropriate solution it’s very urgent.

    Hi Vijay,
    Did you check if you are using full correct UURL. That happens with incorrect URL.
    Thanks,
    Ravi

  • Using XI WebService in CAF as external service with Logical Destination?

    Hello,
    I created a scenario WebService -> XI -> WebService in a PI7.1 system. I used the Web Service Wizard in order to generate a WSDL. If I test it for example in XMLSpy it works fine.
    We then imported this WSDL into CAF as external service. That also works.
    Now we have to map the CAF Service to a logical Destination. This has to be maintained in NWA. But here we need a URL to the WSDL. I cannot use the local WSDL Filed which I from that WebService Wizard.
    Is there any generic URL were I can get the WSDL for the WebService which calls the XI Interface?
    Thanks and Best Regards
    Katharina
    Edited by: Katharina Seiz on Oct 6, 2008 6:19 PM

    Good Idea. I tried that. I added the WSDL to a Web Module and deployed it with the CAF ear module. It is now available via: http://vmw2469.wdf.sap.corp:50000/testxi/GLAccountPostingSync_Out_PI71.wsdl
    If I test it directly in WSNavigator it works fine,  but if I map my CAF Service to the logical Destination which is also using that URL, I get the following error:
    com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: Deserializing WSDL stream http://vmw2469.wdf.sap.corp:50000/testxi/GLAccountPostingSync_Out_PI71.wsdl failed
    If I try to find the service via the function "Search by Logical Destination" I get the following error:
    Invalid content type while requesting http://vmw2469.wdf.sap.corp:50000/testxi/GLAccountPostingSync_Out_PI71.wsdl. Expected Content-type: text/xml, received Content-type: content/unknown, used user to connect: most
    Has someone any idea what the problem could be?
    Thanks and Best Regards
    Katharina
    Edited by: Katharina Seiz on Oct 6, 2008 6:32 PM

  • Error while importing webservice in CAF. CE 7.2

    Hi All
    I am trying to reimport a web service in my CAF application. The old service has undergone changes in structure.
    > I opened the CAF DC expanded the u201Cexternalu201D node
    > opened the package containing the service
    > Right clicked and selected delete with Data types. Service got deleted
    > Then clicked on save
    > Right clicked on the external node
    > Import  Web service
    > Enter the Service URL and click on next, select no service groups
    > On final step of finish I get the error
    Web Service can not be imported due to some errors. See log for further details.
    java.lang.NullPointerException
         at com.sap.caf.designer.generation.v2.javatypes.XSDSchemeGenerator.generateElementDeclaration(XSDSchemeGenerator.java:466)
         at com.sap.caf.designer.generation.v2.javatypes.XSDSchemeGenerator.generateXSDComplexTypeDefinition(XSDSchemeGenerator.java:410)
         at com.sap.caf.designer.generation.v2.javatypes.XSDSchemeGenerator.generateXSDEntity(XSDSchemeGenerator.java:362)
         at com.sap.caf.designer.generation.v2.javatypes.XSDSchemeGenerator.generateModeledXSDScheme(XSDSchemeGenerator.java:356)
         at com.sap.caf.designer.generation.v2.javatypes.XSDSchemeGenerator.generateMergedWSDLDocument(XSDSchemeGenerator.java:169)
         at com.sap.caf.designer.ui.utils.WsUtils.getUpToDateAllMergedWsdl(WsUtils.java:40)
         at com.sap.caf.designer.ui.actions.es.WSDownloadAction.gatherCollisions(WSDownloadAction.java:520)
         at com.sap.caf.designer.ui.actions.es.WSDownloadAction$DowloadActionChainingWizardDialog.checkForCollisions(WSDownloadAction.java:233)
    I am working on CE 7.2 SP 10. Kindly help me out
    Thanks
    Deepu MS

    Deepu,
    Delete the namespace of external service.
    save and generate the project before reimporting the external service.
    not sure there is a way out in  CE 7.2 SP 10. without deleting namespace.
    Regards,
    Nikhil Bose

  • Authentication for CAF webservices

    Hi,
           How is User Authentication given to the Application Services which are exposed as WebServices in CAF.

    Hi,
    Please follow this article
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/205afcd0-3d40-2b10-fc91-b6bde33055b7

  • How to use a jdbc driver in caf

    Hi, all.
         I tried to make a ws to access DB with CAF, but I had no idea how to use a jdbc driver(.jar).
        Can anyone do me a favor? Thx 
        PS: my server is ce7.1
    Edited by: Louis HUANG on Jul 27, 2009 1:09 PM

    hi
    If you want to interact with db tables in caf,try like this.
    it may work..
    Using EJB call database tables using jdbc driver.
    Expose EJB as webservice.
    and using External service option of caf utilise this webservice in caf,do the necessary mappings..
    you can search in sdn,how to call DB tables in EJB..
    Regards
    sowmya.

  • Error after import external webservice(RFC) wsdl url to Process Composer

    Hi all,
    I try to use RFC webservice in my BPM as below:
    1. Expose RFC as webservice using CAF (import external service RFC and then create application service use this external service)
    2. Define Destination in NWA.
    3. Create a Process Composer project, and import the external webservice(RFC) wsdl file as service interface in the project.
    After importing, i get error : the port type specified for the ...binding is undefined. Check port type name and ensure it is defined.
    If i import another external service, not RFC (such as business object), there is no error.
    My system is NWCE 7.11
    Thanks in advance,
    Sinh.
    Edited by: Sinh Nguyen Van on Jul 20, 2009 8:29 AM

    Hi Bharath,
    Below is content of wsdl url and error message, thanks
    Error message:
    The 'zfm_rfc_caf_as' port type specified for the 'zfm_rfc_caf_asBinding' binding is undefined. Check the 'zfm_rfc_caf_as' port type name and ensure it is defined.
    wsdl url :
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" xmlns:b0="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as">
      <import namespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl?wsdl=binding&mode=ws_policy" />
    - <service name="zfm_rfc_caf_as">
    - <port name="zfm_rfc_caf_asBindingPort" binding="b0:zfm_rfc_caf_asBinding">
      <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl" />
      </port>
      </service>
      </definitions>
    Edited by: Sinh Nguyen Van on Jul 22, 2009 4:18 AM

  • WebService import

    Hi,
    currently i'm trying to import a WebService into CAF.
    In the development component i import a external service and choose "Local file system or URL" or "UDDI or URL" for the WSDL source.
    I tried to import a WebService listet from xmethods.com. But it doesn't matter which i choose. Everytime i get this error:
    Cannot Load WebService WSDL from URI: C:\GoogleSearch.wsdl, reason: Invalid wsdl schema no attributes are allowed.
    And if i try e.g. to import the google search WebService (WSDL file is downloaded on my local pc) i get this error:
    Cannot Load WebService WSDL from URI:
    http://www.terawave.ca/webservices/paddle.cfc?wsdl, reason: Connection refused: connect (Nested exception: IO Exception occurred while parsing file:Connection refused: connect)
    Its not possible that all this schemas are invalid. Maybe SAP Netweaver Seveloper Studie expects a more restricted version of WSDL.
    Does anyone have an idea what may cause this issue???
    regards,
    MS

    errors in the wrong sequence, sorry

  • CAF import / service group issue?

    Hi,
    I have developed a caf with a number of webservices exposed (CAF A), this has been deployed to a ce server, within a serperate CAF project (CAF B) I have imported a service from CAF A as an external service and used it within this caf. The two cafs have been deployed to a CE Server and works as expected.
    The problem occurs when I have deployed the two caf projects to another CE server different from the one I developed against, CAF B returns data from the orginal environment when calling CAF A's services and not from the environment it should use. If go directly to CAF A say by using ws navigator I get the right data, it is only when I go through caf B I get issue.
    Is there away to configure the service groups on NWAdmin and explicitly set which CAF in which environment to use?
    Any help will be greatly recieved!
    Thanks,
    Jon
    Edited by: Jon Hardman on Jan 20, 2010 7:25 PM

    Hi Jon,
    you can specify the provider system for the respective service group via
    NWA -> SOA Management -> Application and Scenario Communication -> Application Communication.
    Make sure the provider system you assign refers to the correct physical system. You can check this under Technical Configuration - System Connections.
    Regards,
    Christian

  • Cosuming web Services in Application services

    Hi All,
    I have created an application service.I want invoke a operation of a web service in this application service.Application service is expecting a complex data type.
    How can i invoke that method?.
    can you plz give me some sol?.
    Thanks
    Sampath.G

    Hello Sampath,
      I am assuming you are trying to create a CAF application service. This should be possible by simply importing the webservice and choosing the default mapping if you are using CE.
      If you are using 04s there is a how to guide on consuming webservices in CAF
    Regards
    Abdul

  • Destination lookup

    L.s.,
    I'm experiencing some troubles with my VC 7.3 (sp3). Hope that you experts can help me!
    The model is fairly simple, and consists of a BPM task for which a VC UI is generated. In the generated UI I've added a CAF webservice. CAF webservice (findall) is tested in WSNavigator and works fine.
    The service is imported in NWDS-VC with system alias "ABC". "ABC" is defined as a system alias in portal and connects correctly to server.
    Since getting the message "Error occurred while identifying the destination : Could not find destination ABC", I've added "ABC" as a destination in NetWeaver Administrator. The destination is pingable.
    To be sure I've verified that there are no 'strange' characters in the response from the service.
    Furthermore I've used the "Security Troubleshooting Wizard: Scenario Tracing" and looked at the Log Viewer. For both there is but one error message: "Stopped further execution since the interpreter is unusable", with customer message component BC-WD-XGL.
    What O What?
    Thanks in advance,
    Martijn

    For later use,
    I was getting exactly same error with the right settings
    ( using wsil andhttp://server:port/inspection.wsil as url )
    The problem was, destination template was set for logon ticket and I wasn't sending any logon info.
    When I sent logon id & pass, it worked well.
    Its just an annoying error which could be anything..
    Ali A.

  • CAFFindException, connecting object editors

    I have 2 questions:
    1. I have been successful in calling a sap webservice using caf core (PurchaseOrderVendorAddress_WSD). I imported it and used an entity service as a wrapper. It worked fine. But with another one (ProductList_WSD) it gives the following error :
    ERROR. The following exception occured while processing your request: com.sap.caf.rt.exception.CAFFindException.:
    any ideas. The error comes in the "service browser" under test tools
    2. Some one asked a question before as to how to connect 2 object selectors. This is in line of that. I have a purchaseorderitem, which has among several attributes:
    productID and productDesc.
    The user inputs the productId through the UI but the productDesc is generated via the webservice mentioned in question 1. The problem is I cannot put both in same entitity service because then I dont know what to do with the persistence (remote/local). Hope you understand. So I guess I have to create two entity services. And on submit, the first one calls the second one and automatically fills up the productDesc attribute. How do I do this? Is there any tutorial for such a purpose ?
    Your suggestions are highly appreciated.

    now that you've defined your Service Layer abstraction, you have to define your UI layer. If you have steps to do you need to define your process layer.
    In your scenario we need to develop simple UI to simple info and pass output of one step as input of next step. So my recommendation is for you to use freestyle webdynpro for individual UIs and Guided Procedures for UI and data flow.

  • External WebService call from CAF Core returns Invalid soap message

    I am trying to perform the very simple action of calling a WebService from a CAF Core app service.
      1. I imported the WS (Axis Web service running on NW 2004s SP9 server) with WSDL (option 2 on import external service page).
      2. I then assembled the call in an app service method and invoke it.
      3. I made sure to configure the end point for the service and the method using the External Service configuration.
    When I execute the CAF core method using a simple Callable Object test client, I get the following error:
    com.sap.caf.mp.base.exception.EngineException: Invalid soap message received
         at com.sap.caf.mp.core.data.service.manager.wsdl11.SOAPToMessageValueConverter.processComplexTypeMode(SOAPToMessageValueConverter.java:290)
         at com.sap.caf.mp.core.data.service.manager.wsdl11.SOAPToMessageValueConverter.generateComplexTypeValue(SOAPToMessageValueConverter.java:179)
         at
    truncated.
    I have also captured the XML request/reponse trace using tcpmon :
    REQUEST:
    POST /NWTestExpressWAR/services/TestExpressService HTTP/1.1
    Host: 192.168.99.120:8078
    Content-Type: text/xml; charset=UTF-8
    Content-Length: 348
    SOAPAction: http://www.testsys.com/TestExpressService/getAvailableModels
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns1:GetAvailableModels xmlns:ns1="http://www.testsys.com/TestExpressService"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
    RESPONSE:
    HTTP/1.1 200 OK
    Server: SAP J2EE Engine/7.00
    Set-Cookie: saplb_*=(J2EE11743000)11743050; Version=1; Path=/
    Content-Type: text/xml; charset=utf-8
    Date: Mon, 04 Dec 2006 02:19:39 GMT
    Transfer-Encoding: chunked
    Set-Cookie: JSESSIONID=(J2EE11743000)ID1261187150DB11296929644926762709End; Version=1; Domain=192.168.99.120; Path=/
    1f3
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><GetAvailableModelsResponse xmlns="http://www.testsys.com/TestExpressService"><modelNames><name>Great Oak Manufacturing-January03 Test</name><name>PriceCheck-default</name></modelNames><errorMessagesReturn/></GetAvailableModelsResponse></soapenv:Body></soapenv:Envelope>
    0
    The only problem I can think off is that the transfer-encoding is marked as chunked which is causing the characters '1f3' and '0' to appear after and before the response and that this is causing the app to crash.
    192.168.99.120 is the server the hosts the WS. It is also a 2004s SP9 server. The client server that hosts the CAF core service is of the same configuration. 8078 is the port I redirect for tcpmon purposes.
    Could anyone shed some light on my problem?
    Thanks,
    Pratap.

    It looks like NW WS client cannot handle Transfer-encoding of chunked even though this is part of HTTP 1.1. What seems to be happening is that the NW WS client is creating a HTTP 1.1 request. The service (axis ws running on NW) seeing this is creating a HTTP 1.1 response w/ chunked encoding. However, the client cannot handle this encoding and barfs. The solution is to change the service to return a HTTP/1.0 response since NW cant handle HTTP 1.1.
    Pratap.

  • How to use Adaptive WebService Model with CAF WebService and Complex Type

    Hi All,
    I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
    Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
    Help is appreciated..
    Thanks, Johannes

    Thanks Mukesh.
    It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
    I did not find any information about how to return complex types in AWS.. in this document???
    Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
    Thanks, Johannes

  • Read timed out while uploading file via CAF webservice

    Hi there,
    I am trying to upload an xml file from a Web Dynpro application via webservice.
    Web Dynpro:
    public void importFile( )  {
        //@@begin importFile()
           try {
                   wdContext.currentImportFileElement().setFileName(wdContext.currentContextElement().getFileUploadUI().getResourceName());               
                     wdContext.currentImportFileElement().setFileBase64Binary(getByteArrayFromResource(wdContext.currentContextElement().getFileUploadUI()));                 
                   wdContext.currentRequest_ImportFileElement().modelObject().execute();
                   msgMgr.reportSuccess(wdContext.currentImportFileResponseElement().getMessage());          
                } catch (FileNotFoundException e) {
                   e.printStackTrace();
                   msgMgr.reportException(e.getLocalizedMessage());
                } catch (IOException e) {
                   e.printStackTrace();
                   msgMgr.reportException(e.getLocalizedMessage());
                } catch (WDWSModelExecuteException e) {
                   e.printStackTrace();
                   msgMgr.reportException(e.getLocalizedMessage());
        //@@end
    getByteArrayFromResource:
    private byte[] getByteArrayFromResource(IWDResource resource)
    throws FileNotFoundException, IOException {
    InputStream in = resource.read(false);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    int length;
    byte[] part = new byte[10 * 1024];
    while ((length = in.read(part)) != -1) {
    out.write(part, 0, length);
    in.close();
    return out.toByteArray();
    in CAF:
    InputStream is = toInputStream(fileBase64Binary);
    private InputStream toInputStream(byte[] fileBase64Binary) {               
              InputStream is = null;          
              try {               
                   ByteArrayInputStream bais = new ByteArrayInputStream(fileBase64Binary);     
                   is = bais;               
              } catch (Exception e) {
                   e.printStackTrace();
              return is;
    Anybody could help me with this issue? Is there a better way to upload the file (about 4-10MB) via a webservice? Special settings for the webservice?
    Regards

    I dont use IBM's ftp library, but I do know networking.
    It seems either IBM got the protocol wrong (not going to happen) or (more likely) the socket being used has timedout due to inactivity (no input to read), that means a few things.
    1. Are you calling the methods in the correct sequence?
    If you have a protocol that needs you to login first, then send files and you just send the file first, this
    will cause an error.
    2. Sockets have java.net.SocketOptions associated with them: Check the socket settings for SO_LINGER, SO_TIMEOUT.
    If you set the SO_TIMEOUT to 0, you will have an idefinite socket connection (persistent connection). But, remember if the server has nothing to send, their simply is nothing to send
    and so you should NOT being trying to read an empty input stream.
    3. Closing: Are you closing the connection/streams anywhere other than where it should be done.
    Hint: Closing a connection is the last thing to do.
    Happy hunting, and remember Duke Dollars to me is like an answered question to you.

Maybe you are looking for

  • Function module L_TO_CREATE_MULTIPLE and commit

    Hi, Does anyone knows if in one report I call function module L_TO_CREATE_MULTIPLE with parameter I_COMMIT_WORK = SPACE and if in the main report after the call of the function module i do a commit command that allows that the transfer order is creat

  • How to make Custom Discoverer workbook use Custom Security profile of Apps

    We use Discoverer in Oracle Apps setup. We have added Custom security in our HR People Form of Apps. This Custom Security restricts one HR Emplpoyee not view other HR employee record except for himself/herself. Also maintining that they should be abl

  • Position to Requisition relationship not delimiting

    Hi Experts, In SAP E Recruitment, when ever a requisition is closed from Front end by recruiter then in OM position to NB relationship is not delimited. Is this a standard behavior of SAP E Recruitment. Regards Puneet

  • F4140 Pringting blank page from web pages & pdf

    My F4140 is working and printing but is printing blank pages when I try to print from a PDF.  I just tried to print a word document and it only printed the black and white section and left the color sections blank.  It is also only printing the  blac

  • Saving an iMovie 3.0.3 project

    How should I save the movie I have without burning another DVD? I still have the project in iMovie and want to remove it because it uses so much space. I burned it and gave the DVD as a gift a few months ago. It took 22 hours to burn a 16 minute movi