Exception in calling a web service from a composite application service

Hi,
I have created a composite application service with external service as a web service. My web service is deployed on localhost as well as I am running my composite application service in localhost. When i try to test the application service, I get the exception
com.sap.caf.mp.base.exception.InvocationException: Invalid parameters
The exception happens in MPConnector.java 'process' method where I am calling the execute operation on the service.
I have tried testing this through Service Browser as well as creating a callable object on the Application service and testing the callable object.
I am using the NWDS 7.0.06 version
and EP installed on my machine is the Sneak Preview 7.0 sp 7
Will appreciate all help in this regard.
Thanks,
Prachi

Hi Navneet,
I have verified the input/output parameters. They are simple types. All are Strings. Nothing really complex there.
I have the Service Exceptions added already.
And definitely the permissions are disabled but still this isn't working.
Any more clues might be helpful.
Thanks,
Prachi

Similar Messages

  • SocketTimeoutException when calling a web service from a WD application

    I'm trying to call a method of a web service from my WD application. The execution of the method longs more than 60 sec, so I'm always getting:
    Service call exception; nested exception is: java.net.SocketTimeoutException: Read timed out
    I've got this post, which tells to change the property "socketTimeout" of the client.
    Read Timed Out Error
    But I don't know what is the client in my WD application, does this refer to the logical port ?
    I've tried inserting this into wdInit:
    com.hesa.hesanet3.h3wsmodel.proxies.Hesanet3Impl service = com.hesa.hesanet3.h3wsmodel.H3WSModel.getServiceImpl();
    logicalPort =(com.hesa.hesanet3.h3wsmodel.proxies.Hesanet3ViDocument) service.getLogicalPort("Config1Port_Document", com.hesa.hesanet3.h3wsmodel.proxies.Hesanet3ViDocument.class);
    logicalPort._setProperty("socketTimeout", "30000");
    But it doesn't work.
    I've tried getting the logical port from the model object corresponding to the method of the webservice unsuccesfully.
    I've tried with Visual Administrator -> instance -> Web Service Container -> Settings -> WS Clients Socket Timeout, increasing to 120 secs. No result, still stop at 60s.
    I've tried with Visual Admin -> global configuration -> Http provider -> KeepAliveTimeout, increasing to 120 secs, and still stop at 60s.
    I can't change model object code, but I've tried to debug it and setting the property in stubForLogicalPort and in _getGlobalFeatureConfig(), without change.
    I'm using a HTTP Destination, does this have something to do?
    I'm getting insane with this and I'm in urgent need of help.
    How can I change the time the WD waits for the WebService to answer ?
    Thanks in advance.

    Find solution. Check this thread:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2bweb%2bservice
    The com.sap.tc.webdynpro.model.webservice.api.IWDWSInvocationModifier interface can be implemented by an application using the Adaptive Web Service model in order to modify the web service invocation object just before it's execution. Invocation modifiers need to be registered with the executable model class for which invocation is to be modified:
    Request_NumberToWords requestMO = new Request_NumberToWords(model);
    requestMO.wdSetInvocationModifier(
      new IWDWSInvocationModifier() {
        public void doModifyInvocation(Object port) {
          HTTPControlInterface httpItf = HTTPControlFactory.getInterface(port);
          //timeout for this WS invocation is 120 sec; don't use global config. setting of WS-Runtime
          httpItf.setSocketTimeout(120000);
        public void doModifyAfterInvocation() {}
    Best regards.

  • How to call a Web Api from from a Visual webpart code behind?

    Hi,
    I am trying to create a visual web part in sharepoint 2013 with data received from another Web API.
    I followed the below steps.
    1. Created a Visual Web part.
    2. In the code behind(.cs) file I wrote the following code.
     async private void GetResult()
                using (var client = new HttpClient())
                    client.BaseAddress = new Uri("http://localhost:8080/");
                    client.DefaultRequestHeaders.Accept.Clear();
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    var response = await client.GetAsync("api/Tfs/OpenEnquiriesCount");
                    var content = response.Content;
    3. When I run the application, I get security exception in the line await
    client.GetAsync()
    What is the way to achieve this? How to call a web api from share point visual web part?
    Thank you in advance.

    Hi,
    Thanks for your sharing.
    Cheers,
    Jason
    Jason Guo
    TechNet Community Support

  • Unable to consume secured Web service from a Dynpro application

    Hello,
    I have followed <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/bac36a469e4c75aba646077e71516d/frameset.htm">this tutorial</a>
    in order to protect and consume a secured Web service from a Dynpro application using SAP logon ticket.
    The problem is that after implementing everything needed I  receive 401 Unauthorized when I am trying to consume it from the web dynpro side.
    If I manually transfer the request the credentials, before the execute i.e:
    modObj._setUser
    modObj._setPassword
    modObj.execute();
    I am able to call it, meaning the dynpro application doesn't transfer these credentials to the Webservice even though it's authentication property is set to true.
    Any idea how to solve it?
    Roy
    Message was edited by:
            Roy Cohen

    Try below steps
    • Add jars
    o security.class
    o tc/sec/destinations/interface
    • Setting WebDynpro project property
    o Project>Properties>Web Dynpro References-->Interface references
    &#61607; Name=tcsecdestinations~interface
    o Project>Properties>Web Dynpro References-->Service reference
    &#61607; Name=webservices
    &#61607; Name=tcsecdestinations~service
    • Dynamically Set httpdestination and Call web service
    final InitialContext ctx = new InitialContext();
    final DestinationService dstService = (DestinationService)ctx.lookup(DestinationService.JNDI_KEY);
    if (dstService== null)
    throw new NamingException ("Destination service not available");
    final Destination destination = dstService.getDestination("HTTP"," DestinationName");
    // getting user name
    Properties destprop = destination.getDestinationProperties();
    String username = destprop.getProperty("USERNAME");
    String password = destprop.getProperty("PASSWORD");
    final HTTPDestination httpDestination = (HTTPDestination) destination;
    HttpURLConnection httpConnection = httpDestination.getURLConnection();
    String httpURL = String.valueOf(httpConnection.getURL());
    Request_AdvLocationVer1ViDocument_getLocation obj=wdContext.currentRequest_AdvLocationVer1ViDocument_getLocationElement().modelObject();
    obj._setUser( user );
    obj._setPassword(pass);
    obj._setEndPoint(httpURL);
    obj.execute();
    Rahul

  • Invoking a Web Service from a mobile application

    Hi all,
    I have installed Sun Wireless Toolkit 2.5.2 for CDLC and MTJ.
    I want to invoke a web service from an MTJ Application and I have not a clue of how to start.
    First let me say I am working with RSA (which is over Eclipse)
    My first attempt was creating the web service client and then try to convert it into a mobile application (through the use of MTJ --> Convert to Midlet Project)
    I found 4 errors when doing so:
    First was solved changing the jre to 1.6.
    I am still dealing with the following three:
    * Error preverifying class mipaquete.MiServicioService
    java/lang/NoClassDefFoundError: javax/xml/ws/Service
    * Error preverifying class mipaquete.ObjectFactory
    VERIFIER ERROR mipaquete/ObjectFactory.createMiOperacion(Lmipaquete/MiOperacion;)Ljavax/xml/bind/JAXBElement;:
    Illegal type in constant pool
    * Type mipaquete.MiServicioPortProxy$Descriptor Error preverifying class mipaquete.MiServicioPortProxy$Descriptor
    VERIFIER ERROR mipaquete/MiServicioPortProxy$Descriptor.getDispatch()Ljavax/xml/ws/Dispatch;:
    Illegal type in constant pool
    I only started to solve the first one. I assumed that I have to add the right .jar to manifest file (please let me know if I am wrong). I tried to do by adding the textual classpath rt.jar, however I am not able to give it the right path:
    C:\Archivos de programa\IBM\SDP\runtimes\base_v7_stub\java\jre\lib\rt.jar (even though I split the too long sentence into two and I include an space at the beginning of the second, I still get an error when saving)
    I would appreciate any help
    A) to solve the existing problems
    or
    B) To create a web service client in an EclipseME application through any other method.
    Thank-you very much in advance,
    Guadalupe
    PS Any clue is welcomed!!

    Hello rss,
    If you want to invoke a web service from a JCD you will have to build the SOAP message using JAX-RPC or AXIS and then programmatically creat an HTTP connection.
    Or you can leverage the HTTP(S) eWay and then you only have to build the SOAP message.
    Or use eInsight. You can import a WSDL into eInsight and eInsight will offer you a business process Activity to invoke the web service operations defined in the WSDL.

  • Help me!    How to use it as a web service from third party application?

    After using JDeveloper to develop BSSV object e.g. JP550010, how to use it as a web service from third party application?
    TKS!

    Obviously the OP is working on a project for the Bead Society of Southeastern Virginia http://www.bssv.org. Oh, wait, maybe he's researching the Blueberry Shoestring Plant Virus http://abbreviations.yourdictionary.com/bssv
    :D
    John

  • Calling ERP Web Dynpro from CRM Opptunity with parameters

    Hi, experts!
    In CRM7.0, I'm calling ERP Web Dynpro from CRM Opptunity.
    We've added a button in Opptunities and the buttom can navigate into ERP Web Dynpro.It works fine.
    Now, I'm trying to move the value of Opptunity ID to a field in ERP Web Dynpro when we push the buttom. That's a problem I want to solve. We're struggling to move the value, but it doesn't work.
    We uses the following settings:
    1) We call Z- Logical Links generated by Transaction Launcher when we push the buttom.
    2) We define Transaction Parameters in a Transaction Launcher Wizard(Step5). We've set "//clipboardBTOrder/BTOrderHeader/OBJECT_ID" or "//datacontextCURRENTBT/BTOrderHeader/OBJECT_ID".
    But both of them doesn't get any value.
    3) If you set SYST data or constants in Transaction Launcher Wizard(Step5), you can find the data in ERP Web Dynpro.
    Does anyone know which parameter gets the value of current opptunity data?
    Or if you have any tips to create URLS using programing, could you please share the information with me?
    BestRgards.
    Miki

    Does anyone have tips??

  • Problem in calling BW web templates from Netscape 7.0

    Hi all
    I have a problem in calling BW web template from Netscape 7.0, it gives an error " port number not accepted for security reasons" .
    It works on Netscape 8.0 and ie.
    regards
    Paul

    This is the very frequently asked question about Netscape.
    http://ilias.ca/netscape/browserfaq/#portaccess
    Solution is:
    find the file <b>c:\Program Files\Netscape\Netscape\defaults\pref\all.js</b>
    and append the following string to this file:
    <b>pref("network.security.ports.banned.override", "1080");</b>

  • Call the web packager from a KO??

    Hello!
    I'm having a bit of a senior moment here and could use some
    help - is
    there anyway to call the Web Packager from inside a KO built
    with
    Authorware? I can output an EXE with PackageFile() from
    inside the KO,
    but don't see an obvious way to go the next step and web
    package the file.
    tia,
    Mark Henry

    "Mark Henry" <[email protected]> wrote in
    message
    news:e8k36r$mc1$[email protected]..
    > Hello!
    >
    > I'm having a bit of a senior moment here and could use
    some help - is
    > there anyway to call the Web Packager from inside a KO
    built with
    > Authorware? I can output an EXE with PackageFile() from
    inside the KO, but
    > don't see an obvious way to go the next step and web
    package the file.
    >
    Have you tried launching obp.exe? Maybe it can be launched
    from a command?
    Steve
    ACE - Adobe Community Expert, Authorware
    My blog -
    http://stevehoward.blogspot.com/
    Authorware tips -
    http://www.tomorrows-key.com

  • Can i call portal service from a j2ee application?

    Hi Experts,
    Can i call portal service from a j2ee application?
    If yes then how?
    If no then is there any other way to achieve the same?
    I m reffering this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/content.htm
    but not getting any help
    Please help me out.

    Hi,
    Can you check this link?
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/content.htm
    Regards
    Srinivasan T

  • Can't call WCF Data Service from within a WCF Service

    I am trying to query my WCF Data Service from within a WCF Service and I receive a error 404.  However, when I query the data service from my application, it works just fine.  The WCF Service will work just fine if I comment out the Data Service
    query request. 
    How do I get a WCF Service and a WCF Data Service to play nice?

    Hi,
    For this situation, first you could try to create the wcf data service and run it then consume the data service within your application by adding service reference.
    Here is an example for creating and consuming WCF Data service in console application, and for consuming the service in wcf service, you could just follow the same steps as the console application does.
    http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/introduction-to-wcf-data-service-and-odata/
    Regards

  • How can i call a jasper report from a java Application

    Hi,
    i am chiranjit , currently i working in a web based ERP project, in this project as a report building tool we are using JasperReport wih eclipse plugin . in eclipse report's are generating very well but i am unable to call that report from a java application because i have no idea about the How to call a Jasper Report from a Java Application . so please send me the necessary class names, jar files names and programe code as early as possible.
    Chiranjit

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do i Hyperlink to a web page from a java application?

    How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?

    It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
    String [] cmd={path of IE+Filename.exe,"URL of your website"}
    try
    Runtime.getRuntime().exec(cmd);
    catch (Exception e)
    System.err.println(e.toString());
    }

  • Accessing custom Portal service from a java application

    We have a custom portal service that connects to BW using xmla. How do you access this portal service from a java application. Not from web dynpro, jsp or servlet but from the java code.
    Can we use the INITIAL_CONTEXT_FACTORY to get access to the portal service.
    Thank You
    D.K

    Now I tried the following:
    I've added the prtapi.jar and the service's jar to the additional-lib folder and added the appropriate entries to library.txt and reference.txt.
    Now I can obtain now the PortalRuntime, but this is not initialized.
    Has anybody a solution for this problem? Help would be high appreciated!
    Regards,
    Matthias

  • How can i call a VB6 project from my java application using JNI

    hi
    can anyone tell me the procedure of calling a VB6 project from any java application using JNI
    if anyone does know then tell me the detail procedure of doing that. I know that i have to create a dll of that VB6 project then to call it from the java application.
    if anyone know that procedure of creating dll file of an existing VB6 project please reply
    please if anyone know then let me know

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • HT4623 MY i phone 5 wont let me download apps etc it just keeps asking for my apple id password?

    Juat got my i phone 5 today and have opened an apple accout but it wont let me download apps etc just keeps asking for a password over and over again???

  • Creation of Batch Input for transaction C201

    Hello, Currently I am having a requirement to create a batch input session for tcode C201. Following steps we need to perform using batch input session: 1. Go to tcode C201 and enter material and Plant. 2. Then click on choose template and give Mater

  • Getting "Device not authorized to play content"

    Just purchased APPLE TV.  I had a movie on my iPad and I wanted to Airplay to my Samsung LCD.   Getting error "Device not authorized to play content".  Any pointers?  Suggestions?

  • Display of HTML file titles instead of File Names

    Hello All, I want to display the HTML file titles instead of File names in the Search Results. I've tried to give this command in the 'Visible Properties' in the 'SearchResourceRenderer' as:- Visible Properties: rnd:displayTitle However this is not w

  • Recovering album art for movies

    I am having problems with the album art on itunes. The album art for my songs, tv shows, and movies, I can seem them in itunes. but when I load the files onto my ipod touch the album art gets screwed up. It takes frames from movies and substitutes th