Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.