Endeca webservice call from different Application.

I am trying to call the Endeca (v2.2.2) Webservice, using the client generated class file from the wsdl file (conversation.wsdl) and pass the query to get the result. Steps so far did
•     Use apache cxf codegen plugin 2.7.0 to generate the client classes using the above wsdl.
•     Written junit test case for client class and send the query to server. I can connect to the server but getting back the ConversationFault: Sequence has length 0 but must have length 1
•     The only method I can use to call from the client is conversationPort.query(request), which is generated by cxf wd12java
•     Following is the line of code from the client class
ContentElementConfig config = new ContentElementConfig();
config.setHandlerFunction("AS select max(p_common_date_epoch) as 'MaxDate' where Social_Media_Type = 'Twitter' group by interaction_author_username, interaction_text, interaction_link, Klout_Score, Followers_Count, DocumentSentiment, calculated_entity_sentiment, SalienceSentiment order by MaxDate desc, Followers_Count desc page (0,50)");
Request request = new Request();
request.setState(null);
request.getContentElementConfig().add(config);
Client Call: Results results = webServiceClient.readQueryResults(request); // this method internally calls conversationPort.query(request).
Any thoughts or recommendation please advise.
Edited by: user4993272 on May 9, 2013 10:57 AM

Hi,
i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
i am not understanding how i will do that.
A service wont allow you to access the live instance of an application and instead create its own data session. So while you can query data that belongs to App2, you wont be able e.g. to access a users uncommitted data changes
Frank

Similar Messages

  • Webservice call from one application to another application

    Hi all,
    I am new in ADF and using jdeveloper version 11.1.1.0.0. Now I am working in an application where my steps are as follows,
    i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
    i am not understanding how i will do that.
    please give your useful comments.

    Hi,
    i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
    i am not understanding how i will do that.
    A service wont allow you to access the live instance of an application and instead create its own data session. So while you can query data that belongs to App2, you wont be able e.g. to access a users uncommitted data changes
    Frank

  • Fedex webservice call from OOD env

    Hi all,
    I am trying to make fedex webservice call from OOD apps env.But i am getting below error.Same code with same data works fine from jdeveloper project.
    Is any setup requried to make to work from application.Is OOD is having any restrictions in calling webservice.
    Please suggest to fix this issue.
    Thanks,
    ashok
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.net.ConnectException: Connection timed out
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)

    If your code works from JDeveloper and does not works when you deploy the code in an app server, and fails with connection timeout, the issue may be related to the way you have setup your proxy in JDeveloper, which need to be replicated in the JVM running your code in the middle tier.
    A good place to start is the proxy setting in JDeveloper, under Tools >> Prefernces >> Web Browser and Proxy.
    Best,
    - Eric

  • Webservice call from PCo; FaultException: Authorization fail

    Hi,
    I am making a ME Webservice call from PCo.
    I have configured Destination System, added a service in Configuration tab.
    Using 'Test request message', i tested the call with all required inputs, the object is created in ME system.
    When the same service is triggered from PLC > PCo, the call fails and i see the following message in Log tab.
    UserName/password is correct..
    All the required systems are running.
    Log:
    ME Dispatcher Could not dispatch Message [id = 75c405c5-24d4-4f70-b19a-87f6b6ae0413].
    FaultException: Authorization failed. Please check security log for details.
    Server stack trace:
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at SAP.Manufacturing.Connectivity.WSDestination.WSDestination.Send(Guid notificationID, Dictionary`2 requestValues)
       at SAP.Manufacturing.Connectivity.WSDestination.WSDestination.Send(NotificationMessage message)
       at SAP.Manufacturing.Connectivity.Dispatcher.ProcessMessage(NotificationMessage message, DestinationBase destination)
       at SAP.Manufacturing.Connectivity.Dispatcher.DispatchMessageExecute(Message message, Boolean unlockMessage, Boolean& stopDispatcher)
    Am I missing anything?
    Version:
    ME: 6.1.4.9
    PCo:  2.3
    Thanks,

    Hello Shridhar, I guess you can  use use different user for authentication and user data inside XML request.
    In MII, I have used MESYS for authentication and other user name inside the request XML. But you need to make sure user name inside XML has ME_Integrator role.
    <me:UserId>USERID</me:UserId>
    Hope this helps.
    Thanks
    Hari

  • Independent stateful calls from different threads on one destination

    Hello SAP-Experts,
    i'm dealing with the problem on the Web AS to guarantee some independent stateful call sequences for different calling threads.
    One application running on a WAS (the WAS-app) is called by different clients to pass some data. The WAS-app has to distribute the data to another system by using one RFC-destination.
    As i have understood i have to guarantee thread-safe sessions for stateful calls from different thread by implementing a custom SessionReferenceProvider that binds the session to the thread. I have done this.
    My problem is to register my custom SessionReferenceProvider to the WAS environment. By trying i get the following error:
    [java.lang.IllegalStateException: SessionReferenceProvider already registered [com.sap.engine.sessionmgmt.jco.applib.impl.SessionReferenceProviderImpl]]
    Does anyone can tell me how to register the custom SessionReferenceProvider on a WAS?
    Thanks and greetings
    Robert

    Hi Robert,
    You can first try stopping a Java application named sessionmgmtjcoapplib from Star&Stop, then register yours sessionReferenceProvider again.
    Jian

  • Show a different view when called from different app.

    Hi,
    I have the requirement of showing a different view in the same window when called from different apps (urls).
    I have created different start-up inbound plugs and assigned them to the different apps but I can't figure out how to code the view switch.
    Any idea?
    thanks in advance,
    David R.

    hi,
    It is possible.
    Click on the Properties tab of application.In that screen click on the seach help option against Interface view.It will show all views you have created. Select the desired view to which the application has to point.
    Don't forget to give the  plug name which is under that interface view
    Now the application invokes the new view which u have pointed.
    If you have doubts in this please inform me.
    Regards,
    Ramanan
    Edited by: Ramanan Panchabakesan on Sep 3, 2008 1:50 PM
    Edited by: Ramanan Panchabakesan on Sep 3, 2008 1:51 PM

  • Need to run VI on boot or call from other application

    I am looking for the most basic way to get Labview to run a VI upon bootup or call from another application (without having to hit the run button on the toolbar.) I would rather not have to build an application; I don't want to buy the professional version. I want my data acquisition to recover from a power outage reboot and keep going without human intervention. Is there a way to build an init that launches the VI in run mode? A colleague of mine has convinced me labview is the way to go for a new experiment, but this is one stumbling block that needs to be resolved. Thanks for any help you can give.

    i have used the startup folder to run labview vi's on several machines and it *can* work just fine.
    however, sometimes there is a timimg problem and i get the message 'vi not found,' then labview usually loads the vi and runs - but leaves the error message, which can cause problems with later operations.
    today i had this problem with a 3.4 G HP machine running Win200. Labview 7.1 & DAQmx.
    my work around solution is to use the *MarcroScheduler* program. i call a it from the startup folder. it does the following
    (a) start Labview 7.1
    (b) wait 1 minute
    (c) execute the vi.
    without the wait state, Labview 7.1 will not run the vi properly.
    good luck with your applications.
    cu,
    larryb

  • How can I include a jsp file in other jsp from different applications?

              Hi,
              I'd like know if it´s possible to include jsp or servlet from different applications.
              

              Thanks Deepak but I think you don´t understand me.
              I would like the include works like a normal include. I have a jsp in my application
              and , when the client requests this jsp, in the jsp should be added the result
              of the other jsp ejecution that belong to other application in the same domain.
              Is this possible?
              Thank you very much.
              Deepak Vohra <[email protected]> wrote:
              > A Jsp from a different application is included with a relative url to
              >th=
              >e Jsp.
              ><%@ include file=3D"relative url" %>
              >
              >A Jsp could be included with request parameter.
              > <jsp:include page=3D'<%=3D request.getParameter("incFile") %>' />
              >
              >javilla wrote:
              >
              >> Hi,
              >>
              >> I'd like know if it=B4s possible to include jsp or servlet from differe=
              >nt applications.
              >
              

  • Need help regarding configuring the WebService Call from RTD to Siebel

    Hi All,
    Can someone help me with the information on how do i configure a Webservice Call from RTD to Siebel?
    Any high-level or granular details on this would be very helpful as I am new working on this product. How can a jax-ws be utilized to achieve the same?
    Thanks in advance.
    Best Regards,
    Hariharan

    If you actually need a portal service though, this will not work. However, you could have the portal service return a Document object, which is basically the text of the HTML file you want to display. Then, when calling the portal service, you can simply output the text to the IPortalComponentResponse object
    I hope this helps
    Darrell

  • Session between multiple Webservice calls from PI7.0

    Hello XI SDNers,
    I am unable to overcome my Webservice session problem using SOAP (Axis) adapter. My scenario is as follows:
    I am calling a external Webservice deployed in Axis webservice engine from PI7.0, during my first call:  I call synchronous "Login" webservice and I became the response "User is Logged in"
    during my second synchronous call "GetItem", the webservice returns "The user doesn't have valid session". The two synchronous calls are executed from same scenario one after another!
    I lost my session after the "Login". Is there any way in PI 7.0 to maintain the session?
    Note: I tried the same scenario using XML SPY SOAP client, it is working!!!  it is maintaining the session between multiple webservice calls.
    Is there any suggestions to overcome this problem?
    Thanks and regards,
    Satish.

    Hi Satish,
       We are working on the same sort of scenarios, where we have to call more than one webservice in a sequential fashion using the same session id details.
        What we did was we built new xsds adding session details node using the webserive request and response xsds. And we are maintaining a sessions table which contains session id and  status fields in PI. So we send webservice request with the session id details. We wrote an UDF to get the session details from PI and set the status field as busy so that no other request uses the same session details.
       Webserive response again contains the sessions details which can be used for the next webservice request.
      Finally after all the calls set back the status to Active in PI table.
    Webservice Calls From a User Defined Function
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Hope this helps.
    Thanks,
    Vijaya.

  • Accessing a variable from different application instance in fmis

    Hello everyone i like to know how to declare a global variable in FMS, so that i can access it from different application instance of a same application.
    Thank.

    Hi,
    In such a use case you can use persistent shared object to keep track of all connected users and the instances they are connected to. then when a user connects in application.xml you can check whether that user name and password is valid for a instance. This doc should help you get this achieved http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d3 7a-7fff.html
    Thanks,
    Abhishek

  • How to call a webservice proxy from BPM application?

    Hi All,
    Consider a case where I want to use external webservice in my BPM application. What is the best approach to achieve this.
    1) What if I create a web service proxy and wants to use in the BPM app. How can I use this?
    2) Which component do I need to use "Web Service" component or "Third Party Adapter" component from the component pallette?
    3) If I use directly the wsdl in the "Web Service" component will it cause any issues in the future.
    I searched in the net and the docs, but it didnt find the proper solutions for this.
    Please provide your comments on this.
    Thanks.

    First of all a java proxy would not help much here - there is no use for that in SOA suite especially when it comes to using the JCA adapters. Instead reference the WSDL directly in SOA suite but there is a caveat - see my response below
    1) What if I create a web service proxy and wants to use in the BPM app. How can I use this?
    Dont create a WS proxy. Instead reference the WSDL and call it using a Service Task from the BPM process
    2) Which component do I need to use "Web Service" component or "Third Party Adapter" component from the component pallette?
    Use the WSDL directly and select "Web Service" from the component palette
    3) If I use directly the wsdl in the "Web Service" component will it cause any issues in the future.
    Yes there are lots of issues referencing a WSDL directly. Instead upload the WSDL reference to SOA-MDS and then use the oramds:// reference to the WSDL. This will ensure the composite does not break when the WSDL is not available. JDeveloper also goes into a tizzy when the WSDL is not up.
    thanks,
    Vikram

  • How to call/show  page(s) from different application

    Hi All,
    I'm working on couple of applications and some reports (about 30) are used in all applications. I need your advice on doing this efficiently.
    Is it possible to
    1) Create a separate application with all the reports.
    2) Create a blank page with lists linking to all those reports on the same tab
    Now, is it possible to call that page in a "reports" tab of each application without prompting for login and still have rest of the tabs visible while the user is using the reports?
    Thanks in advance,
    Asha
    Edited by: ashapatil on Jul 29, 2010 1:54 PM
    Edited by: ashapatil on Jul 29, 2010 5:41 PM

    Asha,
    you can create links to call pages from other applications without any problem, just take a look at the structure of APEX URL over here: http://www.oracle-and-apex.com/apex-url-format/
    To avoid re-logins you could either disable security on your application (not recommended) or create a custom authentication scheme which takes logged in users from other applications as granted.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at
    Training: http://www.click-click.at/apex-4-0-workshops

  • Securing webservice call from to siebel

    Hi,
    We have implemented OPA with siebel integration, where in we launch OPA from siebel.OPA calls a webservice on siebel which fetches data from siebel. We want that weservice call to be secured i.e. to use https and not http. Anybody have any idea in doing this. The url in siebel-data-adapter file has to be https and not http.

    Ecstasy wrote:
    Hi,
    We have implemented OPA with siebel integration, where in we launch OPA from siebel.OPA calls a webservice on siebel which fetches data from siebel. We want that weservice call to be secured i.e. to use https and not http. Anybody have any idea in doing this. The url in siebel-data-adapter file has to be https and not http.There are two parts to solving this problem.
    Part 1: ( setting up the Siebel Inbound web service so it runs through HTTPS. You should consult the Siebel documentation for this and it will require running HTTPS with a certificate through something like apache or IIS (for windows).
    Part 2: Once you have the inbound web services running under HTTPS, you can set the URL in the siebel-data-adapter properties to point to the HTTPS service, however, when you make a call from Web Determinations to Siebel. It will probably fail with a an exception. This will probably happen if you have used an self-signed or untrusted certificate.
    The second part of this problem is setting up the java run-time environment to accept the certificate that the HTTPS service is using (set up under part 1). There are several different ways of doing this, but I found the following the easiest.
    1. get the public part of the certificate.
    2. create a keystore/truststore and add that certificate (or add to existing keystore).
    3. point the jvm to that truststore , You do this through setting java system properties.
    Example Java properties
    In the example below, I have put the public certificate into a keystore called "siebel_wd_keystore" and I want to point my apache-tomcat to use that as a trust store. The system properties that need to be set are as follows.
    -Djavax.net.ssl.trustStore="C:\trust_store\siebel_wd_keystore"
    -Djavax.net.ssl.trustStorePassword=siebel Because this is tricky there is a very useful system property that you can set, that will give you lots of debugging information about SSL. If its not working, setting this property give you a lot more information in your logs.
    -Djavax.net.debug=sslIf the setting above doesnt seem to give you more information, thats probably a sign that you aren't setting the system properties correctly for your application server.

  • Webservice call from outlook

    Hi,
    I need your suggestions on web services call from outlook.
    I have a requirement like where user will send a mail from outlook and it should trigger web-service in SAP.
    Also i dont want this webservice to be exposed for internet since both exchange server and sap application server are on same network.
    Please suggest me is their is any way to get it done.
    Thanks,
    Rahul

    Hello Shridhar, I guess you can  use use different user for authentication and user data inside XML request.
    In MII, I have used MESYS for authentication and other user name inside the request XML. But you need to make sure user name inside XML has ME_Integrator role.
    <me:UserId>USERID</me:UserId>
    Hope this helps.
    Thanks
    Hari

Maybe you are looking for