Skip to Content
author's profile photo
Former Member

XI integration

Hello every one....

As doing web log scenario..BW-XI integration( how to send XML data to BW from XI ).

I configured all the steps in that web log..but final step is not woking eventhough i created html file nad xml file as per the web log ....still i'm unable send xml data.

can any body tell me how to test this scenario...sending XML data to BW..

Thanks

Anu.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 03, 2005 at 02:40 PM

    Hello.

    I'm using the code to test XI-BW integration as per the web log..

    <html>

    <head>

    <title>send XML data to BW 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 = newactiveXobject("ADODB.Stream");

    xmlstream.Mode =3; // 1= read 3=read/write

    xmlstream.open();

    xmlstream.type=1; //1=adTypeBinary 2=adTypeText

    xmlstream.LoadFormFile(mypath);

    var xmlhttp = new ActiveXobject("Microsoft.XMLHTTP");

    xmlhttp.Open("POST",mycall,false);

    xmlhttp.setRequestHeader("content-Leangth",xmlstream.Size);

    xmlhttp.setRequestHeader)"Content-Type","text/xml");

    xmlhttp.send(xmlstream.Read(xmlstream.Size));

    XIAnswer.innerHTML = xmlhttp.responceText;

    }

    //-->

    </script>

    </head>

    <body>

    <form name="myform">

    <p> path to file : </p>

    <input type = "file" name="filename" size=50 maxlength=80

    value="c:test.xml">

    <p> XI adapter parameters: </p>

    <table border=0>

    <tr><td>hostname:</td><td>

    <input type ="text" name=myhost" size=50 maxlength=100 value = " " <br/></td></tr>

    <tr><td>port:</td><td>

    <input type="text" name ="myport" size=50 maxlength=100 value = " " <br/></td></tr>

    <tr><td>Business system:</td><td>

    <input type="text" name ="my system" size=50 maxlength=100 value = " " <br/></td></tr>

    <tr><td>namespace:</td><td>

    <input type="text" name =" " size=50 maxlength=100 value = " " <br/></td></tr>

    <tr><td>interface:</td><td>

    <input type="text" name ="myinterface" size=50 maxlength=100 value = " " <br/></td></tr>

    <tr><td>quality of service (E0/BE):</td><td>

    <input type="text" name ="myqos" size=50 maxlength=100 value=E0 <br/></td></tr></table>

    <input type="button"value="Send Records" onlineclick="SendData()">

    <p>XI call:</p>

    <div id=XIAnswer></div>

    </form>

    </body>

    </html>

    But i'm unable to test the scenario..is there any other way to test this scenario?

    Thanks..

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Are you trying to send xml data to XI through http? If yes, have you tried using wfetch? WFetch makes it easy to send http requests with xml payload to xi.

      Regards,

      Suresh.