XmlDoc.load

Get following error on only 1 site that I use daily (an educational site):
Result of expression 'xmlDoc.load' [undefined] is not a function
I think this may be causing problems on a link further down the chain where I get no text, only a header.
How can I resolve this?

Mac users using Word 2004 who receive a Word 2008 for Mac, (or Word 2007 for Windows) document, will not be albe to read this without having the Open XML Converter installed, which can be downloaded from Microsoft.
Go to this page:
http://www.microsoft.com/mac/downloads.mspx
and click on the right under Most Popular, 'Open XML File Format Converter for Mac 1.0.2'
This opens a window at the bottom of the page. Scroll that to the bottom and click on English.dmg, and it will download for you as a disk image, which can be installed in the usual way.
After installation you can open and read .xml formatted Word 2008 documents in Word 2004.
Updfate: This link http://support.microsoft.com/kb/976831 takes you to a newer version 1.1.3 (released Nov 10, 2009).

Similar Messages

  • Error loading XML content, returned by PHP script

    JavaScript
    function loadXMLDoc(fname)
    var xmlDoc;
    // code for IE
    if (window.ActiveXObject)
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
    xmlDoc=document.implementation.createDocument("","doc",null);
    else
    alert('Ваш броузер не может обработать необходимые скрипты. Воспользуйтесь браузерами IE 8, FireFox 3.х, Opera 9.х');
    xmlDoc.async=false;
    xmlDoc.load(fname);
    return(xmlDoc);
    PHP Script in XMLsrc.phtml
    error: loadXMLDoc("XMLsrc.phtml").documentElement is null
    It works in Opera 10.x (checked)

    JavaScript
    function loadXMLDoc(fname)
    var xmlDoc;
    // code for IE
    if (window.ActiveXObject)
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
    xmlDoc=document.implementation.createDocument("","doc",null);
    else
    alert('Ваш броузер не может обработать необходимые скрипты. Воспользуйтесь браузерами IE 8, FireFox 3.х, Opera 9.х');
    xmlDoc.async=false;
    xmlDoc.load(fname);
    return(xmlDoc);
    PHP Script in XMLsrc.phtml
    error: loadXMLDoc("XMLsrc.phtml").documentElement is null
    It works in Opera 10.x (checked)

  • Iframe not loading properly

    If I visit this page with safari the shop iframe shows no products. Try it with FF or IE and it works just fine? Is it a problem with safari or possibly a bad script on the iframe?
    http://hcfitness.net/?page_id=274

    I was able to aquire the code for what's being loaded in the iframe:
    <html>
    <body>
    <script type="text/javascript">
    var xmlDoc=null;
    if (window.ActiveXObject)
    {// code for IE
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    else if (document.implementation.createDocument)
    {// code for Mozilla, Firefox, Opera, etc.
    xmlDoc=document.implementation.createDocument("","",null);
    else
    alert('Your browser cannot handle this script');
    if (xmlDoc!=null)
    xmlDoc.async=false;
    xmlDoc.load("productfeed.xml");
    document.write("<table border='0'>");
    document.write("<tr><td><h3><u>Products:</u></h3></td><td><h3><u>Price:</u></h3> </td></tr>");
    var x=xmlDoc.getElementsByTagName("product");
    for (i=0;i<x.length;i++)
    document.write("<tr>");
    document.write("<td>");
    document.write("<img style='border: 3px silver solid; margin-bottom: 10px; margin-right: 10px;' width='75' align='left' src='");
    document.write(x.getElementsByTagName("imageurl")[0].childNodes[0].nodeValue);
    document.write("' />");
    document.write("<strong><a href='");
    document.write(x.getElementsByTagName("buyurl")[0].childNodes[0].nodeValue);
    document.write("' target='_blank'>");
    document.write(x.getElementsByTagName("name")[0].childNodes[0].nodeValue);
    document.write("</a></strong<br /><p style='margin-right: 10px;'>");
    document.write(x.getElementsByTagName("description")[0].childNodes[0].nodeValue);
    document.write("</p></td>");
    document.write("<td><del>Retail:");
    document.write(x.getElementsByTagName("retailprice")[0].childNodes[0].nodeValue);
    document.write("</del><br /><font color='red'>Your Price: ");
    document.write(x.getElementsByTagName("price")[0].childNodes[0].nodeValue);
    document.write("</font><br />");
    document.write("<a href='");
    document.write(x.getElementsByTagName("buyurl")[0].childNodes[0].nodeValue);
    document.write("' target='_blank'>BUY NOW</a>");
    document.write("</td></tr>");
    document.write("</table>");
    </script>
    </body>
    </html>

  • Web help is not working in ie11

    Hi,
    I have asp.net application and a adobe robo help 7.I have  the WebHelp folder after generate ouput. if run the help help in ie11.. am geeting error at xmldoc.load(). But the
    same is working in other browser, such as ie 8 and firefox.
    Thanks & Regards,
    DIleep

    Hi DIleep,
    RoboHelp 7 is not supported with IE 11. It only works till IE 8 or less.
    Regards,
    Mayank

  • New line character (/n ) getting introduced in the response XML in Biztalk 2010

    Hello,
    In one of our enviornment, we have started facing an issue that the response XML does not get structered correctly, hence when the response is finally redenered, there is a /n in the response fields. this is for all string fields that do not have data . 
    e.g.
    If you see the sample below, FName field has data and hence is structered correctly, however HairColorCd does not have data.
    The opening and closing tags of HairColorCd are on different lines when the xml response is opened in a text editor, and when opened in IE, there is a space. When the BizTalk (hosted as a WCF )responds to the caller application there appears a '/n ' in the
    value of the field.
    The correct value should have been null, i.e. ""
    <FName>LISA</FName><HairColorCd>
        </HairColorCd><HairColorDesc>
        </HairColorDesc><EyeColorCd>
        </EyeColorCd><EyeColorDesc>
        </EyeColorDesc>                                                                                                                                                                          
    ANy ideas on why this is happenning?ALl other enviornments(with same code) is working fine.

    Hi Rachana,
    I have faced the same issue last weeks with BizTalk 2010. This happens with versions of BizTalk 2006R2+ and  if you are loading the message using XML Document in some stage. So if that is the case, please check everytime you load the content of the
    message using XMLDocument and do it this way:
    Xmldoc= new System.Xml.XmlDocument();
    Xmldoc.PreserveWhitespace=false;
    Xmldoc.Load(CONTENT); // or Xmldoc.LoadXml(CONTENTAsSTRING)
    Xmldoc.PreserveWhitespace=true;
    YourBizTalkMessage=Xmldoc;
    Do it in this sequence and your problem should be solved.
    Regards, Mazin - MCTS BizTalk Server 2006

  • Problem building a synchronous web service in XI 3.0

    The scenario: HTTP Client on my desktop <-> XI 3.0 Plain
    HTTP Adapter <-> XI 3.0 RFC Adapter -> RFC enabled
    function module in a 4.6C backend system
    I have been testing this interface with different tools.
    Below list the testings I have done and the results.
    1. Using an HTTP client with QoS=Exactly Once: The HTTP
    client HTML code is attached. If I run this client with
    QoS = Exactly Once, the client receives successful return
    code 200 and the request does go into the backend system.
    But no response payload comes back to the client. Looking
    into the XI message monitoring, I could see the request
    message but there is no response message.
    2. Using the HTTP client with QoS=Best Effort: If I run
    this client with QoS = Best Effort, the client receives
    successful return code 200 with the response payload
    having value 1 (wrong value) in the response data field,
    but the request has never reached XI. Looking into the XI
    message monitoring, I could not find the request message.
    3. Using the Test Message tab of the integration engine
    under component monitoring in RWB with QoS=Exactly Once:
    After sent the test tool shows a Message sent with a
    green light. The message has reached XI and the backend
    system. A response message is also found in XI but it
    says "Acknowledgement not possible".
    4. Using the Test Message tab of the integration engine
    under component monitoring in RWB with QoS=Best Effort:
    After sent the test tool shows a Message sent with a
    green light. But no message can be found in XI message
    monitoring for this request.
    I could not find much discussion on using the plain HTTP
    adapter. Not sure what I did wrong and how I can
    troubleshoot. The HTTP client HTML code is attached below
    if you like to give it a try. Any hint or pointer to
    related discussion will be very appreciated.
    <html>
    <script type="text/javascript">;
    <!--
    function button1_onclick() {
    var result = "Result: ";
    var payload = "<?xml version="1.0" encoding="UTF-8" ?>";
    // escape "http://"
    var senderNamespace = escape(document.MessageParameters.SenderNamespace.value);
    var reqString = "http://"
    reqString = reqString + document.MessageParameters.Server.value+":";
    reqString = reqString + document.MessageParameters.Port.value + "/sap/xi/adapter_plain?";
    reqString = reqString + "namespace=" + senderNamespace;
    reqString = reqString + "&interface=" + document.MessageParameters.SenderInterface.value;
    reqString = reqString + "&service=" + document.MessageParameters.SenderService.value;
    reqString = reqString + "&party=" + document.MessageParameters.SenderParty.value;
    reqString = reqString + "&agency=" + document.MessageParameters.SenderAgency.value;
    reqString = reqString + "&scheme=" + document.MessageParameters.SenderScheme.value;
    reqString = reqString + "&QOS=" + document.MessageParameters.qos.value;
    reqString = reqString + "&queueid=httpclient";
    reqString = reqString + "&sap-user=xiappluser&sap-password=xipass";
    reqString = reqString + "&sap-client=" + document.MessageParameters.Client.value + "&sap-language=D";
    var xhttp = new ActiveXObject("msxml2.xmlhttp");
    xhttp.open ("POST", reqString, false);
    if (document.MessageParameters.Source[0].checked == true) {
    payload = "<?xml version="1.0" encoding="UTF-8" ?> "+ document.MessageParameters.xmlData.value;
    xhttp.send (payload);
    else{
    var xmlDoc = new ActiveXObject("microsoft.xmldom");
    xmlDoc.async=false;
    xmlDoc.load (document.MessageParameters.xmlFile.value);
    xhttp.send (xmlDoc);
    //result = result + "n" + xhttp.responseText;
    result = result + "nhttp-Status:  " + xhttp.status + " " + xhttp.statusText + " nPayload:n" + xhttp.responseText;
    xhttp.close;
    document.MessageParameters.response.value=result;
    //-->
    </script>
    <head></head>
    <body>
    <h3>Client Http Adapter </h3>
    <form name="MessageParameters">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Header</h4>
    <tbody>
    <tr>
    <td width="10%"><label>Server Host</label> </td>
    <td width="22%">
    <!-- Change server and port here -->
    <input type="text" id="host" name="Server"
    value="YourServer" size="20"/> </td>
    <td width="10%"><label>Server Port</label> </td>
    <td width="22%"><input type="text" id="port" name="Port" value="8000" size="10"/> </td>
    </tr>
    <tr>
    <td width="10%">Client</td>
    <td width="22%">
    <!-- Change client here -->
    <input type="text" id="client" name="Client"
    value="100" size="3"/></td>
    <td width="10%"> </td>
    <td width="22%"> </td>
    </tr>
    <tr>
    <td width="10%"><label>Sender Service</label> </td>
    <td width="22%">
    <!-- Change sender service here -->
    <input type="text" id="senderService"
    name="SenderService" value="TravelAgencyCS" size="40"/> </td>
    <td width="10%">Quality of Service</td>
    <td width="22%">
          <select size="1" name="qos">
          <option value="BE">Best Effort (synchronous)</option>
          <option value="EO" selected>Exactly Once (asynchronous)</option>
          <option value="EOIO">Exactly Once in Order</option>
          </select>
    </td>
    </tr>
    <tr>
    <td width="10%"><label>Sender Interface</label> </td>
    <td width="22%"><input type="text" id="senderInterface"
    name="SenderInterface" value="BookingOrdersOut" size="40"/> </td>
    <td width="10%"><label>Sender Namespace</label> </td>
    <td width="22%">
    <input type="text" id="senderNamespace"
    name="SenderNamespace" value="http://sap.com/xi/rkt/CaseStudy/group99"
    size="40"/></td>
    </tr>
    </tbody>
    </table>
    <br>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Optional Parameters</h4>
    <tbody>
    <tr>
    <td width="10%">Sender Party</td>
    <td width="22%"><input type="text" id="senderParty" name="SenderParty"
    size="40"/> </td>
    </tr>
    <tr>
    <td width="10%">Sender Agency</td>
    <td width="22%"><input type="text" id="senderAgency" name="SenderAgency"
    size="40"/> </td>
    <td width="10%">Sender Scheme</td>
    <td width="22%"><input type="text" id="senderScheme" name="SenderScheme"
    size="40"/> </td>
    </tr>
    </tbody>
    </table>
    <br>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Payload</h4>
    <tbody>
    <tr>
    <fieldset style="padding: 2">
    <td width="50%"><input type="radio" name="Source" value="Textarea" checked="checked"/>Type in XML</td>
    <td width="50%"><input type="radio" name="Source" value="File"/>Upload File</td>
    </fieldset>
    </tr>
    <tr>
    <td width="50%"><textarea name="xmlData" rows="10" cols="60"><a>test</a></textarea></td>
    <td width="50%"><input type="file" name="xmlFile" size="40"/> </td>
    </tr>
    </tbody>
    </table>
    <p>
    <input type="button" value="Send" id="button1" name="button1" LANGUAGE="javascript" onclick="button1_onclick()"/>
    </p>
    <hr/>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Result</h4>
    <tbody>
    <tr>
    <td width="50%"><textarea name="response" rows="5" cols="60"></textarea></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>

    After reading Michal Krawczyk's weblog on why I cannot see some of my messages in the SXMB_MONI and changed the XI logging_sync setting, now I can see logging of my sychronous messages.  Thanks to Michal now I can continue with my PoC.

  • Getting error in Mozilla, reading xml using JavaScript

    Hi All,
    I am working with javascript with xml, getting error in Mozilla
    1. see html and xml file and check xml file path before test ---
    2. please, go through the html and xml file.
    read_xml.html
    =================
    <html>
    <head>
    <title>xml file using javascript</title>
    <script type="text/javascript">
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    //loading xml file
    function doLoadXML(xmlFile)
    xmlDoc.async="false";
    xmlDoc.onreadystatechange=doStateVerify;
    xmlDoc.load(xmlFile);
    rootData=xmlDoc.documentElement;
    function doStateVerify()
    if (xmlDoc.readyState != 4)
    return false;
    // reading xml file
    function doReadXML()
    alert("calling function");
    doLoadXML("C:/Documents and Settings/webdeveloper06/Desktop/for_test/comp-info.xml");
    alert("loading file...........");
    var dataArr=new Array();
    dataArr=xmlDoc.getElementsByTagName("comp-info");
    for(var m=0; m <= dataArr.length-1; m++)
              alert("entering inside looping here");
              document.write("<Table border='1px'><tr><td>");     
              document.write(dataArr[m].getElementsByTagName("name")[0].firstChild.nodeValue);
              document.write(dataArr[m].getElementsByTagName("description")[0].firstChild.nodeValue);
              document.write(dataArr[m].getElementsByTagName("web-addr")[0].firstChild.nodeValue);
              document.write(dataArr[m].getElementsByTagName("address")[0].firstChild.nodeValue);
              document.write(dataArr[m].getElementsByTagName("city")[0].firstChild.nodeValue);
              document.write(dataArr[m].getElementsByTagName("postal-code")[0].firstChild.nodeValue);
              document.write(dataArr[m].getElementsByTagName("country")[0].firstChild.nodeValue);
              document.write("</input></td></tr></table>");
    </script>
    </head>
    <body>
    <input type="button" value="Display XML Data" onClick="doReadXML()" />
    </body>
    </html>
    com-info.xml
    =========
    <?xml version="1.0" encoding="iso-8859-1"?>
    <itcopany>
    <comp-info>
    <name>xxx</name>
    <description>IT Reaserch Company</description>
    <web-addr>http://xxx.com</web-addr>
    <address>mehdipatnam</address>
    <city>Hyderabad</city>
    <postal-code>777888888</postal-code>
    <country>IN</country>
    </comp-info>
    <comp-info>
    <name>yyyyy </name>
    <description>Non IT Company</description>
    <web-addr>http://yyyy.com</web-addr>
    <address>xyxxyxyx</address>
    <city>Banglore</city>
    <postal-code>78878787878</postal-code>
    <country>IN</country>
    </comp-info>
    <comp-info>
    <name>zzzzzzz</name>
    <description>IT Company</description>
    <web-addr>http://zzzzzzz.com</web-addr>
    <address>secondrabad</address>
    <city>Hyderabad</city>
    <postal-code>9999999999999</postal-code>
    <country>IN</country>
    </comp-info>
    </itcopany>
    output status
    ============
    1. getting output in IE
    2. not getting output in Mozilla
    Can anyone Helpout, To get data in Mozilla
    regards,
    Abu

    Try to check this document Browser Support for SAP and use PAM (Product Availability Matrix) to check for the compatibility of your SAP system with the browser.
    If you are only the user of the Web Dynpro you would have probably no other choice than change the browser.

  • Designer beginner's question: How to populate form with XML web service output?

    sorry, here is yet another Adobe Designer beginners question: <br /><br />My form uses a webservice data connection which returns <br />an xml-string like this: <br /><br /><?xml version="1.0" encoding="utf-16"?> <br /><CurrentWeather> <br />  <Location>Sion, Switzerland (LSGS) 46-13N 007-20E 481M</Location> <br />  <Time>Apr 26, 2007 - 09:50 AM EDT / 2007.04.26 1350 UTC</Time> <br />  <Wind> from the WSW (240 degrees) at 15 MPH (13 KT):0</Wind> <br />  <Visibility> greater than 7 mile(s):0</Visibility> <br />  <SkyConditions> partly cloudy</SkyConditions> <br />  <Temperature> 80 F (27 C)</Temperature> <br />  <DewPoint> 46 F (8 C) </DewPoint> <br />  <RelativeHumidity> 30%</RelativeHumidity> <br />  <Pressure> 29.88 in. Hg (1012 hPa)</Pressure> <br />  <Status>Success</Status> <br /></CurrentWeather> <br /><br />What is the simplest and recommended way to extract the <br />element fields to my form? <br /><br />Thank you very much an kind regards, <br />Hans Grund

    The question is still unanswered!
    Let me give some details and break up the problem
    in more specific questions:
    - In Designer 8.1 I click new data binding --> wsdl -->
    http://www.webservicex.net/globalweather.asmx?wsdl
    A message box comes up and says "cannot load wsdl file"
    ==> 1. Question:
    Why maybe refuses Designer to load the http-wsdl,
    although this option is explicitly allowed?
    - When I save the wsdl to a file, Designer loads it
    without any problems. The web service uses two input parameters
    (CountryName and CityName) and returns an xml-string GetWeatherResult)
    like the one in my first posting. I drag these fields from the binding view to my form, and it runs ok!
    - THE PROBLEM IS, THAT I NEET TO EXTRACT THE ELEMENT FIELDS
    FROM THE RESULT XML-STRING!
    ==> 2. Question:
    How to extract xml element fields from wsdl output into a form?
    - I tried with eclipse and XmlSpy to build a modified wsdl file
    with structured output definition, so that the specific element fields
    show up in the data binding view and are usable to my form,
    and the modified wsdl maps consistently to the web service result string.
    So far without success: In the PDF -preview or Reader-
    when the wsdl-binding is executed and the web service output
    should show up in the result fields, just nothing happens.
    ==> 3. Question:
    Can this strategy to provide a "modified wsdl" possibly succeed,
    and how?
    ==> 4. Question:
    Is is possible -and how?- to check whether an xml string
    is valid as web service output against the wsdl-definition?
    ==> 5. Question:
    How to debug a web service connection with Designer?
    - Finally I tried to find a way to load the result xml-string
    into a local var in the script editor and parse it, much like:
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.load(DataSet.MyForm.GetWeatherResult.rawValue);
    ==> 6. Question:
    Is it possible -and how?- to use a framework like dotnet?
    How to utilize SAX or DOM in Designer?
    Many thanks and appreciations for your help!!

  • View then modify content of xml file.

    I am new in Java world and my background is database admin. What I am trying to achieve here is write a small java scripts code which would open connections.xml allow user to update connection definition.
    So here is what I do using java scripts, I load the connections.xml:
    xmlDoc.load("connections.xml");
    Then I disply the current conection def:
    var x=xmlDoc.getElementsByTagName("StringRefAddr");
    for (var i=0;i<x.length;i++)
    document.write("<tr>");
    document.write("<td>");
    document.write(x.getElementsByTagName("Contents")[0].childNodes[0].nodeValue);
    document.write("</td>");
    document.write("</table>");
    But this only displays the content of connections.xml.
    What is the code to allow user to actually modify what he or she is seeing displayed?
    If java scripts is not the appropriate way to do this then please advise on how to do this the simplest way possible.
    Please advise.
    Thanks.
    Bobby.

    So you're reading in this XML document and extracting some bits to display to the user? And then when the user changes those bits and says OK you are going to write out a modified XML document?
    Actually, never mind. Figure out what you are going to do and start doing it. Then when you run into a problem, post a specific question about that problem. It appears your question is actually "I don't know what I should do" and it isn't possible to answer that on a forum.

  • Problem, change the language with dynamic text

    I am looking for a way to change simply the language of my flash animation
    I work with flash cs4
    of course I got Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
    static function start():Void {  
    var langCode:String = xmlLang;
    currentXMLMapIndex = 0;
    xmlDoc.load(xmlMap[langCode][0]);
    static function setXMLLang(langCode:String):Void {
    xmlLang = langCode;
    and different xml files in the same folder than my swf file
    in string , I ticked : "replace  strings automatically during the execution"
      with a default language (I am wondering if the problem is not from there)
      if I tick: "replace strings manually using the scene language " or "replace strings via actionscript"
    my code does not work.
      then I kept: "replace strings automatically during the execution"
    in my flash animation I have several scenes (pages)
    p1, p2, p3, p4
    in p1
    I created a language bar
    then 2 layers inside
    Layer--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
    var target = eventObj.target;
    var newLang = target.selectedItem.data;
    MyLocale.setXMLLang(newLang);
    MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Layer--language ex Fr:
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "fr") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "ja") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    When I change the language in p1 , the language is also modified in p2, p3 and p4
    however , after a navigation in p2, p3 and p4 , once I come back in p1 , the default language is back automatically although I did not touch the language bar!!
    I don't know how to solve the problem
    to my mind , the script reset itself each time I come back on p1
    is there a way to keep the saved settings even when I am back on p1 until I modify manually again the language bar
    thanks a lot

    I am looking for a way to change simply the language of my flash animation
    I work with flash cs4
    of course I got Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
    static function start():Void {  
    var langCode:String = xmlLang;
    currentXMLMapIndex = 0;
    xmlDoc.load(xmlMap[langCode][0]);
    static function setXMLLang(langCode:String):Void {
    xmlLang = langCode;
    and different xml files in the same folder than my swf file
    in string , I ticked : "replace  strings automatically during the execution"
      with a default language (I am wondering if the problem is not from there)
      if I tick: "replace strings manually using the scene language " or "replace strings via actionscript"
    my code does not work.
      then I kept: "replace strings automatically during the execution"
    in my flash animation I have several scenes (pages)
    p1, p2, p3, p4
    in p1
    I created a language bar
    then 2 layers inside
    Layer--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
    var target = eventObj.target;
    var newLang = target.selectedItem.data;
    MyLocale.setXMLLang(newLang);
    MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Layer--language ex Fr:
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "fr") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "ja") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    When I change the language in p1 , the language is also modified in p2, p3 and p4
    however , after a navigation in p2, p3 and p4 , once I come back in p1 , the default language is back automatically although I did not touch the language bar!!
    I don't know how to solve the problem
    to my mind , the script reset itself each time I come back on p1
    is there a way to keep the saved settings even when I am back on p1 until I modify manually again the language bar
    thanks a lot

  • HTTP receiver problem

    hi all,
    though some of u replied to my previous post regarding http receiver, i'm unable to find a solution for it....so if possible please send me a few snapshots of how a HTTP receiver is configured and a sample jsp program for accesing the payload sent by xi......
    the scenario is http>xi->http..the thing is
    1)xi gets the input from a web page..this is successfully done.
    2)xi does the mapping...this is also successfully done..
    3)xi send the mapping result to the http adapter.....problem with configuration i think...i want xi to send the payload to http://sysname:port/virtual-dir/x.jsp .... when it is the case i get some no-mapping error......and i would like to know in what parameter name the payload is fixed in the query string to that url so that i could get it in jsp page a request.getParameter("parametername")......
    please do help me in it..i'm struck with it for a long time........thanks in advance...

    Hi SPS,
      Check this link
    /message/654739#654739 [original link is broken]
    code attached here
    sample html code
    <html>
    <script type="text/javascript">;
    <!--
    function button1_onclick() {
    var result = "Result: ";
    var payload = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
    // escape "http://"
    var senderNamespace = escape(document.MessageParameters.SenderNamespace.value);
    var reqString = "http://"
    reqString = reqString + document.MessageParameters.Server.value+":";
    reqString = reqString + document.MessageParameters.Port.value + "/sap/xi/adapter_plain?";
    reqString = reqString + "namespace=" + senderNamespace;
    reqString = reqString + "&interface=" + document.MessageParameters.SenderInterface.value;
    reqString = reqString + "&service=" + document.MessageParameters.SenderService.value;
    reqString = reqString + "&party=" + document.MessageParameters.SenderParty.value;
    reqString = reqString + "&agency=" + document.MessageParameters.SenderAgency.value;
    reqString = reqString + "&scheme=" + document.MessageParameters.SenderScheme.value;
    reqString = reqString + "&QOS=" + document.MessageParameters.Qos.value;
    reqString = reqString + "&sap-user=xiappluser&sap-password=xipass";
    reqString = reqString + "&sap-client=" + document.MessageParameters.Client.value + "&sap-language=D";
    var xhttp = new ActiveXObject("msxml2.xmlhttp");
    xhttp.open ("POST", reqString, false);
    if (document.MessageParameters.Source[0].checked == true) {
    payload = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> "+ document.MessageParameters.xmlData.value;
    xhttp.send (payload);
    else{
    var xmlDoc = new ActiveXObject("microsoft.xmldom");
    xmlDoc.async=false;
    xmlDoc.load (document.MessageParameters.xmlFile.value);
    xhttp.send (xmlDoc);
    result = result + "\n" + xhttp.responseText;
    xhttp.close;
    document.MessageParameters.response.value=result;
    //-->
    </script>
    <head></head>
    <body>
    <h3>Client Http Adapter </h3>
    <form name="MessageParameters">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Header</h4>
    <tbody>
    <tr>
    <td width="10%"><label>ServerHost</label> </td>
    <td width="22%">
    <input type="text" id="host" name="Server"
    value="sapcoe01" size="20" /> </td>
    <td width="10%"><label>ServerPort</label> </td>
    <td width="22%"><input type="text" id="port" name="Port" value="8000" size="10" /> </td>
    </tr>
    <tr>
    <td width="10%">Client</td>
    <td width="22%">
    <input type="text" id="client" name="Client"
    value="020" size="3" /></td>
    <td width="10%"> </td>
    <td width="22%"> </td>
    </tr>
    <tr>
    <td width="10%"><label>SenderService</label> </td>
    <td width="22%"><input type="text" id="senderService"
    name="SenderService" value="TravelAgencyCS" size="40" /> </td>
    <td width="10%">QOS</td>
    <td width="22%"><input type="text" id="qos" name="Qos" value="EO" size="4" /> </td>
    </tr>
    <tr>
    <td width="10%"><label>SenderInterface</label> </td>
    <td width="22%"><input type="text" id="senderInterface"
    name="SenderInterface" value="BookingOrdersOut" size="40" /> </td>
    <td width="10%"><label>SenderNamespace</label> </td>
    <td width="22%">
    <input type="text" id="senderNamespace"
    name="SenderNamespace" value="http://sap.com/xi/rkt/CaseStudy/group99"
    size="40" /></td>
    </tr>
    </tbody>
    </table>
    &#160;
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Optional Parameters</h4>
    <tbody>
    <tr>
    <td width="10%">SenderParty</td>
    <td width="22%"><input type="text" id="senderParty" name="SenderParty"
    size="40" /> </td>
    </tr>
    <tr>
    <td width="10%">SenderAgency</td>
    <td width="22%"><input type="text" id="senderAgency" name="SenderAgency"
    size="40" /> </td>
    <td width="10%">SenderScheme</td>
    <td width="22%"><input type="text" id="senderScheme" name="SenderScheme"
    size="40" /> </td>
    </tr>
    </tbody>
    </table>
    &#160;
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Payload</h4>
    <tbody>
    <tr>
    <fieldset style="padding: 2">
    <td width="50%"><input type="radio" name="Source" value="Textarea" checked="checked" />Type in XML</td>
    <td width="50%"><input type="radio" name="Source" value="File" />Upload File</td>
    </fieldset>
    </tr>
    <tr>
    <td width="50%"><textarea name="xmlData" rows="10" cols="60">&lt;a&gt;test&lt;/a&gt;</textarea></td>
    <td width="50%"><input type="file" name="xmlFile" size="40" /> </td>
    </tr>
    </tbody>
    </table>
    <p>
    <input type="button" value="Send" id="button1" name="button1" LANGUAGE="javascript" onclick="button1_onclick()" />
    </p>
    <hr />
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Result</h4>
    <tbody>
    <tr>
    <td width="50%"><textarea name="response" rows="5" cols="60"></textarea></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>
    the code in that uses an Active X object, but if you can align your JSP code to receive the response in similar way, then probably your prob is solved,
    Best of luck
    Regards
    Vishnu

  • How to read XML using vbscript

    hi friends I have A big XML having following format :
    <ECSC>
    <ATTRIBUTES>
    <ETTOOLNAME>ECATT</ETTOOLNAME>
    <ETOBJ_GNDT>
    <VERSION>00000001</VERSION>
    <TWB_TITLE>TF_FI_FP_FI_0569_MS07_CO_Search_Help_Internal_Orders_vTD0_1_EN.x</TWB_TITLE>
    <TWB_STATUS>X</TWB_STATUS>
    <TWB_RELE>N</TWB_RELE>
    <FUSER>ECATT</FUSER>
    <FDATE>2014-05-22</FDATE>
    <LUSER>ECATT</LUSER>
    <LDATE>2014-05-22</LDATE>
    <LTIME>13:59:50</LTIME>
    </ETOBJ_GNDT>
    <ETOBJNOVER>
    <NAME>ZX_FI_FP_0569_MS07_COAS_FB01</NAME>
    <TYPE>ECSC</TYPE>
    <TWB_RESP>ECATT</TWB_RESP>
    <TWB_DISTL>B</TWB_DISTL>
    <DEVCLASS>Z_SOL_ONEERP</DEVCLASS>
    <MASTERLANG>E</MASTERLANG>
    <TADIR_RESP>ECATT</TADIR_RESP>
    <FRANGE>BC</FRANGE>
    </ETOBJNOVER>
    <ETOBJ_DOC>
    <SEARCH_1>FI_FP_FI_0569_MS07</SEARCH_1>
    <SEARCH_2>COAS</SEARCH_2>
    <SEARCH_3>KO03</SEARCH_3>
    </ETOBJ_DOC>
    <ETOBJ_CNST>
    <TWB_WKREQ>0.000</TWB_WKREQ>
    <TWB_PRIO>3</TWB_PRIO>
    </ETOBJ_CNST>
    <ETSC_TSYS>
    <SYSTEMDATA>Z_SD_1ERP_Z</SYSTEMDATA>
    <TESTSYSTEM>FI_TRUSTED_EN</TESTSYSTEM>
    </ETSC_TSYS>
    <ETSYS_COMP_TABTYPE/>
    <ETSYS_REL_TABTYPE/>
    </ATTRIBUTES>
    <SCRIPT>
    <ETXML_LINE_TABTYPE>
    <item>***********************************************************************.</item>
    <item>* Information.</item>
    <item>**********************************************************************.</item>
    <item>* Script for test case 'TF_FI_FP_FI_0569_MS07_CO_Search_Help_Internal_Orders_vTD0_1_EN.x'</item>
    <item>*</item>
    <item>* For Sub script:</item>
    <item>*  'Test case 3: Choose an Internal Order in One.Fi using external order number while transaction posting (positive case)'.</item>
    <item>*</item>
    <item>* Script is to Display Internal Order using external order number while Transaction Posting 'FB01'</item>
    <item>* GETTAB command is being used to fetch the data from table 'COAS'.</item>
    <item>*</item>
    <item>*</item>
    <item>*     Test data related Information</item>
    <item>*     -----------------------------</item>
    <item>* Default test data present in parameter list has been used while Scripting ( script recording &amp; Performing Checks ).</item>
    <item>*</item>
    <item>* Final execution of result log: 0000037077.</item>
    <item>*</item>
    <item>***********************************************************************.</item>
    <item>* Preparation.</item>
    <item>***********************************************************************.</item>
    <item/>
    <item/>
    <item>***********************************************************************.</item>
    <item>* End Preparation.</item>
    <item>************************************************************************.</item>
    <item/>
    <item/>
    <item>***********************************************************************.</item>
    <item>* Execution.</item>
    <item>***********************************************************************.</item>
    <item>* To get the 'Table Entries' from table 'COAS'.</item>
    <item>  GETTAB ( COAS , COAS_1 ).</item>
    <item>* To display the value for the field 'External Order No'.</item>
    <item>  LOG ( V_EXTERNAL_ORDER_NO_FRM_TABL ).</item>
    <item/>
    <item>*----------------------Posting(FB01)-------------------------------------------*.</item>
    <item/>
    <item>* This part of Script is to Display Internal Order using external order number while Transaction Posting 'FB01'.</item>
    <item>MESSAGE ( MSG_1 ).</item>
    <item>* To get the name of the Title Screen.</item>
    <item>  GETGUI ( FB01_100_STEP_1 ).</item>
    <item>* Enter the Required details and Press Enter.</item>
    <item>  SAPGUI ( FB01_100_STEP_2 ).</item>
    <item>* Enter Amount and Tax Code.</item>
    <item>* and, Press F4 help in the Order Field.</item>
    <item>  SAPGUI ( FB01_300_STEP_1 ).</item>
    <item>* In F4 screen, enter the 'External Order Number'</item>
    <item>* pop-up screen is displayed with entries like Order, Description and External Order Number and select 1st order row, press Enter.</item>
    <item>  SAPGUI ( FB01_200_STEP_1 ).</item>
    <item>* To get the values for the field 'Order, Description and External Order No' from F4 help.</item>
    <item>  GETGUI ( FB01_120_STEP_1 ).</item>
    <item>  SAPGUI ( FB01_120_STEP_3 ).</item>
    <item>* To get the value for the field 'Order' from Main screen.</item>
    <item>  GETGUI ( FB01_300_STEP_2 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_300_STEP_3 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_700_STEP_1 ).</item>
    <item>* click 'Yes' button.</item>
    <item>  SAPGUI ( FB01_200_STEP_2 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_100_STEP_3 ).</item>
    <item>ENDMESSAGE ( E_MSG_1 ).</item>
    <item/>
    <item>* To display the Title Screen.</item>
    <item>  LOG ( V_TITLE_SCREEN ).</item>
    <item>* To display the 'Order' Number from F4 help.</item>
    <item>  LOG ( V_ORDER_NO_FROM_F4 ).</item>
    <item>* To display the 'Description' from F4 help.</item>
    <item>  LOG ( V_DESCRIPTION_FROM_F4).</item>
    <item>* To display the 'External Order no' value from F4 help.</item>
    <item>  LOG ( V_EXTERNAL_ORDER_NO_FROM_F4 ).</item>
    <item>* To display the 'Order' Number from main screen.</item>
    <item>  LOG ( V_ORDER_NO_FRM_MAIN_SCREEN ).</item>
    <item>************************************************************************.</item>
    <item>* End Execution.</item>
    <item>***********************************************************************.</item>
    <item/>
    <item>***********************************************************************.</item>
    <item>* Check.</item>
    <item>***********************************************************************.</item>
    <item>* To check name of Title screen for transaction FB01.</item>
    <item>  CHEVAR ( V_TITLE_SCREEN = I_TITLE_SCREEN ).</item>
    <item>* To check the value for the field 'External Order No' from F4 help, which should be equal to 'External Order No' from table.</item>
    <item>  CHEVAR ( V_EXTERNAL_ORDER_NO_FRM_TABL = V_EXTERNAL_ORDER_NO_FROM_F4 ).</item>
    <item>* To check the values for the field 'Order' number from Table, which should be equal to 'Order' no from F4 screen and Main screen.</item>
    <item>  CHEVAR ( ( I_ORDER_NUMBER_FROM_TABLE = V_ORDER_NO_FROM_F4 ) AND ( I_ORDER_NUMBER_FROM_TABLE = V_ORDER_NO_FRM_MAIN_SCREEN )).</item>
    <item>************************************************************************.</item>
    <item>* End Check.</item>
    <item>************************************************************************.</item>
    </ETXML_LINE_TABTYPE>
    </SCRIPT>
    <PARAMETERS>
                     <ETPAR_GUIX>
    <item>
    <PNAME>COAS_1</PNAME>
    <PTYP>X</PTYP>
    <PDESC>Generated Table for View</PDESC>
    <PINDEX>0001</PINDEX>
    <PGROUP>GETTAB</PGROUP>
    <XMLREF_TYP>T</XMLREF_TYP>
    <PSTRUC_TYP>T</PSTRUC_TYP>
    <PREF_TYPE>VIEW</PREF_TYPE>
    <PREF_NAME>COAS</PREF_NAME>
    <PDATLEN>0000</PDATLEN>
    <PINTLEN>000000</PINTLEN>
    <PDECIMALS>000000</PDECIMALS>
    <SORT_LNR>0001</SORT_LNR>
    <PREF_NAME2>COAS</PREF_NAME2>
    <VALUE>&lt;VALUE&gt;</VALUE>
    <VAL_TYPE>T</VAL_TYPE>
    <TAB_INDEX>0</TAB_INDEX>
                              </item>
    <item>
    <PNAME>IOAS_1</PNAME>
    <PTYP>I</PTYP>
    <PDESC>Generated Table for View</PDESC>
    <PINDEX>0001</PINDEX>
    <PGROUP>IETTAB</PGROUP>
    <XMLREF_TYP>T</XMLREF_TYP>
    <PSTRUC_TYP>T</PSTRUC_TYP>
    <PREF_TYPE>VIEW</PREF_TYPE>
    <PREF_NAME>COAS</PREF_NAME>
    <PDATLEN>0000</PDATLEN>
    <PINTLEN>000000</PINTLEN>
    <PDECIMALS>000000</PDECIMALS>
    <SORT_LNR>0001</SORT_LNR>
    <PREF_NAME2>COAS</PREF_NAME2>
    <VALUE>&lt;VALUE&gt;</VALUE>
    <VAL_TYPE>T</VAL_TYPE>
    <TAB_INDEX>0</TAB_INDEX>
                            </item>
     </ETPAR_GUIX>
    </PARAMETERS>
    </ECSC>
    I want to write vbscript for above XML file. Vbscript should display following result :
    1) It should validate <SCRIPT> node The line staring with * symbol is called comment and the line staring without * symbol is call code in above XML file.
    2) Vb Script should display such line numbers those code don't have any comment line specified.
    for example : In above XML the code line : <item>  SAPGUI ( FB01_120_STEP_3 ).</item> it doesn't have any comment line means this code don't have any comment. So vbscript should find such line numbers and code text and show error message.
    3) Each code had its own comment just above line of code.
    4) In <PARAMETER> node we have to check <PNAME> is staring with letter "I" or not.. If its staring with letter "I" then its <PTYPE> and <PGROUP> staring letter should be "I". We have to check this condition
    for every child node of <PARAMETER> node using vbscript.
     Please help me and Thank You so much in advance.
    My Vb Script is as follows :
    filename = "D:\Automation\o.txt"
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile(filename)
    fl=0
    Do Until f.AtEndOfStream
                    strLine = f.ReadLine
                    if (strLine ="MESSAGE ( MSG_1 ).") then
                                Document.write("<br>Inside MESSAGE ")
                                     Do until f.AtEndOfStream
                                                    strLine = f.ReadLine
                                                                    if((Left(strLine,1)="*"))
    Then
                                                                    if((Right(strLine,1)="."))
    then 
          Document.write("<br>ERROR Found  at Line No :" & f.line-1&" "& strLine)
                                                                    end if
                                                                     fl=1
                                                    else 
                                                                    if((Right(strLine,1)=".")
    and (fl=1))Then
          fl=0
        else
          Document.write("<br>ERROR Found  at Line No :" & f.line-1&" "& strLine)
                                                                    end if
                                                    end if
                              Loop
    end if
       And the following code for <PARAMETER> tag :
    Const XMLDataFile = "D:\Automation\imp\p.xml"
    Set xmlDoc = CreateObject("Microsoft.XMLDOM")
    xmlDoc.Async = False
    xmlDoc.Load(XMLDataFile)
     xmlDoc.validateOnParse = True  
     If xmlDoc.Load(XMLDataFile) Then 
              Document.write "SUCCESS loading XML File"  
     Else  
         Document.write "ERROR loading XML File"  
          End If
    counter=0  
    Set root = xmlDoc.documentElement
    Set items = root.childNodes
    for each item in items
        myPNAME = xmlDoc.getElementsByTagName("PNAME").item(counter).text
        myPTYP = xmlDoc.getElementsByTagName("PTYP").item(counter).text
        myPGROUP = xmlDoc.getElementsByTagName("PGROUP").item(counter).text
        If (Left(myPNAME, 1) = "I") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "I") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "I" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
        If (Left(myPNAME, 1) = "V") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "V") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "V" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
    If (Left(myPNAME, 1) = "E") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "E") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "E" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
    counter=counter+1
    next
                                                                    

    Here is a better example of how to pull all of the text.
    strXmlFile = "D:\Automation\imp\p.xml"
    Set xmlDoc = CreateObject("Microsoft.XMLDOM")
    xmlDoc.Async = False
    If xmlDoc.Load(strXmlFile) Then
    WScript.Echo "SUCCESS loading XML File"
    Else
    WScript.Echo "ERROR loading XML File"
    End If
    Set items = xmlDoc.SelectNodes("//SCRIPT/ETXML_LINE_TABTYPE/item")
    For Each item In items
    WScript.Echo item.Text
    Next
    ¯\_(ツ)_/¯

  • Client Adapter

    I have created a scenario http->xi->r/3 and everything is working as it should be.  Currently am using an html file to test my scenario, however when I want move this scenario to qa/prod do I still use the same JavaScript code to invoke XI or is there any other way?  The HTML file sometimes get correct response but sometimes it throws 500 Internal Server Error and shows message mapping as the issue.  When I test the same test case with Runtime Workbench it works fine. 
    Thanks in advance for any suggestions.
    Sunil Achyut

    Hi Sunil,
    you can Microsofts wfetch or following html requestor script:
    <html>
    <script type="text/javascript">;
    <!--
    function button1_onclick() {
    var result = "Result: ";
    var payload = "<?xml version="1.0" encoding="UTF-8" ?>";
    // escape "http://"
    var senderNamespace = escape(document.MessageParameters.SenderNamespace.value);
    var reqString = "http://"
    reqString = reqString + document.MessageParameters.Server.value+":";
    reqString = reqString + document.MessageParameters.Port.value + "/sap/xi/adapter_plain?";
    reqString = reqString + "namespace=" + senderNamespace;
    reqString = reqString + "&interface=" + document.MessageParameters.SenderInterface.value;
    reqString = reqString + "&service=" + document.MessageParameters.SenderService.value;
    reqString = reqString + "&party=" + document.MessageParameters.SenderParty.value;
    reqString = reqString + "&agency=" + document.MessageParameters.SenderAgency.value;
    reqString = reqString + "&scheme=" + document.MessageParameters.SenderScheme.value;
    reqString = reqString + "&QOS=" + document.MessageParameters.Qos.value;
    reqString = reqString + "&sap-user=xiappluser&sap-password=xipass";
    reqString = reqString + "&sap-client=" + document.MessageParameters.Client.value + "&sap-language=D";
    var xhttp = new ActiveXObject("msxml2.xmlhttp");
    xhttp.open ("POST", reqString, false);
    if (document.MessageParameters.Source[0].checked == true) {
    payload = "<?xml version="1.0" encoding="UTF-8" ?> "+ document.MessageParameters.xmlData.value;
    xhttp.send (payload);
    else{
    var xmlDoc = new ActiveXObject("microsoft.xmldom");
    xmlDoc.async=false;
    xmlDoc.load (document.MessageParameters.xmlFile.value);
    xhttp.send (xmlDoc);
    result = result + "n" + xhttp.responseText;
    xhttp.close;
    document.MessageParameters.response.value=result;
    //-->
    </script>
    <head></head>
    <body>
    <h3>Client Http Adapter </h3>
    <form name="MessageParameters">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Header</h4>
    <tbody>
    <tr>
    <td width="10%"><label>ServerHost</label> </td>
    <td width="22%">
    <input type="text" id="host" name="Server"
    value="sapcoe01" size="20"/> </td>
    <td width="10%"><label>ServerPort</label> </td>
    <td width="22%"><input type="text" id="port" name="Port" value="8000" size="10"/> </td>
    </tr>
    <tr>
    <td width="10%">Client</td>
    <td width="22%">
    <input type="text" id="client" name="Client"
    value="020" size="3"/></td>
    <td width="10%"> </td>
    <td width="22%"> </td>
    </tr>
    <tr>
    <td width="10%"><label>SenderService</label> </td>
    <td width="22%"><input type="text" id="senderService"
    name="SenderService" value="TravelAgencyCS" size="40"/> </td>
    <td width="10%">QOS</td>
    <td width="22%"><input type="text" id="qos" name="Qos" value="EO" size="4"/> </td>
    </tr>
    <tr>
    <td width="10%"><label>SenderInterface</label> </td>
    <td width="22%"><input type="text" id="senderInterface"
    name="SenderInterface" value="BookingOrdersOut" size="40"/> </td>
    <td width="10%"><label>SenderNamespace</label> </td>
    <td width="22%">
    <input type="text" id="senderNamespace"
    name="SenderNamespace" value="http://sap.com/xi/rkt/CaseStudy/group99"
    size="40"/></td>
    </tr>
    </tbody>
    </table>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Optional Parameters</h4>
    <tbody>
    <tr>
    <td width="10%">SenderParty</td>
    <td width="22%"><input type="text" id="senderParty" name="SenderParty"
    size="40"/> </td>
    </tr>
    <tr>
    <td width="10%">SenderAgency</td>
    <td width="22%"><input type="text" id="senderAgency" name="SenderAgency"
    size="40"/> </td>
    <td width="10%">SenderScheme</td>
    <td width="22%"><input type="text" id="senderScheme" name="SenderScheme"
    size="40"/> </td>
    </tr>
    </tbody>
    </table>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Payload</h4>
    <tbody>
    <tr>
    <fieldset style="padding: 2">
    <td width="50%"><input type="radio" name="Source" value="Textarea" checked="checked"/>Type in XML</td>
    <td width="50%"><input type="radio" name="Source" value="File"/>Upload File</td>
    </fieldset>
    </tr>
    <tr>
    <td width="50%"><textarea name="xmlData" rows="10" cols="60">&lt;a&gt;test&lt;/a&gt;</textarea></td>
    <td width="50%"><input type="file" name="xmlFile" size="40"/> </td>
    </tr>
    </tbody>
    </table>
    <p>
    <input type="button" value="Send" id="button1" name="button1" LANGUAGE="javascript" onclick="button1_onclick()"/>
    </p>
    <hr/>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
    <h4>Result</h4>
    <tbody>
    <tr>
    <td width="50%"><textarea name="response" rows="5" cols="60"></textarea></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>
    Regards,
    Udo

  • Error attempting to Login to UpShot with UpXMLLibrary

    Hi,
    We've been having as issue trying to login to UpShot via the API using Classic ASP.
    We get this error:
    msxml4.dll error '80070005'
    Access is denied.
    At this line of the SendXml function
    xmlHttp.send xmlRequest
    Below is the exact code of the test page we're using to troubleshoot.
    <!--#include file="../../includes/UpXMLLibrary.inc"-->
    <%
    Response.Write("Before login")
    Const COMPANYNAME = "Our Company Name"
    Const LOGINNAME = "ourusername"
    Const PASSWORD = "ourpassword"
    Const TIMEZONE = "Eastern Time"
    Const DAYLIGHTSAVINSRULE = "North America"
    If Login(COMPANYNAME, LOGINNAME, PASSWORD, TIMEZONE, DAYLIGHTSAVINSRULE) Then
         Response.Write("we're logged in to UpShot")
         Logoff
    End If
    %>
    Any help would be greatly appreciated. Thank you.

    Hi, sorry for not responding earlier, I didn't see this. I guess the email notification of replies is not working.
    It's the login function from the UpXMLLibrary include file that's part of the UpShot API.
    Here's the Login function from that file
    ' Function Login
    ' Purpose:
    ' This function encapsulates the UpShot Login XML call. If this function succeeds,
    ' then the glbSessionID variable is set to the returned SessionID to be used in
    ' all the subsequent XML calls
    ' Parameters:
    ' companyname - Company name to use in Login request
    ' loginID - User Login Name to use in Login request
    ' password - User's Password to use in Login request
    ' timezone - TimeZone to use in Login request
    ' daylightsavingrule - DaylightSavingrule to use in Login request
    ' Return Value:
    ' Boolean - True if this function completes successfully
    Function Login(companyname,loginID,password,timezone,daylightsavingrule)
    Dim xmlLogin
    Dim xmlOut
    ' default return value
    Login = False
    ' construct the Login XML request
    xmlLogin = "<Login " & _
    "Company=""" & XMLEncode(companyname) & """ " & _
    "LoginName=""" & XMLEncode(loginID) & """ " & _
    "Password=""" & XMLEncode(password) & """ " & _
    "TimeZone=""" & timezone & """ " & _
    "DaylightSavingRule=""" & daylightsavingrule & """/>"
    ' Send the XML to the UpShot Server
    If SendXML(xmlLogin, xmlOut) Then
    Dim xmlDoc
    Dim loginElement
    ' Load the XML into the MSXML object for parsing
    Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.4.0")
    xmlDoc.LoadXML xmlOut
    ' Check the returned action status to make sure this request succeeded
    If VerfiyRequestStatus(xmlDoc, "Login") Then
    ' Login was successfull, so get the SessionID and store it in the
    ' global SessionId variable
    Set loginElement = xmlDoc.selectSingleNode("/*/Login")
    glbSessionID = loginElement.selectSingleNode("SessionID").Text
    ' If we get here then everything succeeded
    Login = TRUE
    End If
    End If
    End Function
    And the SendXML function that Login calls (and where the error is happening)
    ' Function SendXML
    ' Purpose:
    ' This function encapsulates the sending of an XML request to the
    ' UpShot server. It takes in a string containing and XML request and
    ' returns a string containing the XML response. The passed in XML is
    ' not a complete XML request. This routine will package the passed in
    ' XML into a well-formed UpShot XML request before sending it to the UpShot
    ' server.
    ' Parameters:
    ' xmlIn - XML request to send to the upshot server
    ' xmlOut [out] - A string containing the XML response
    ' Return Value:
    ' Boolean - True if the request was sent and recieved successfully
    Function SendXML(xmlIn, xmlOut)
    Dim serverUrl
    Dim xmlRequest
    Dim xmlDoc
    Dim xmlHttp
    Dim errorElement
    ' default return value
    SendXML = False
    ' create the MSXML objects to send the XML request
    Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.4.0")
    Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.4.0")
    ' construct an URL to send the request to
    serverUrl = PROTOCOL & "://" & SERVERNAME
    ' package the XML request with the correct processing instructions
    ' and insode of the UpShotRequest node
    xmlRequest = "<?xml version=""1.0"" encoding=""ISO-8859-1""?>" & "<UpShotRequest"
    If Len(glbSessionID) > 0 Then
    xmlRequest = xmlRequest & " SessionID="""&glbSessionID&""""
    End If
    xmlRequest = xmlRequest & ">"& xmlIn & "</UpShotRequest>"
    ' send the XML to the UpShot server
    xmlHttp.Open"POST", serverUrl & "/UpShotdev/xml.dll", False
    xmlHttp.send xmlRequest
    ' set the XML output
    xmlOut = xmlHttp.responseXML.xml
    ' load the XML results
    If Not xmlDoc.Load(xmlHttp.responseXML) Then
    Dim xPE
    ' Valid XML was not passed back. Get a string error
    ' describing the error
    Set xPE = xmlDoc.parseError
    With xPE
    glbErrorMsg = "Your XML Document failed to load" & _
    "due the following error." & vbCrLf & _
    "Error #: " & .errorCode & ": " & xPE.reason & _
    "Line #: " & .Line & vbCrLf & _
    "Line Position: " & .linepos & vbCrLf & _
    "Position In File: " & .filepos & vbCrLf & _
    "Source Text: " & .srcText & vbCrLf & _
    "Document URL: " & .URL
    End With
    Exit Function
    End If
    ' look for an error node at the top level
    Set errorElement = xmlDoc.selectNodes("/*/Error")
    If errorElement.length > 0 Then
    glbErrorMsg = errorElement.item(0).Text
    Exit Function
    End If
    ' If we get here then everything succeeded
    SendXML = True
    End Function
    Thanks for your help. It's much appreciated.

  • XMLDataSet Refuses To Show Me The Data In IE7

    Hi, I tried to create a test application that shows the
    contents of a directory, using Spry + HTML + PHP.
    I run the following page (see end of post) from the test
    server (it's all Hand coded - no DW suport for spry, no sites
    defined - nothing).
    In FF2 everything works like a charm. In IE7, though, the
    table and generaly the contents inside <div
    spry:state="ready"> will not show what so ever, and only what's
    inside <div spry:state="loading"> is shown ...
    The src to the scripts is ok, and they load fine. The xml
    document is validated ok (I loaded it using MSXML2.DOMDocument in
    IE7 and it parsed ok).
    I don't have the slightest idea as what's wrong with it in
    IE7. Can someone help ?
    Thanks
    P.S.: I've tried to delete the table and leave the
    spry:state="ready" region empty with a text message. Still no
    results.
    ______________________ PAGE CODE ______________________
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Directory Listing</title>
    <meta http-equiv="content-type" content="text/html;
    charset=utf-8" />
    <link rel="stylesheet" media="all" type="text/css"
    href="../../styles.css" />
    <script language="javascript" type="text/javascript"
    src="../../_spry/includes/xpath.js"></script>
    <script language="javascript" type="text/javascript"
    src="../../_spry/includes/SpryData.js"></script>
    <script language="javascript" type="text/javascript">
    <!--
    var dsFileList = new Spry.Data.XMLDataSet(
    "./get.directory.sck.php", "directory/entry" , {sortOnLoad :
    "text()"} );
    //-->
    </script>
    </head>
    <body>
    <div spry:region="dsFileList">
    <div spry:state="loading"><div class="WindowFrame
    Loading">Loading</div></div>
    <div spry:state="failed"><div class="WindowFrame
    Error">Error</div></div>
    <div spry:state="ready">
    <table class="TabularList" cellpadding="2"
    cellspacing="1">
    <tr class="Headers">
    <th style="width: 30px"> </th>
    <th spry:sort="text()">File Name</th>
    <th style="width: 100px"
    spry:sort="@type">Type</th>
    <th style="width: 100px" spry:sort="@size">File
    Size</th>
    </tr>
    <tr class="Row" spry:repeat="dsFileList"
    spry:hover="RowHover" spry:select="RowSelect">
    <td><img src="../../images/{@icon}_ico.gif"
    class="FileIcon" /></td>
    <td>{entry}</td>
    <td>{@type}</td>
    <td>{@size}</td>
    </tr>
    </table>
    </div>
    </div>
    </body>
    </html>

    Don Hi,
    I understand what you say... I've forced
    header("Content-type: text/xml; charset=utf-8") in the php page /
    xml provider and added a <?xml .... header for that particular
    reason.
    When I open the xml data provider directly from IE7 it shows
    (highlights and acts) as xml file. When I create an
    ActiveXObject("MSXML2.DOMDocument") and load the provider with it
    (xmlDoc.load()) it's loaded and parses fine (I imagine that you use
    this object in spry & IE). I don't think it's the xml, but I
    could be wrong.
    The problem happens when it's fed to the XMLDataSet and only
    in IE7. The dataset shows the contents of the spry:state="loading".
    Also, the spry file I've downloaded is spry_p1_5_051707.zip.
    I've downloaded it 3-4 days ago so it must be the most recent
    version.
    I've set up a public version of the script at
    http://b-sides.quadelectra.com/spry_filelistscript/app/pages/files/
    in order to give you an idea....
    Something i forgot to mention: The examples that go with the
    SDK work fine (with IE & FF). It could be that I'm doing
    something wrong. On the other hand I ve checked, rechecked and
    re-rechecked everything and I can't seem to find any bugs.
    Thanks.

Maybe you are looking for

  • I can't airplay DVD's to my TV from my Mac, it just looks like a chess board, Help

    As above, iv tried Vlc but im a mong and cant work out how to get the dvd to play after downlaoding the software, iv gone to settings and changed the Cd DVD setting to Vlc but i still wont work, please help

  • Trouble with ipv6

    Having trouble with this it is showing no internet access how do I enable this?

  • Replace 4K screen with FullHD screen

    Hello,I bought a LenovoY50 with 4k screen on an amazon sale for 800 euros but after half a year im annoyedf because of the 4K screen. Now i would like to know if i can replace the 4K screen with a FullHD IPS Screen? Thanks.

  • Double Clicking files in Explorer won't open them in PS

    Since I upgraded from Photoshop CS3 to CS5, I have been unable to open JPGs and GIFs by double clicking on them in WIndows Explorer -- though it will open PSD files that way.  When I double-click a GIF or JPG file, it brings up the window asking what

  • Might be a dumb question, but I'll ask anyway.

    I just changed my ISP and would like to change my email address on my iTunes account. How would I go about doing that? Thanks for your help. If this post belongs elsewhere, please feel free to move it.