UCCX (IPCC) HTTP document

Hi
I'm trying to get the web server working on IPCC. I put HTML documents into all the folders under 'Applications > Document Management' (web interface) or into 'C:\Program Files\wfavvid\tomcat_appadmin\webapps\ROOT' (as suggested by the 'Getting Started with Scripts' guide), but neither work. I've created a HTTP trigger. Am I missing something?
Thanks. I'm using IPCC v7.

Hi,
I tried what you suggested yesterday, but the trigger did not work.
I'll describe the steps I've made:
1) Create folder "greeting" in c:\inetpub\wwwroot: c:\inetpub\wwwroot\greeting
2) place the static.html in the folder: c:\inetpub\wwwroot\greeting
3) Create folder template in the folder c:\inetpub\wwwroot\greeting: c:\inetpub\wwwroot\greeting\template
4) place sayhello.html in this folder.
5) create web page pointing to this folder.
until here everything was succesful, I can now access web page through www: http://10.0.0.100/greeting/static.html
and it opens the form to enter the name.
6) create http trigger with the name /greeting (it's the same method that we have in static.html in POST method)
for some reason, the trigger is not triggered. I tried to do reactive debugging, but it just does not get triggered.
Do you have any suggestions?
Many thanks,

Similar Messages

  • Can´t read page containing XML using GET HTTP Document

    Hello forum users, 
    I'm have a problem with the LabVIEW Internet Toolkit and I'm woundering if its me that is doing something wrong or if it is a limitation of the VI. 
    I have a robotic application which comunicates with LabVIEW via internet. 
    the robots sends and receives information via XML which is posted on a webpage. 
    I've been trying to use the LabVIEW Internet Toolkit's GET HTTP Document. while I can obtain HTML data from any webpage when I try to access my webpage containing XML data  I get an Error 66 (connection closed by peer message).
    What is even stranger is that on two distinct occasions the program returned the XML data 
    The page is set up so that when accesed (for example http://192.168.0.102:4950/move.cgi?op=setVel&vel=300). It will define the robot's speed at 300 mm/s and return a page with a simple XML data such as
    <result>true</result>
    When I access the page in using the Get HTTP Document, the request is sent. the robot does the action required but the XML data I need isn't returned. 
    I have applications that do this in C++, python, and MatLab, without a problem and I didn't want to have to resort to low level TCP/IP functions. 
    any suggestions???
    Is this a limitation of the GET HTTP Document VI (it only gets HTML documents)
    Thanks in advanced
    Bruno Noronha
    Certified LabVIEW Associate Developer
    Using LabVIEW 8.6

    Hi, Bruno.
    Maybe my case will help you. I've faced a problem similar than yours. I have a network camera whose API is HTTP based, I mean, I can control it using HTTP requests, i.e. http://myserver/axis-cgi/bitmap/image.bmp
    takes a picture and returns it in bmp format.
    There are other requests that can send data back, i.e.
    http://<servername>/axis-cgi/com/ptz.cgi?query=pos​ition
    retrieves pan and tilt degrees and zoom value (it is a PTZ camera or pan-tilt-zoom, it has two joints that rotate left-right and up-down, and a zoom). In this case, the information is sent in plain text. But I had like you an error 66 in TCP Read.vi.
    After debugging "Get HTTP document.vi" I noticed this information is sent back, but due to the error in "TCP Read.vi", it's not transmitted to the remaining TCP functions in execution order, and finally is lost.
    In order to debug "Get HTTP document.vi" you'll need to unmark "Reentrant execution" and mark "Allow debugging" in VI Properties->Execution.
    The information string enters "TCP Read.vi" by the terminal "buffer in", and leaves it by "buffer out". The next function, "TCP Read Stream.vi" receives also this string, but it's lost in case there's an error in the entry error cluster. So I removed the wire the connects this two TCP VIs, and finally got the string at the "content" terminal.
    It may not be the most orthodox solution, but at least it let me continue working. If anybody has fixed this issue conveniently, it'd would interesting to share it with us.
    Regards,
    Francisco
    PS. I was with an internship in USP (Sao Carlos, Brazil) for three months in 2007. In this time I visited many times Campinas and its university. Nice place and really good moments :
    Hi, Bruno.
    Maybe my case will help you. I've faced a problem similar than yours. I have a network camera whose API is HTTP based, I mean, I can control it using HTTP requests, i.e.
    http://myserver/axis-cgi/bitmap/image.bmp
    takes a picture and returns it in bmp format.
    There are other requests that can send data back, i.e.
    http://<servername>/axis-cgi/com/ptz.cgi?query=pos​ition
    retrieves pan and tilt degrees and zoom value (it is a PTZ camera or pan-tilt-zoom, it has two joints that rotate left-right and up-down, and a zoom). In this case, the information is sent in plain text. But like you I got an error 66 in "TCP Read.vi".
    After debugging "Get HTTP document.vi" I noticed this text information is sent back, but due to the error in "TCP Read.vi", it's not transmitted to the remaining TCP functions in execution order, and finally is lost.
    In order to debug "Get HTTP document.vi" you'll need to unmark "Reentrant execution" and mark "Allow debugging" in VI Properties --> Execution.
    The information string enters "TCP Read.vi" by the terminal "buffer in", and leaves it by "buffer out". The next function, "TCP Read Stream.vi" receives also this string, but it's lost if there's an error in the entry error cluster. So I removed the wire that connects this two TCP VIs, and finally got the string at the "content" terminal.
    It may not be the most orthodox solution, but at least it let me continue working. If anybody has fixed this issue conveniently, it'd would interesting to share it with us.
    Regards,
    Francisco
    PS. I was with an internship in USP (Sao Carlos, Brazil) for three months in 2007. In this time I visited many times Campinas and its university. Nice place, nice people and really good moments

  • URL Get HTTP Document Bug (LV2012)

    I know the Internet Toolkit is deprecated, but since it's still available it should still work.
    Unfortunately the URL Get HTTP Document.vi does not work in Internet TK 2012 for other than text files. It worked fine in LV8.5 with the corresponding Internet TK, but the 2012 version only returns the last part of the content.
    I'm going to switch to the HTTP Client palette, but it's still a pain to find such problems in TKs that used to work fine - losing a lot of time to find the issue.
    See attached snippet which reads a .rtf file from ni.com. HTTP client palette returns correct contents, URL Get HTTP Document only the last chunk.

    Hi,
    I managed to get the URL Get HTTP Document.vi from the ITK to download .tiff files (to save them to a hard-drive location) from a connected device in LV2012 32-bit.
    But now I need to transfer this code over to a computer unsing LV2012 64-bit, hence no ITK - has anyone made/got a VI that will do the job of "URL Get HTTP Document.vi", without the need for the ITK libraries, in LabVIEW 2012 64-bit? Or can show me a way of doing this, with relative ease?
    Many thanks!

  • UCCX Modifying XML document in repository programatically

    Hi,
    I'm trying to write a web application that so that our non-admin users can have the ability to add holidays, turn on outage messages etc. The files that I need to manipulate are XML files that reside in the document repository.
    I had originally planned on placing the XML files on a remote web server and then have the uccx scripts reference the XML files like http://servername/holidaydates.xml and I would just have the program that I write manipulate the xml files accordingly.
    When I ran this past one of our consultants they said that this would add a lot of complexity. I'm not sure what he's talking about since I had it working in about 30 minutes.
    Anyways, I thought that another method that might be good is if I could download the xml files from the document repository, modify them locally, and then upload them. That way there isn't a web server in the mix.
    Is there a way to programatically download/upload files to the document repository?
    Thanks!

    I figured out what the issue was with my scipt and I have resolved it.

  • Exception when request http document?

    Hello,
    I've successfully started weblogic server 5.1 and replace the default
    index.html document to another index.html in public_html directory.
    However, everytime I tried to request an index.html by typing http://ip:7001
    or http://ip:7001/index.html it still display the weblogic 5.1 server page
    and have the following exception:
    <E> <HTTP> Connection failure
    java.net.SocketException: Socket closed
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:86)
    at
    weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:209)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I'm sure I've replaced the document. If I rename my document to another
    name like test.html and request it as http://ip:7001/test.html. It works
    fine. Why do I have problem if I replace the index.html (I've never changed
    any default setting in weblogic.properties)?
    Thanks so much!
    Sing

    Actualy this call is made. I forgot to include this line of code
    in the message. Any other clues?
    H.Ozawa (guest) wrote:
    : It probably wants:
    : parser.setPreserveWhitespace(true);
    : Ion Moraru (guest) wrote:
    : : Hi all,
    : : I am getting an "Whitespace required" exception when I try to
    : : parse a XML document. Here is a fragment of the document:
    : : <?xml version="1.0"?>
    : : <?xml:stylesheet type="text/xsl" href="order.xsl"?>
    : : <Order>
    : `
    : : </Order>
    : : Here is the code I am using
    : : // parse the input XML file
    : : DOMParser parser = new DOMParser();
    : : parser.parse(xmlURL); // this line raises exception
    : : xml = parser.getDocument();
    : : The problem seems to be in the second line. If I remove it
    : : everything works fine.
    : : I can't understand what's wrong. Isn't the parser supposed to
    : : load the line as a processing instruction?
    : : Is the parser interpreting it?
    : : Please help.
    : : TIA,
    : : Ion Moraru
    : : [email protected]
    null

  • UCCX GET XML Document data - how to force language path

    Hi,
    I saw that with UCCX, If the trigger have is language FR_CA, when I will use the Get XML Document Data (docTemp, etc,etc )
    It will get the value of the file located in the path of  FR_CA in the document management.
    Lets say, If the trigger language is FR_CA, Is there any way I can use the GET XML Document to open a file in the EN_CA in the document management ?
    How can I do that ?
    ps : The upload document have this function, we can force a language but I have no idea how to handle this with the Get XML Document.
    Thanks

    I will attach a screenshot of how you can specify the language folder that the Document lives in, regardless of the language of the Trigger or Contact.
    Notice that in the variable I am simply referencing the Document filename.  This will assume the language of the Contact.
    But also notice that within the step, I am saying that the Source document should be found in the L[en_CA] language folder. This does not change the language of the Contact; it simply tells the system to look in a different folder for the file.
    Of course, if your Document is not language specific, you could always put it in the Default language folder and then it will be available to all Contacts regardless of Language setting.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Upload document to Temp Folder using Rest API not working

    I am using Poster in Firefox to upload an xml document to document Temporary Folder. Response I'm getting is 400 Bad Request. Is this a problem with Poster not supporting file upload to UCCX or are there parameters i'm missing for this?
    Url=http://<uccx fqdn>/adminapi/document/uploadFile
    User Auth=Administrator user
    File=xml file stored on my computer
    Content Type=multipart/form-data
    Action=POST
    Everything else is blank.
    Response
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><apiErrors><apiError><errorData>Bad Request</errorData><errorMessage>The request could not be understood by the server due to malformed syntax</errorMessage><errorType>400</errorType></apiError></apiErrors>
    Finnur

    query = "Select SI_ID,SI_NAME FROM CI_INFOOBJECTS "                             
                                   + " where SI_ID='" + SelectedReportDetails.Rows[i]["ID"].ToString() + "'";
    Change this to a Select *...     Since your only bringing back Si_ID and Si_Name..  your not bringing back other properties it needs to make a successful copy..

  • Upgrade UCCX to Ver.8

    Does anyone know of any links to documentation for upgrading UCCX from ver. 7 to ver. 8?
    It's my understanding that Ver. 8 is Linux based and there are tools to convert the DB to this format.
    Has anyone completed this migration and do you have any tips of tricks?
    Any info would be helpful..
    Thanks...

    Hi Joe,
    You need to use PUT (PreUpgradeTool) to take backup from UCCX version 7. This tool facilitates the
    process of backing up data from your CRS or Unified CCX cluster.
    PUT software is available for download in the Cisco download area.
    Please read the "Upgrading to Unified CCX 8.0(1)" section from the following document for complete detail:
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_0/installation/guide/uccx801ug.pdf
    You will require an upgrade license during the restoration of data from 7.x to 8.x and this licenses requires PAK key.
    You can obtain upgrade license from http://www.cisco.com/go/license or mail the information to [email protected]
    You may find the following blog useful for UCCX licensing:
    https://supportforums.cisco.com/community/netpro/collaboration-voice-video/others/blog/2010/10/29/uccx-8-licensing
    Please rate this post if you find it useful.
    Regards,
    Saurabh

  • Error in the filename response vaule when doing Http to file scenario

    Hi,
       I am doing Http to File Scenario. I am trying to retrieve the source filename in the structure field "filename". I have defined a UDF for that and It worked well for file to file scenario.
    Now for Http to file scenario if i want to get the filename, I am getting "null" value in the response.
    I am using Http Client test tool for testing the scenario.
    My output is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>nullnull</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    I got nullnull because i am trying to retrieve Source directory and filename.
    Desired Out put
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>/FileServer/Sender/test.xml</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    For File receiver i am using FTP Parameters.
    I got the correct output for file to file scenario because i had placed the file in the source directory, so that XI can read the source directory and file name. but now for Http to file scenario i am using the Http client tool, where in i have an option to paste the payload directly or upload the file.
    Any Inputs would be appreciated.
    Regards,
    Varun

    Hi,
    I Have defined the structure as
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_FILE xmlns:ns0="http://soacity.net/HTTPtoFile">
       <Message>
          <Id/>
          <Head>
             <Id/>
             <Filename/>
          </Head>
          <Body/>
       </Message>
    </ns0:MT_Source_FILE>
    My requirement is
    "The HTTP adapter would recieve a HTTP document. It has two main tags: head and body; there are two options : either specify the filename in <head> and data in <body> or you send the full message as payload into <body><message>.... </message></body>"
    So How do I proceed in Defining the objects.
    Regards,
    Varun

  • Can't click inside editable region in template based HTML document in CS5

    Hi Everyone,
    I m having a strange problem in Dreamweaver Cs5. After making the html page based on template, when i am opening the HTML page to edit content in editable region, I couldnot click inside the editable region. I can make changes in code view but not in design view in Dreamweaver Cs5.
    Please help if anyone knows the solution. It is really creating a mess for me.
    Thanks,
    Komal

    One of the sites is www.ShelbyVideo.com.
    The code for one of the pages is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <meta name="description" content="SHELBY VIDEO SERVICES: Shelby, NC Video services that are inexpensive, professional, and thorough! Offering corporate and wedding video production services in and around Shelby North Carolina and South Carolina." />
    <meta name="keywords" content="shelby video, shelby videographer, shelby videography, shelby nc video, north carolina shelby video, shelby video camera, shelby videos, north carolina videos, nc video, shelbyvideo, shelbyvideo.com, shelby video production, shelby video services, cleveland county video, cleveland county wedding video" />
    <title>Shelby Video Production Services: SheblyVideo.com offering videography services in the Carolinas.</title><!-- InstanceEndEditable -->
    <link href="css/main.css" rel="stylesheet" type="text/css" media="projection,screen" />
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body class="body">
    <div id="wrapper">
      <div id="header">
        <p><a href="http://www.shelbyvideo.com"><img src="images/shelby-video-logo.jpg" alt="Shelby Video Services" name="weddingVideo" width="216" height="77" border="0" id="weddingVideo" /></a></p>
        <p><a href="index.html">HOME</a>   <a href="shelby-nc-video-services.html">SHELBY VIDEOS</a>   <a href="shelby-video-demos.html">DEMOS</a>   <a href="shelby-video-prices.html">PRICES</a>   <a href="shelby-video-faqs.html">FAQ'S</a>   <a href="shelby-video-north-carolina-reviews-testimonials.html">TESTIMONIES</a>   <a href="shelby-video.html">BOOK US</a></p>
      </div>
      <div id="mainContent"><!-- InstanceBeginEditable name="CONTENT" --><br />
        <h1>ShelbyVideo.com</h1>
        <div id="carolinaWeddingVideoDiv">
          <object width="300" height="182">
              <param name="movie" value="http://www.youtube.com/v/QUSnPSLdnG0&amp;hl=en&amp;fs=1&amp;" />
              </param>
              <param name="allowFullScreen" value="true" />
              </param>
              <param name="allowscriptaccess" value="always" />
              </param>
              <embed src="http://www.youtube.com/v/QUSnPSLdnG0&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="182"></embed>
          </object>
        Shelby Video Demo</div>    <p> </p>
        <p>Welcome to  Shelby Video Services. We have been producing  videos in Shelby North Carolina and South Carolina since 2004. </p>
        <p> </p>
        <p>Your video will be professional and comprehensive. We will beautifully cover your video production in a way that will propell your business into your market and/or enable you to relive your special event over and over and enjoy sharing with others.</p>
        <p> </p>
        <p> </p>
        <p> </p>
      <!-- InstanceEndEditable --></div>
      <div id="footer">© <a href="index.html">Shelby  Video Services</a><br />
      <a href="shelby-nc-video-services.html">shelby nc video services</a> | <a href="shelby-video.html">start here</a> | <a href="shelby-video-demos.html">demos</a> | <a href="links.html">links</a> | <a href="sitemap.html">site map</a> | <a href="shelby-video.html">contact</a> | <a href="shelby-video-north-carolina-reviews-testimonials.html">testimonials</a></div>
    </div>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-9484651-2");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    <!-- InstanceEnd --></html>
    Because I didn't create the code, rather it was dreamweaver, i believed that DW is obviously broken. Because I have a bunch of sites I made in earlier versions and when I start using a newer versions, CS5, I now can't access the editable region in any of them it seems DW is broken. So, I didn't think the code was necessary. I thought it was something that others have already experienced and resolved. However, that doesn't seem to be the case. Thanks though for helping with what appears to be broken. Hopefully it's an easy fix because there's other sites I have that this annoyance is plaguing me...

  • Uccx agent call wrap up custom reason codes

    Dear Experts,
        we have a team of agents who gets the wrapup option after they hung up to add the notes and reason codes (attached screen shot). there is another team of agents in same uccx who require different list of reason codes to be dispalyed when call is ended. The managemen have also asked if there can be sub menus in the list ? Please can some one advise if this is possible and if so I can get some instructions to configure this please.
    Regards,
    KZ

    Take a look at the Desktop Administrator Guide for your UCCX version: http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_0/user/guide/cda80ccxug-cm.pdf

  • XI http-adapter; http-post test tool?

    Hi All
    We have following scenario: system A sends data to R/3 through XI, XI's inbound adapter is type http (Syst A -> XI 3.0 -> R/3).
    Now we need to test the XI's inbound http-adpater.
    Does anyone have some experience with a tool that can send xml-document to XI using http-post or HTML code for this?
    Many Thanks,
    Sami

    Hi Sami,
    Make sure you have activated the plain http adapter.
    1.Edit the HTML code below to change the Hostnames (Radio buttons)/Port numbers to suit your needs.
    2.On selection of radio button you will get the hostname and portnumber populated automatically.
    3.supply the values for sender business system, sender interface and sender namespace and QoS.
    4.Copy and paste the XML in the text area.(make sure you delete the detault tab spaces in the text area) or you can select the file from the file system.
    5.Click Send XML button
    <html>
    <head>
    <title>Send XML Data to XI System</title>
    <script language="javascript">
    <!--
    function SendData() {
      var mypath = document.myform.filename.value;
         var myescns = escape(document.myform.mynamespace.value);
         var mycall = 'http://'
         + document.myform.myhost.value  + ':'
         + document.myform.myport.value + '/sap/xi/adapter_plain?bs='
         + document.myform.mysystem.value + '&namespace='
         + myescns + '&interface='
         + document.myform.myinterface.value + '&qos='
         + document.myform.myqos.value;
         var xmlstream;
         if (document.myform.selectXML[0].checked == true) {
              xmlstream = new ActiveXObject("ADODB.Stream");
              xmlstream.Mode = 3;                                                                                      // 1=read  3=read/write
              xmlstream.Open();
              xmlstream.Type = 1;                                                                                      // 1=adTypeBinary  2=adTypeText
              xmlstream.LoadFromFile(mypath);
         else {
              xmlstream = document.myform.xmltext.value;
         var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         xmlhttp.Open("POST",mycall,false);
         xmlhttp.setRequestHeader("Content-Length",xmlstream.Size);
         xmlhttp.setRequestHeader("Content-Type","text/xml");
         if (document.myform.selectXML[0].checked == true) {
           xmlhttp.send(xmlstream.Read(xmlstream.Size));
         else {
           xmlhttp.send(xmlstream);
         XICall.innerText = mycall;
         XIAnswer.innerHTML = xmlhttp.responseText;
    function getFile() {
      var mypath = document.myform.filename.value;
         var ForReading  = 1;
         objFSO          = new ActiveXObject("Scripting.FileSystemObject");
         objTextFile     = objFSO.OpenTextFile(mypath, ForReading);
         var filearray   = "";
         for(var n=0;!objTextFile.AtEndOfStream;n++) {
              sRead = objTextFile.ReadLine();
              filearray += sRead + "n";
         objTextFile.Close();
         document.myform.xmltext.value = filearray;
    function setDefaults(n) {
         switch(n) {
              default:
                   document.myform.filename.value = "";
                   document.myform.myhost.value = "";
                   document.myform.myport.value = "";
                   document.myform.mysystem.value="";
                   document.myform.mynamespace.value="";
                   document.myform.myinterface.value="";
                   document.myform.myqos.value="EO";
                   break;
    function setHost(n) {
         switch(n) {
              case 1:
                   document.myform.myhost.value = "yourhostname1";
                   document.myform.myport.value = "8080";
                   break;
              case 2:
                   document.myform.myhost.value = "yourhostname2";
                   document.myform.myport.value = "8000";
                   break;
              case 3:
                   document.myform.myhost.value = "yourhostname3";
                   document.myform.myport.value = "8000";
                   break;
              default:
                   document.myform.myhost.value = "";
                   document.myform.myport.value = "";
    function setNamespace(n) {
         switch(n) {
              case 1:
                   document.myform.mynamespace.value = "urn:sap-com:document:sap:rfc:functions";
                   break;
              case 2:
                   document.myform.mynamespace.value = "urn:sap-com:document:sap:idoc:messages";
                   break;
              default:
                   document.myform.mynamespace.value = "";
    //-->
    </script>
    </head>
    <body>
    <form name="myform">
    <p>XI adapter parameters: </p>
    <!--
    <input type="radio" name="selectDefaults" value="" onClick="setDefaults(1)">XR3 Test PO
    <input type="radio" name="selectDefaults" value="" onClick="setDefaults(2)">XR3 Test Vendor
    <input type="radio" name="selectDefaults" value="" onClick="setDefaults(9)" checked>None
    -->
    <p>
    <table border=0>
    <tr><td>hostname:</td><td>
    <input type="text" name="myhost" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td></td>
    <td>
    <input type="radio" name="selectHost" value="" onClick="setHost(1)">XI1
    <input type="radio" name="selectHost" value="" onClick="setHost(2)">XI2
    <input type="radio" name="selectHost" value="" onClick="setHost(3)">XD3
    <input type="radio" name="selectHost" value="" onClick="setHost(9)" checked>Other
    </td></tr>
    <tr><td>port:</td><td>
    <input type="text" name="myport" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td>sender business system:</td><td>
    <input type="text" name="mysystem" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td>sender interface:</td><td>
    <input type="text" name="myinterface" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td>sender namespace:</td><td>
    <input type="text" name="mynamespace" size=50 maxlength=100
    value=""></td>
    </tr>
    <tr><td></td>
    <td>
    <input type="radio" name="selectNamespace" value="" onClick="setNamespace(1)">RFC
    <input type="radio" name="selectNamespace" value="" onClick="setNamespace(2)">IDoc
    <input type="radio" name="selectNamespace" value="" onClick="setNamespace(3)" checked>Other
    </td></tr>
    <tr><td>quality of service (EO/BE):</td><td>
    <select name="myqos">
    <option value="BE" selected>Best Effort</option>
    <option value="EO" >Exactly Once</option>
    </select>
    <br/></td></tr></table>
    <p></p>
    <input type="button" value="Send XML File" onclick="return SendData()">
    <p>XML Text:
    <table>
         <tr>
              <td><input type="radio" name="selectXML" value="1">from File</td>
              <td><input type="radio" name="selectXML" value="2" checked>from Text</td>
         </tr>
         <tr valign="top">
              <td>
                   Path to XML file: (e.g. C:temptest.xml)
                   <br><input type="file" name="filename" size=30 maxlength=80 value="" onChange="return getFile()">
              </td>
              <td>
                   Text for XML:
                   <br><textarea name="xmltext" cols="50" rows="20" wrap="off">
                   </textarea>
              </td>
         </tr>
    </table>
    <p>XI call:</p>
    <div id=XICall></div>
    <p>Answer:</p>
    <div id=XIAnswer></div>
    </form>
    </body>
    </html>
    Regards,
    Sridhar
    Message was edited by: Sridhar Rajan Natarajan

  • To configure HTTP adapter as sender?

    Hi all,
    I have read that HTTP Adapter could be configured as senderor receiver but i am not able to do the same.
    Please help me out.
    Thanks,
    Divya

    Below is an HTML used for testing purposes.  Copy-n-paste the code to a file and name it something like httpXiTest.html.  Execute the html file by double-clicking it and see the effect.  Use it as an example for what you wish to do.
    ==================================================
    <html>
    <head>
    <title>Send XML Data to XI System</title>
    <script language="javascript">
    <!--
    function SendData() {
      var mypath = document.myform.filename.value;
         var myescns = escape(document.myform.mynamespace.value);
         var mycall = 'http://'
         + document.myform.myhost.value  + ':'
         + document.myform.myport.value + '/sap/xi/adapter_plain?bs='
         + document.myform.mysystem.value + '&namespace='
         + myescns + '&interface='
         + document.myform.myinterface.value + '&qos='
         + document.myform.myqos.value;
         var xmlstream;
         if (document.myform.selectXML[0].checked == true) {
              xmlstream = new ActiveXObject("ADODB.Stream");
              xmlstream.Mode = 3;                          // 1=read  3=read/write
              xmlstream.Open();
              xmlstream.Type = 1;                          // 1=adTypeBinary  2=adTypeText
              xmlstream.LoadFromFile(mypath);
         else {
              xmlstream = document.myform.xmltext.value;
         var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         xmlhttp.Open("POST",mycall,false);
         //xmlhttp.setRequestHeader("Content-Length",xmlstream.Size);
         xmlhttp.setRequestHeader("Content-Type","text/xml");
         if (document.myform.selectXML[0].checked == true) {
           xmlhttp.send(xmlstream.Read(xmlstream.Size));
         else {
           xmlhttp.send(xmlstream);
         XICall.innerText = mycall;
         XIAnswer.innerHTML = xmlhttp.responseText;
    function getFile() {
      var mypath = document.myform.filename.value;
         var ForReading  = 1;
         objFSO          = new ActiveXObject("Scripting.FileSystemObject");
         objTextFile     = objFSO.OpenTextFile(mypath, ForReading);
         var filearray   = "";
         for(var n=0;!objTextFile.AtEndOfStream;n++) {
              sRead = objTextFile.ReadLine();
              filearray += sRead + "\n";
         objTextFile.Close();
         document.myform.xmltext.value = filearray;
    function setHost(n) {
         switch(n) {
              case 1:
                   document.myform.myhost.value = "myxiserver.company.com";
                   document.myform.myport.value = "8000";
                   break;
              default:
                   document.myform.myhost.value = "";
                   document.myform.myport.value = "";
    function setNamespace(n) {
         switch(n) {
              case 1:
                   document.myform.mynamespace.value = "urn:sap-com:document:sap:rfc:functions";
                   break;
              case 2:
                   document.myform.mynamespace.value = "urn:sap-com:document:sap:idoc:messages";
                   break;
              default:
                   document.myform.mynamespace.value = "";
    //-->
    </script>
    </head>
    <body>
    <form name="myform">
    <p>XI adapter parameters: </p>
    <p>
    <table border=0>
    <tr><td>hostname:</td><td>
    <input type="text" name="myhost" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td></td>
    <td>
    <input type="radio" name="selectHost" value="" onClick="setHost(1)">Example
    <input type="radio" name="selectHost" value="" onClick="setHost(9)" checked>Other
    </td></tr>
    <tr><td>port:</td><td>
    <input type="text" name="myport" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td>sender service:</td><td>
    <input type="text" name="mysystem" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td>sender interface:</td><td>
    <input type="text" name="myinterface" size=50 maxlength=100
    value=""><br/></td></tr>
    <tr><td>sender namespace:</td><td>
    <input type="text" name="mynamespace" size=50 maxlength=100
    value=""></td>
    </tr>
    <tr><td></td>
    <td>
    <input type="radio" name="selectNamespace" value="" onClick="setNamespace(1)">RFC
    <input type="radio" name="selectNamespace" value="" onClick="setNamespace(2)">IDoc
    <input type="radio" name="selectNamespace" value="" onClick="setNamespace(3)" checked>Other
    </td></tr>
    <tr><td>quality of service (EO/BE):</td><td>
    <select name="myqos">
    <option value="BE">Best Effort</option>
    <option value="EO" selected>Exactly Once</option>
    </select>
    <br/></td></tr></table>
    <p></p>
    <input type="button" value="Send XML File" onclick="return SendData()">
    <p>XML Text:
    <table>
         <tr>
              <td><input type="radio" name="selectXML" value="1">from File</td>
              <td><input type="radio" name="selectXML" value="2" checked>from Text</td>
         </tr>
         <tr valign="top">
              <td>
                   Path to XML file: (e.g. C:\temp\test.xml)
                   <br><input type="file" name="filename" size=30 maxlength=80 value="" onChange="return getFile()">
              </td>
              <td>
                   Text for XML:
                   <br><textarea name="xmltext" cols="50" rows="20" wrap="off">
                   </textarea>
              </td>
         </tr>
    </table>
    <p>XI call:</p>
    <div id=XICall></div>
    <p>Answer:</p>
    <div id=XIAnswer></div>
    </form>
    </body>
    </html>

  • Oracle map's FOI on https?

    I'm having problem displaying FOI on the simple html page deployed on standalone OC4J (10.1.3.1). In "http mode" page is working just fine but when I try to do "https version" of it following the instructions on http://download.oracle.com/docs/cd/B25221_04/web.1013/b14429/configssl.htm
    (or making a keystore, making and configuring secure-web-site.xml file (I marked my application and the mapviewer as "shared="true" ") and configuring server.xml file)) I'm able to view my htlm page but in Firefox(2.0.0.6) FOI is not shown (OC4J says "WARNING IOException in ServerSocketAcceptHandler$AcceptHandlerHorse:run") and in IE(6.0) FOI is shown only after accepting "This page contains both secure and nonsecure items" message.
    I did cahange
    var baseURL = "http://" + document.location.host + "/mapviewer"; to
    var baseURL = "https://" + document.location.host + "/mapviewer"; in my JavaScript.
    Any ideas?

    even though you sent the request to MapViewer via https url, MapViewer does not know it got the request via SSL. So it generates the URLs for the FOI images with 'http' prefix not 'https'. You need to configure MapViewer (in the mapViewerConfig.xml file) so that it always uses https://... as the base url for all the generated map images and FOI images. This is done in the <save_images_at> element in the config file.
    thanks
    LJ

  • Saving a document using webdynpro application

    Dear All,
    I am new in webdynpro development and I have a requirement to develop a webdynpro application which can save a document in a specified file directory. Can somebody please suggest or give sample code as to how to develope this application ...so that i can understand how to go about it.
    Awaiting response.
    Thank You.
    Ranu

    Dear Suresh,
    Thank you very much for your helpful answer.I have rectified the imports. Now the only error that is still persistent is "fname cannot be resolved ".
    I am attaching the code snippet that I have written in the part onActionSave for your perusal.Can you please look into it and let me know where I am making a mistake.
    public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSave(ServerEvent)
              byte imgsource[] = wdContext.currentDataElement().getDocument();
              String filePath = wdContext.currentDataElement().getFileName();
              byte[] fileBytes; //an array of bytes
              try {
                   File files = new File(filePath);
                   fname = files.getName();
                   final InitialContext ctx1 = new InitialContext();
                   final DestinationService dstService1 = (DestinationService)ctx1.lookup(DestinationService.JNDI_KEY);
                   final Destination destination1 = dstService1.getDestination("HTTP", "document");
                   //specify the Http destination as document
                   fileBytes = imgsource; //create a byte array from contents of field
                   String docuurl = "http://impp11.pune.telco.co.in:50000/irj/portal/+fname";
                   OutputStream targetFile = new FileOutputStream(docuurl);
                   //define the output stream
                   targetFile.write(fileBytes); //write the array of bytes to file
                   targetFile.close(); //close the File stream
              } catch (Exception e) {
                   e.printStackTrace();
                   wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
    Thank You.
    Ranu

Maybe you are looking for

  • Photoshop 2014 crashing unless external display is present

    Hello - Running Photoshop CC 2014 on a 2013 Macbook Pro Retina Display. 16 gb ram, OS X 10.9.5 with all software updates installed as of Nov 1 2014. Recently, I've discovered that Photoshop crashes on startup if my Macbook Pro is not connected to an

  • ITunes Stopped Working - Apple Pull Your Finger Out And Fix It Please!!!

    Okay so this is a similar story to hundreds I have seen. The other day I opened iTunes (7.0.2) Which has been working fine for years (Obvioously with previous versions). It opened up and began doing some kind of scan, then closed with the error "iTun

  • The printer wont print on letter head.

    The printer shifts everything downwards. It has a blue header and only recognises the start of the paper as the blue turns to white. so print half way down what i want further up.

  • Adobe DPS design upscaling

    Hi, I have a question about resolutions. I have a 640x480 design, created in InDesign as a test. If I preview this design via file -> preview folio, the desktop viewer starts and simulates just that using the same dimensions. So the desktop viewer fr

  • Data tab content blank in debugging

    Hello, On sql developer 3222009 At debugging a plsql store procedure, everything is doing well but when the code go to an internal procedure the data tab content became blank. Thnaks Nelson