How to communicate with Siebel gateway server by Javascript?

I am providing support to one J2EE web application. This application is integrated with Siebel application. This application need to transfer control one view of siebel application means a Page ( HTML+ Javascritp) forwards control to Siebel view.
Query? Is there a way to redirect the user from a Web application using client side script (Javascript and html code) to Siebel application view.
At present we are using following code to interact with Siebel server but do now know what is siebelApp object ( activeX control or custom tag) in the below mention code. At present I am getting null for navigator.siebelApp
Please suggest me anyway which I can use.
Code snippet
<body>
     try {
          var sweAutomation = navigator.siebelApp;
          if (sweAutomation != null) {
          var sitaId = "${sitaId}";
          var objectType = "${objectType}";
          //alert("sitaId = " + sitaId);
          //alert("objectType = " + objectType);
               //get nav service
               var navBS = sweAutomation.GetService("CUT eSales Order Entry Toolkit Service");
               var inputPS = sweAutomation.NewPropertySet();
               var outputPS = sweAutomation.NewPropertySet();
               //set the property; assumes we know the Quote Id
               inputPS.SetProperty ("Row Id", sitaId);               
          if (objectType == "O") {
                    inputPS.SetProperty ("Business Component", "Order Entry - Orders");
                    inputPS.SetProperty ("View", " App Order Entry - Order Summary");
          if (objectType == "A") {
                    inputPS.SetProperty ("Business Component", "Account");
                    inputPS.SetProperty ("View", "App2 SIS OM Products &amp; Services View (Service)");
               //navigate the UI
               navBS.InvokeMethod ("GotoView", inputPS, outputPS);               
     catch (e) {
          alert("Exception Caught!" + e.toString());
</body>
Edited by: user559368 on Aug 16, 2010 3:43 AM

My Requirement is-- I ve to connect to msn search page in order retrieve the result set from msn search. The same code which I do pasted below is working for GOOGLE n YAHOO with minor changes.But not for MSN.., Can any one help me.
I've pasted the code for msn..,
import java.io.*;
import java.net.*;
public class File {
public static void main(String[] args) throws IOException {
Socket s = new Socket("search.live.com", 80);
String query = "java";
PrintStream p = new PrintStream(s.getOutputStream());
p.print("GET /results.aspx?q=" + query);
p.print("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0\r\n");
p.print("Connection: close\r\n\r\n");
InputStreamReader in = new InputStreamReader(s.getInputStream());
BufferedReader buffer = new BufferedReader(in);
String line;
while ((line = buffer.readLine()) != null) {
System.out.println(line);
Edited by: Lijo_Java on Jul 13, 2008 9:03 PM

Similar Messages

  • How to communicate with a server ?

    Hello.
    I'm an intern trying to find a RIA client to use with a Java application server. The server provides two ways to access data :
    - a HTTP servlet that deals with XML
    - a web service
    I can't find information about how to communicate with a server using JavaFX 2, so can you try to explain it to me ?
    I'm sorry if what I ask is stupid, but I'm not very familiar with these things, I'm just a student.
    Thank you.

    Hi,
    communicate with a server is not JavaFX speciffic. You can use any "Java way" to access web-services or http requests. Try Axis2, it creates you the client API from the WSDL (the webservices on your server should provide the WSDL), than you can use this created client API to access the web-service in your JavaFX application. (see: http://people.apache.org/~ruchithf/hw-axis2/). You should be aware that by default you are working on one Application Thread (JavaFX as well as Swing and SWT), so when your first poc. is running you should use the javafx concurrent api, to create non blocking requests (http://docs.oracle.com/javafx/2/threads/jfxpub-threads.htm).
    Andy

  • How outlook communicate with exchnage server 2013/2010/2007

    when  i am creating a outlook profile for any user to access the mail box from exchange server. on that time how outlook communicate with exchange server.
    Abp

    Hi paul440,
    Thank you for your question.
    If we have configured autodiscovery correctly, outlook will connect Exchange CAS server by autodiscovery, autodiscovery will direct outlook to connect correct CAS server by user’s mailbox location. For Example, if the user mailbox located on Exchange 2010,
    outlook will connect Exchange 2010 CAS. if the user mailbox located on Exchange 2013, outlook will connect Exchange 2013 CAS.
     We could refer to the following link:
    https://technet.microsoft.com/en-us/library/bb310763(v=exchg.141).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • How to Communicate with Programs running on AIX server Using LabVIEW.

    We have an IBM AIX server on which some programs are running  which basically perform some scientific calculations. I am required to send the inputs to the calculation from a VI on windows system and get back the results  on the VI.  I do not have any idea on how to do this.
    But i heard that there is a tool ( not developed in LabVIEW) developed by my customer which can communicate with the AIX server thro Java Classes.
    So i tried exploring APPLETVIEW which supports java and LabVIEW but i am confused.
    Is there any way to achive this interfacing between AIX and LABVIEW?.
    Thanks  
    Vilas G

    Hi Vilas,
    How you may communicate with you AIX server may very greatly depending on what is running on your server.  Here is a link to another thread where Java calls and AppletView were discussed.  It contains a link to the company that makes AppletView, so it may have some good information for you. 
    Also, if your customer suggested you use AppletView and they developed it, they would probably be your best bet for explaining it to you.
    Hope this helps!
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • CLI104 Unable to communicate with the administration server:

    i am doing a glass fish clustering with load balancer plugins using SJWS7.0 as the loadbalancer.
    i installed glassfish v2.1 and set up a cluster with a single node and single instance
    and i did all the steps as per this document
    https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
    i did all the steps with out any errors.
    but when i am trying to run the commad <websrvr_install_dir>/bin/wadm deploy-config --user=<websrvr_admin_user> <websrvr_instance_config>
    i am getting following errors
    CLI104 Unable to communicate with the administration server: Unable to connect t
    o admin-server. Please check if the server is up and running and that the host
    and port provided are correct.
    i don't how to fix this error , i search a whole day for fixing this errors.now i am waiting for help .please help me to fix this one
    Thanks and Regards

    The glassfish document that you mentioned does not provide any instructions to start the web server's administration server.
    Could you verify that the web server's administration server is indeed running? Do the following to start web server's administration server:
    $ <websrvr_instance_dir>/admin-server/bin/startservAfter that step try out the deploy-config command as described in the document.
    HTH.

  • How to communicate with different system on different network using WCF service

    Hi,
    I am using a WCF service that is accessed by different systems on same network. But systems on different networks are not able to access my WCF service. I have enabled tcp port also. But i can not resolve this issue. Please give the solution to the issue.
    Regards,
    Shanmugam M

    Hi Vilas,
    How you may communicate with you AIX server may very greatly depending on what is running on your server.  Here is a link to another thread where Java calls and AppletView were discussed.  It contains a link to the company that makes AppletView, so it may have some good information for you. 
    Also, if your customer suggested you use AppletView and they developed it, they would probably be your best bet for explaining it to you.
    Hope this helps!
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • How to communicate with another applet in different frame?

    Hello,evryone
    How to communicate with another applet in different frame?
    Can you give some advices?
    thank you!
    zhongboqing

    i faced this problem one year ago.It would be something like that:
    first you have to get the applet context 'getAppletContext()' (which is the current frame).
    Then get parent of that context 'getParent()' (which is the browser context).
    Then u can access the desired frame by its name. Finally you can access the desired applet located within this frame by

  • DMZ Ports to Communicate with SCCM Primary Server

    Hello,
    I have searched and came to know that on firewall, following ports should be open for DMZ to communicate with SCCM primary server 
    HTTP 80 and 443
    8530
    TCP 10123
    TCP 135TCP 445
    We are planning to implement a software on DMZ server which should communicate with SCCM primary server.
    Do the above ports work for communication from DMZ to Primary or if there are more ports required for it?
    Is it possible to achieve this without the SCCM client installed on the DMZ server as i would like the software to communicate via its own methods but the required ports should be open.

    Could you please provide the WMI and SQL ports which would be required.
    If we talk about generically, Are below ports enough for a DMZ server to communicate with the primary site server ?
    HTTP 80 and 443
    8530
    TCP 10123
    TCP 135TCP
    445

  • Does any one know how to communicate with thunderbolt or J.D.Edwards Oneworld?

    Hi,
    Does any one know how to communicate with thunderbolt or J.D.Edwards Oneworld through LabVIEW ? Do I need to use database connectivity toolkit? Can i do it without it?
    Thanks

    Hi Atul,
    we have made a application which uses Oneworld. We didn't use the database connectivity tool because we used ODBC and SQL.
    We have some VIs to do database connectivity using ODBC functions. So you have to know SQL as language and the ODBC functions. If you do not have this knowledge the database connectivity toolkit will make it easier for you.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Error: Unable to communicate with the Reports Server

    The configuration I am working with is:
    * Oracle 8.1.6 DB on a Unix machine
    * Oracle Reports 6i on an NT machine
    * Microsoft IIS web server
    I have successfully tested my reports during the development phase of my project. Unfortunately, now that it is considered production and is available to upwards of 30 people, I am getting the following error message after verifying the server is up and after a numerous reports have been served:
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Unable to communicate with the Reports Server.
    After receiving this message I noticed that the Report Server service is down and the log only indicates that it "shut down immediately". (no ORA messages) I tried restarting the service, but after serving one report, it would shut down again with the same message.
    I am wondering if it is a problem related to the cache. I used the default of 50M in the config file, but when the cache directory reaches 50M, the problem seems to appear. I then deleted approx. 30M of files from the cache directory and the Report Server service appeared stable. I changed the cache limit to 1M to see if there was a problem with the cache being so big. All appeared well for the first few hours of operation but then the Report Server service shut down again and upon restart crashed within a minute or two (usually as someone tests a report, it crashes again).
    Do I have a configuration problem? Has anyone seen this problem? Thanks in advance.

    Hi,
    I just found out that if i give
    http://localhost/cgi-bin/rwcgi60.exe?key1
    where key1 is a key mapping file that contains the report name,username and pwd for the database and desformat...etc..
    the report pulls out fine with the correct data..
    i am stunned...
    while none of the other commands like
    http://.../rwcgi60.exe
    or
    http://..../showenv?server=repserver
    or any other usual command doesnt work...
    anybody faced this before??
    Thanks.

  • How Bridge communicates with third party applications?

    Hi,
    Is it possible to communicate between Adobe Bridge and a third party application using Bridge SDK?
    I want to learn how Bridge can communicate with other application? Bridge SDK have samples that explain how Bridge communicates with other Adobe applications like Photoshop and Indesign. Can anyone guide me or provide me a sample where Bridge communicates with a third party application?
    Thanks.

    As an example, this shows one way of getting a list of selected files from Bridge via Photoshop using C#
    using System;
    using System.Collections;
    using ps = Photoshop;
    namespace getBridgeFiles
        class Program
            static void Main(string[] args)
                ps.ApplicationClass app = new ps.ApplicationClass();
                String Code = "var fileList;"+
    "if ( BridgeTalk.isRunning( 'bridge' ) ) {"+
    "var bt = new BridgeTalk();"+
    "bt.target = 'bridge';"+
    "bt.body = 'var theFiles = photoshop.getBridgeFileListForAutomateCommand();theFiles.toSource();';"+
    "bt.onResult = function( inBT ) { fileList = eval( inBT.body ); }"+
    "bt.onError = function( inBT ) { fileList = new Array(); }"+
    "bt.send(8);"+
    "bt.pump();"+
    "var timeOutAt = ( new Date() ).getTime() + 5000;"+
    "var currentTime = ( new Date() ).getTime();"+
    "while ( ( currentTime < timeOutAt ) && ( undefined == fileList ) ) {"+
    "bt.pump();"+
    "$.sleep( 100 );"+
    "currentTime = ( new Date() ).getTime();"+
    "}}"+
    "if ( undefined == fileList ) {"+
    "fileList = new Array();}"+
    "fileList = decodeURI(fileList.toString());";
                String RC =  app.DoJavaScript(Code, null, null);
                ArrayList list = new ArrayList();
                list.AddRange(RC.Split(new char[] { ',' }));
                for (int index = 0; index < list.Count; index++){
                    Console.WriteLine(list[index]);
                Console.ReadLine();

  • Oracle reports 6i error unable to communicate with the reports server

    Hi,
    I have followed the steps for running oracle reports server 6i..i am using win2k3 and IIS6.0
    i have checked tnsnames.ora and sqlnet.ora and everything looks good..
    when i try
    http://localhost/cgi-bin/rwcgi60.exe
    i get a page called User Database Authentication and asks for username,password and database..instead of the help page that should be displayed..
    when i enter those values nothing happens for the first time and the same page is displayed again..when i enter it again i am getting this error
    url requested not found or cannot be served at this time
    oracle reports cgi: unable to communicate with the reports server
    any help would be grateful..
    Thanks.

    Hi,
    I just found out that if i give
    http://localhost/cgi-bin/rwcgi60.exe?key1
    where key1 is a key mapping file that contains the report name,username and pwd for the database and desformat...etc..
    the report pulls out fine with the correct data..
    i am stunned...
    while none of the other commands like
    http://.../rwcgi60.exe
    or
    http://..../showenv?server=repserver
    or any other usual command doesnt work...
    anybody faced this before??
    Thanks.

  • The updater has been unable to communicate with the update server for at least 1h.

    Hi All,
    there is a warning message on one of my IronPort C300V
    Version: 8.0.1-023
    The error message is mention below
    "The updater has been unable to communicate with the update server for at least 1h."
    please suggest the issue and steps to resolve the problem or suggest that it is very critical so can i open the cisco tac call.
    Thanks ,
    Madhuraj

    If you continue to receive this error please check that the virtual appliance is configured to use the dynamichost for updating:
    myesa_2.local> updateconfig
    Service (images): Update URL:
    <ommitted for brevity>
    []> dynamichost
    Enter new manifest hostname : port
    [update-manifests.sco.cisco.com:443]>
    Once 'dynamichost' is entered, the current dynamic host in use will be displayed in the prompt [ ]>, as seen above. 
    You will need to verify that the appliance - escpecially if a virtual (VESA) - is using the correct host.
    Steve
    Cisco Content Security - Email Security

  • CBS failed to communicate with some other server.

    Dear All,
    We are facing this error when we are trying to activate a request in
    NWDS & trying to check in.
    Error:Activation failed: CBS Server Error: CBS failed to communicate
    with some other server.( internal code: COMMUNICATION_ERROR)
    Just for your information, we had changed the password for nwdi_cmsadm
    few days back and then followed a note896427 and then had fixed the
    error.
    The NWDI_CMSADM password problem was solved and the transports were
    working very fine till today. But today afternoon when the developer
    tried to activate the request in NWDS, he got this error. Can you
    please let me know the problem.
    We are stuck and not able to go ahead.
    Thanks in advance.
    Warm Regards,
    Rajeet

    Hello,
    I am getting this error :
    CBS Server Error: CBS failed to communicate with some other server( internal code: COMMUNICATION_ERROR)
    while importing ESS into Dev. I have a user created called cmsadmin and has all the permissions/roles assigned. other files are already imported (epbuildt, pcuigp,epbuildt,sap-jtechs, sap-jee). Only this file is failing.
    I have seen the Notes about user/password upgrade. But we are on 04s sp14. and i have this user cmsadmin .
    Please advise.
    Thanks,
    Anil.

  • How does Oracle client communicate with a database server

    Looking to idenify how Oracle Database Client for OpenVMS communicates with database server and whether the protocol used is secure. Realize that it is using whatever the configured network protocol is (ie. tcpip) but is languauge it uses ( ie. SQL, etc..)  secured/encrypted and if not what steps can be taken to encypt

    Arizuddin wrote:
    I have installed oracle client 10g on client pc for getting connection to Oracle databse 10g (runng on windows server) usng ODBC through SAGE ACC PAC (ERP). Working fine earlier. Now all of a suddent user starts complaining about database connection. When checked his pc registry values. Two values of ODBC keys are reset to null. Those are DSN and DRIVER values. How come this values reset to null? What is causing this to reset?Nothing in this has anything to do with the sever. You need to check what the client did on his machine that caused registry to get modified?
    How does oracle ODBC works with Oracle database? Need to know all the steps involved?The connectoin from any client is initiated by a client process. This client process is supposed to get a server process to do his work. So if this is done, the client can work now with oracle . Please see the concepts guide for the gory details of the entire process.
    HTH
    Aman....

Maybe you are looking for

  • What is the use of Module  tab in Communication Channel  ?

    Hi Expertes can any body tell me the that What is the use of Module  tab in Communication Channel  ? How we can use in the senarios? Mainly What are the Situvation we can use this tab ? Thank you G,Praveen Kumar

  • Organizational structure of SAP

    I  would like to know the ORGANIZATIONAL STRUCTURE IN SAP.Plz send me ASAP.Thanks in advance.</b>Regards Raj

  • Installing Oracle 8i on WIndows 2000

    I have installed Oracle 8i on WIndows 2000, and I want it configured to work locally on one machine. I get it installed with no problem with the seeded database. When I try to log into SQL*Plus as anything, i.e. SYSTEM/MANAGER or SCOTT/TIGER or SYS/C

  • Macbook (2010) to HDTV  - not working

    First of all I'd like to apologise since I know how many posts there are on TV connection troubles, but I'm finding it difficult to find a solution. I bought a MiniDisplay port to HDMI adapter and then connected it to my HDTV via a HDMI cable, but al

  • App Store and I tunes saying its disabled

    App Store saying its disabled and so i can't update apps