Http Post to XI Test Tool in Java?

I have been able to use the HTML test tool shared on SDN for my scenarios to date, but I have been <u>also</u> trying to write an http post program in java.  For some reason the post never makes it to XI.  Does anyone have a sample they will share or notice any problems with this code?
Thanks.
import java.net.*;
import java.io.*;
public class Reply {
  private static String myUrl = "http://sr3a80px:8000/sap/xi/adapter_plain?service=PAN_HOTKEY&namespace=http://graybar.com/sandbox/hotkeyoutbound&interface=PANRequestAbstractInterfaceAsync&party=Panduit";
  public static void main(String[] args) {
    try {
    URL u = new URL(myUrl);
    URLConnection uCon = u.openConnection();
    HttpURLConnection connection = (HttpURLConnection) uCon;
    connection.setDoOutput(true);
    connection.setRequestMethod("POST");
    OutputStream out = connection.getOutputStream();
    OutputStreamWriter wout = new OutputStreamWriter(out, "UTF-8");
    wout.write("<?xml version=\"1.0\"?>\r\n");
    wout.write("<ns0:hotkeyOut_PAN_MessageType           
      xmlns:ns0=\"http://abc.com/hotkeyoutbound\">\r\n");
    wout.write("<RequestAvailability>\r\n");
    wout.write("<Date>20050919</Date>\r\n");
    ...(rest of my xml)...
    wout.flush();
    out.close();
    catch (IOException e) {
     System.err.println(e);
     e.printStackTrace();
  } // end of main
} // end of class

cleaning up old ticket...never got this working, but tested another way

Similar Messages

  • HTTP sender, difference between test tool and own application

    Hello,
    we are using HTTP test tool to connect to XI and send a flat file to a directory. Only a small test!
    OK, using the test tool offered here in the SDN, we are successful connecting to XI. SXMB_MONI shows a good result.
    But using another HTTP application we get an error back:
    error code 404; resource not found
    This is what we use in the HTTP application:
    http://test.com:8070/sap/xi/adapter_plain?namespace=http://test.com/sandbox&interface=HTTP_TEST_OUTBOUND&service=HTTP_service_test&sap-user=xiappluser&sap-password=secret&sap-client=001&sap-language=EN&QOS=EO
    I tried to have a look at the threats here but did not find something I could use.
    Who could help?
    Best regards
    Dirk

    Hi,
    Just out of curiosity.. is ur client no. <b>001 or 100</b>..?
    U can refer to the following weblog for prgramatically connecting to XI server from a java applciaiton...
    <i>Connecting to XI server from Webdynpro</i>
    /people/sap.user72/blog/2005/09/15/connecting-to-xi-server-from-web-dynpro
    hope this helps...
    Cheers,
    Siva Maranani.

  • Please suggest me Any Java Software Testing Tool

    my application has many customize UI Swings components, so please specify any suitable testing tool for Java Desktop apllication

    Jemmy
    Abbot (and Costello)
    JFCUnit

  • How to send a String to a Servlet using a HTTP POST

    Well, I have designed a servlet that receives a HTTP POST, I was testing it using an HTML form to send (using POST) information, now, I have coded a Java App to send it a string, I don't know how to make the servlet recognize that info so it can make its work, I am posting both codes (Servlet & API) so anyone can guide me and tell me how and where to modify them
    Servlet:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class xmlwriter extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadena = req.getParameter("cadena");
    File f1 = new File ("c:/salida.xml");
    FileWriter out = new FileWriter(f1);
    f1.createNewFile();
    out.write(cadena);
    out.close();
    salida.println("OK");
    Now, the JAVA API is:
    import java.io.*;
    import java.net.*;
    public class HTTPSender {
    public static void main(String[] args) throws Exception {
    URL url1 = new URL
    ("http://localhost:8080/XMLSender/xmlwriter");//internal site
    URLConnection UrlConnObj1 = url1.openConnection();
    HttpURLConnection huc1 = (HttpURLConnection)UrlConnObj1;
    huc1.setRequestMethod("POST");
    huc1.setDoOutput(true);
    huc1.setDoInput(true);
    huc1.setUseCaches(false);
    huc1.setDefaultUseCaches(false);
    String cadena = ""
    + "<root>\n"
    + "<tlf>$TLF$</tlf>\n"
    + "<op>$OP$</op>\n"
    + "<sc>$SC$</sc>\n"
    + "<body>$BODY$</body>\n"
    + "</root>";
         PrintWriter out = new PrintWriter(huc1.getOutputStream());
    System.out.println("string="+cadena);
    out.write(cadena);
    out.close();
    I'm a JAVA newbie, so, maybe I'm getting a bad idea of what I need to do, anyway, every (detailed) help is welcome. What my servlet should do (and it doesn't when I send the message through the API) is to write a file with the info received.

    I'm not trying to send a string from a WEB Page, I'm tryring to send it using a JAVA program, I mean, using a HTTPSender, in fact, I already have made the code to do that:
    import java.io.*;
    import java.net.*;
    public class HTTPSender {
    public static void main(String[] args) throws Exception {
    try {
    String cadena = "Message to be written";
    // Send data
    URL url = new URL("http://localhost:8080/XMLSender/xmlwriter");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(cadena);
    wr.flush();
    // Get the response
    BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String line;
    while ((line = rd.readLine()) != null) {
    // Process line...
    wr.close();
    rd.close();
    } catch (Exception e) {
    And modified my servlet so it can receive anything:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class xmlwriter extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadena = req.toString();
    File f1 = new File ("c:/salida.xml");
    FileWriter out = new FileWriter(f1);
    f1.createNewFile();
    out.write(cadena);
    out.close();
    salida.println("OK");
    Now the problem is that, the servlet in fact DOES create the file, but....the file is empty, that means that no info is arriving to the servlet, why?, how should I send it then? I repeat FORGET about a Web Page Form, that is in the past and I don't need that.

  • Which Test Tool do you use?

    Is there any Test Tool for Java? I know there is JUnit. Alought it is free, it is not easy to use. I am looking for a tool that can test java code and monitor java application's memory. It can be business software or free.

    Is there any Test Tool for Java? I know there is
    JUnit. Alought it is free, it is not easy to use. No harder than any other Java class. What's so hard?
    I am looking for a tool that can test java code and
    monitor java application's memory. It can be business
    software or free.JVMStat from sun can monitor application memory. But that's not a test tool in the same sense that JUnit it.
    TestNG is another one like JUnit, but if you don't like one you're likely to feel the same about the other.
    %

  • 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

  • HTTP Post test tool

    I saw a recent post from Sridhar with sample code for running HTTP post. I unable to cut and copy as I miss data. Can you send me this file as an attachment.
    email: [email protected]
    Thank you,
    Pam

    I saw a recent post from Sridhar with sample code for running HTTP post. I unable to cut and copy as I miss data. Can you send me this file as an attachment.
    email: [email protected]
    Thank you,
    Pam

  • HTTP to File Scenario: execute Test Tool (html) but any received message?

    Hi all,
    I have configured the HTTP to File scenario in SAP XI 7.0. When i execute the Test Tool (HTTP_Client_Adapter.html), i don't see any message in the XI Server. I don't know the Test Tool which i used for the test work correctly, because when i clicked on 'Send' button, i don't get any message in the XI Server?
    The Configuration Scenario is OK when executing the Configuration Test in ID.
    Could you please tell me how i can know the Test Tool is execute correctly?
    The Test Tool which i used in the link below:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Thanks a lot in advance,
    Vinh Vo

    HI,
    In XI You can go to RWB (from XI server homepage)->Comp Monitoring -> Display All ->Int Server-> Int Engine
    In the bottom, you find 3 tabs, select the test message tab to post messages.
    Pls note that, when you need to test, you should have created the scenario in IR/ID (and u can use the details of Receiver Determination ID) to fill in the details.
    You can refer this:
    /message/266750#266750 [original link is broken]

  • Where can i fing HTTP test tool/ client http adapter?

    Hi,
       Where can I find http test tool/ http adapter client tool? So that I can sedn messages to XI. Appreciate for your response.
    Thanks,
    Mallikarjun.M

    Hi,
    In XI You can go to RWB (from XI server homepage)->Comp Monitoring -> Display All ->Int Server-> Int Engine
    In the bottom, you find 3 tabs, select the test message tab to post messages.
    Pls note that, when you need to test, you should have created the scenario in IR/ID (and u can use the details of Recr Determination ID) to fill in the details.
    As Chandra Mentioned you can use Stephan's code.
    Hope this helps
    Regards
    Agasthuri Doss

  • Http post to a url from a WebDynpro (Java) application

    Hi,
    I want to send http post parameters to a url from a WebDynpro (Java) component. I need to do this to send OCI catalog data back to SAP SRM.
    I found this thread:
    HTTP Post
    which suggests to use the the Suspend plug for this purpose.
    <quote>
    Sending POST parameters with Web Dynpro Suspend Plugs
    1) Define a an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map
    </quote>
    After adding the postParams parameter of type java.util.Map to the Suspend-plug the WebDynpro gives the following error during build:
    Outbound plug (of type 'Suspend') 'suspend_plug' may have at most two parameters: 'url' of type 'string' and 'postParams' of type 'Map'.
    I use SAP NetWeaver Developer Studio version 7.0.16.
    Does someone know a solution? I would highly appreciate it.
    Thanks in advance.
    Eric

    Hi,
    Please have a look at this thread,
    Pass Table as Input to Adaptive RFC
    Regards,
    Saravanan K

  • HTTP POST with Java? (Submit file)

    I want to submit a file to a web service using Java, specifically the JXXX Compiler Service (http://www.innovation.ch/java/java_compile.html). It seems like the page uses HTTP POST. How can I do this?
    Any help would be appreciated.

    I suggest you ask them you question.
    Have you read the instructions on how to use it.
    http://www.innovation.ch/java/java_comp_instr.html

  • Java HTTP Post Raw Data

    Hi All,
    I'm looking to make an HTTP post request given the raw data that I have. I've spent a while looking for the solution, made a handful of attempts and I'm looking for a little bit of help. The PHP code for what I'm looking to do looks like this:
    <?
    $url="http://localhost:3009";
    $postdata="<?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <hi></hi>";
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
    $result = curl_exec($ch);
    curl_close($ch);
    echo($result);
    ?>
    My attempt was this:
         private String setXmlPostHeader(Document doc, PostMethod postMethod) throws java.io.IOException, java.io.UnsupportedEncodingException, javax.xml.transform.TransformerException
              ByteArrayOutputStream xmlBytes = new ByteArrayOutputStream();
              XML.serialize( doc, xmlBytes );
              final byte[] ba = xmlBytes.toByteArray();
              String data = new String(ba, "utf-8");
              InputStreamRequestEntity re = new InputStreamRequestEntity(new ByteArrayInputStream(ba));
              postMethod.setRequestEntity(re);
              postMethod.setRequestHeader("Content-type", MediaType.XML.toString() + "; charset=UTF-8");
              return data;
    And then executing the postMethod, but this simply is a post containing no data. Does anyone see anything wrong that I'm doing? Is there an easy way to set the raw http post data in java like there is in php? Thanks.
    -Ken

    Look at the PostMethod documentation. You need to set the multipart request.

  • Java and Http posting through Peoplesoft.

    Hello everyone, not sure if you can help, but any input or ideas would be appreciated because I ran out of ideas.
    I created a java file that connects to a xyhtos server (WebDAV connection). The reason of this project is to be able to upload files to the xythos repository via peoplesoft pages. Uploading the files is fine and works great.
    My problem is getting a ticket from it. (A ticket is a string that is appended in the url of the document that is being requested without having the user login to xythos). To get such ticket I need to send login information to the server via a post method. The userid/password needs to be sent through a string that is base64Encode.
    When I execute this method the xythos server does not receive login information.
    Now here is the strange part, if I execute the same Java program from a Unix command line, with the same parameters, it performs beautifully.
    I'm wondering if there is something extra that I need to do when running this java program through PIA. Or if the peoplesoft server needs to be configured a certain way to allow such methods.
    If you need me to be more specific or anything that could help you help me, please post. I'm desperate.
    Thank you.

    HI Jim, thank you for replying.
    Unfortunately I can't tell exactly how it's posting because I'm using a package created by another department I work with. If I need to upload a file, delete a file, create directories, all of that is fine. The only trouble is requesting a ticket from xythos. I think for that function it is doing an http post, but not positive. The response I get from the server is
    <html><title>Error 401</title><body>
    Error: 401
    <BR><H1>Forbidden</H1><BR>That action is not authorized. Please ensure that you are authenticated.<BR>
    <p><p></p></p>
    </body></html>
    I just don't understand why through the command line of unix it works and PIA it doesn't. Very strange.

  • Kerberos Ticket via Java to BW to access BW Querys with HTTP POST

    Hi and thanks for reading,
    im Working with 2004 and the NWDS SP10. We have a project which must show some reports from the HR system via backend and some BW Reports done with Web Application Designer 3.5.
    The user of the project application is able to select personnel numbers or org units in a tree UI element. At design time we do not know hwo many of each he might select (could be a couple of hundreds or even more).
    A URL isn't long enough to support our needs (255 characters border)
    A consultant said that we should use HTTP Post with a Form. He gave me an example like this
    <HTML>
    <BODY>
    <form name="querySelektion" action="<system name>" method="POST">
              <input type="submit" value="Formular senden" />
              <!-- Template Parameter -->
              <input name="SAP-LANGUAGE" type="hidden" value="D" />
              <input name="PAGENO" type="hidden" value="1" />
              <input name="CMD" type="hidden" value="LDOC" />
              <input name="TEMPLATE_ID" type="hidden" value="Z_TEST_AX" />
              <!-- Selektionsparameter -->
              <input name="var_name_1" type="hidden" value="H1_ORGST" /></td>
              <input name="VAR_NODE_IOBJNM_1" type="hidden" value="0ORGUNIT" />
              <input name="var_value_ext_1" type="hidden" value="50058503" />
         </form>
    </BODY>
    </HTML
    This is working beside the fact that i have to fill in my BW username and password. I translated this to Java with  the Jakarta HTTP Librarys into the following code.
    try
                HttpClient httpClient = new HttpClient();
                PostMethod post = new PostMethod("http://<system name>");
                NameValuePair[] data =
                        new NameValuePair("SAP-LANGUAGE", "D"),
                        new NameValuePair("PAGENO", "1"),
                        new NameValuePair("CMD", "LDOC"),
                        new NameValuePair("TEMPLATE_ID", "Z_TEST_AX"),
                        new NameValuePair("var_name_1", "H1_ORGST"),
                        new NameValuePair("VAR_NODE_IOBJNM_1", "0ORGUNIT"),
                        new NameValuePair("var_value_ext_1", "50058503")};
                post.setRequestBody(data);
                int iReturnCode = httpClient.executeMethod(post);
                wdContext.currentContextElement().setTextView(Integer.toString(iReturnCode ));
                post.releaseConnection();
            } catch (IOException ioe)
                wdContext.currentContextElement().setTextView(ioe.getMessage());
    All i get is an Error 401 which means "Not Authorized". The Portal (where the application is running) and the BW do both support Single Sign On and the BW System is configured in the Portal.
    I think the HTTP Post is to generic. I also think that i need to make a authorization before and post the Kereberos Ticket to the BW before.
    But how can i accomplish that? Is there a SAP HelperClass to configure or establish system connections of SSO enabled systems?
    Or is the approach with the HTTP Post in java wrong, maybe there is an easier way to do transfer a lot of personnel or orgunit numbers to the BW Query?
    Thanks in advance,
    Kai Mattern

    Since you mentioned, I now tried to modify the writeToFile method in a few ways (closing the streams, directly setting them to null...), but the "java.lang.IllegalStateException: Already connected" exception remains there
    Actually I suppose this has no effect on the originally reported cookie problem, because if I just completely remove this logwriting (+ the following URL disconnect-reconnect) from the code, the situation is the very same
    I paste my modified writeToFile method anyway, maybe you can tell what I do wrong here, and I can learn from that
        public void writeToFile ( HttpURLConnection urlConnection, String filename ) {
          try {
            BufferedReader bufferedReader = null;
            InputStreamReader inputStreamReader = null;
            // Prepare a reader to read the response from the URLConnection
            inputStreamReader = new InputStreamReader(urlConnection.getInputStream());
            bufferedReader = new BufferedReader(inputStreamReader);
            String responseLine;
            PrintStream printStream = new PrintStream(new FileOutputStream (filename));
            // Read until there is nothing left in the stream
            while ((responseLine = bufferedReader.readLine()) != null)
                printStream.println(responseLine);
            inputStreamReader.close();
            bufferedReader.close();
            inputStreamReader = null;
            bufferedReader = null;
            printStream.close();
          catch (IOException ioException) { /* Exception handling */ }
        } //writeToFile()

  • About HTTP Test Tool

    Hi Experts,
    I have a doubt , If we r implementing a HTTP To RFC Scenario
    We have to send the data through  HTTP Test Tool .
    Is there any connection we have to establish in between these Tool and XI.
    How it wil get connect to the Xi Integration Server.
    Please clarify me.
    Regards
    Khanna

    you will send http request to url like this http://host:port/sap/xi/adapter_plain?namespace=http%3A//otr.ru/gba&interface=MI_PaymentOrder_GetListByAccount_OB&service=httpTest&party=&agency=&scheme=&QOS=BE&sap-user=AUSER&sap-password=pass&sap-client=001&sap-language=EN

Maybe you are looking for

  • File problem or something.

    So I get some new CDs from my uncle and decide to put them onto my itunes. When I uplink my ipod, it stops after a while and a message pops up and says "The ipod [insert name] cannot be synced since the required file cannot be found." Also, a message

  • Is it possible to sync calenders from excel to icloud?

    Just that. My manager sends us our schedule in an excel spreadsheet form as an email. I would like to import it to me icl;oud calender so I can see when I work from any of my devices.

  • Data Entry - Crosstab Query

    Is it possible to do perform data entry in a crosstab query view?

  • PipeLine Directory in XI

    Hello All, I have small doubt relating to XI pipeline directory which is an Interview question 1>What is meant by XI Pipeline Directory ? 2>What is the basic usage of this directory and importance of it ? Best Regards Rakesh

  • Distinguishing between bookmark page and ordinary jsp

    If I bookmark a page in my project and close the browser , and again on restarting the browser viewing the same bookmark page without logging in, All the links should work. It is working , but problem arises here how to distinguish between bookmark p