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

Similar Messages

  • 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 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

  • 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

  • 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

  • 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.

  • BI  Testing tools - How to use

    Hi Gurus,
    Please let me know  how to use Testing tools in BI.
    1. how to do Stress test in BI
    2. Performance test in BI using tools.
    3. How to do Regression testing.
    Can you please let me know if you have any documents related to this. also please provide me the related sites.
    Thanks in advance

    Hi,
    BW Quality Testing
    We have not used any tool like Mercury Quality center for testing. In our case we created some test scripts and based on that we proceeded further.
    All the testing is done in quality before moving into Prod.
    Testing like Integration and unit testing are done in quality.
    You need to test if the extractions are working fine, data is getting loaded into targets, post load activities like activation, rollup, compression etc are successful etc.
    We test the PC chains also in Quality.
    We schedule / trigger the chains and monitor them. We ensure that all the process types are happening successfully.
    One major area we concentrate on is to identify decencies in the chain. This will ensure less errors and also reduce chain timings by a great extend. Dependencies should be kept to a minimum wherever possible.
    Also in cases where we use events/third party scheduling tools to trigger BW chains we check that out.
    Executing reports to check the definitions are correct.
    The volume of data will be lesser in Quality compared to prod.
    Also activities like Change runs, Deletion, Selective deletion etc are done.
    Almost all the activates in Prod are done in Quality.
    Refer.
    Re: Quality System
    Re: bw developer_unit_integration_testing
    Integration Testing
    http://www.sap-img.com/general/role-of-sap-consultant-in-testing.htm
    integration testing
    SAP testing
    SAP Testing
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e5d8d390-0201-0010-e284-e418e3f0e150
    Can any one explain about the SAP Testing process in Implementation Project
    BI 7.0 Test cases
    /thread/796460 [original link is broken]
    Vvv imp*****
    Purpose;
    During the entire life cycle of a SAP solution, it is necessary to test the functions and performance of your solution. With the SAP Test Workbench, SAP provides you with an environment for all test phases, which you can use for testing in the following cases:
    u2022 Implementation of SAP solutions
    u2022 Integration of new components and business scenarios
    u2022 Customer developments
    u2022 Function tests
    u2022 Integration tests with other components
    u2022 Upgrades, regression tests
    u2022 Importing support packages
    Integration
    The SAP test tools are
    Test Workbenchu2014(http://help.sap.com/saphelp_nw04/helpdata/en/3c/aba1d2413911d1893d0000e8323c4f/frameset.htm)
    Extended computer Aided tools
    (http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm)
    and Computer Aided Test Tool
    (http://help.sap.com/saphelp_nw04/helpdata/en/ae/410b37233f7c6fe10000009b38f936/frameset.htm) are part of the SAP Web Application Server.
    Features
    Test Preparation
    u2022 Creation of manual and automated test cases
    u2022 Management of manual and automated test cases
    u2022 Creation of test plans
    u2022 Definition and management of test series
    Test Execution
    u2022 Execution of mass tests using Extended Computer-Aided Test Tool and Computer Aided Test Tool
    u2022 Integration of test cases and test scripts of non-SAP providers
    u2022 Assignment of work lists (test packages) to individual testers
    Test Evaluation
    u2022 Permanent overview of test progress and test results
    u2022 Complete documentation of test processes in the test plans (test cases, test case descriptions, test results, test case notes, error messages)
    u2022 Detailed tabular and graphical evaluation of all test plans
    u2022 Export of test results to Office applications
    u2022 Message processing
    For the BP ;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60981d00-ca87-2910-fdb8-d4a2640d69d4
    Presentation
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6397d490-0201-0010-a0ae-f3d09c02fc11
    Other links
    http://help.sap.com/saphelp_nw04s/helpdata/en/70/f6d53f41adea34e10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0477d70-5082-2910-e49a-e53ea6d4c893
    How to Reconcile Data Between SAP Source Systems and SAP NetWeaver BI
    Can any one explain about the SAP Testing process in Implementation Project
    Regards
    Tg

  • Where is the "Load Testing Tool" ?

    Anyone where I can download the "Load Testing Tool" which is mentioned in the below page?
    Adobe Flash Media Server Tools
    Use these tools to assist you in managing your server: FMSCheck, FLVCheck, Load Testing Tool, F4V Post Processor Tool, Sample Video player with Dynamic Streaming support, and the Administration Console.
    http://www.adobe.com/support/documentation/en/flashmediaserver/
    The "Load Testing Tool" didn't show on "Adobe Flash Media Server productivity tools and sample downloads" page.
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=fms35

    I think that section needs to be corrected - Adobe as of now does not support or have any FMS load testing tool. Thanks for pointing this out so that we can correct the same. Sorry for inconvenience caused.

  • WS-I test tool - monitor config to connect to IBM registry gives problems

    hi,
    We have developed UDDI Registry provider implementing JAXR APIs. We want to test it for interoperability using WS-I test tools.
    I have downloaded and run monitor and analyzer tools of WS-I. Thing is when I try to use IBM public registry (UDDI), I am not able to configure it properly in monitorConfig.xml file provided by WS-I test tools.
    I am doing something like this:
    <wsi-monConfig:redirect>
    <wsi-monConfig:comment>JAXR HTTP Listner.</wsi-monConfig:comment>
    <wsi-monConfig:listenPort>8090</wsi-monConfig:listenPort>
    <wsi-monConfig:schemeAndHostPort>http://uddi.ibm.com</wsi-monConfig:schemeAndHostPort>
    <wsi-monConfig:maxConnections>1000</wsi-monConfig:maxConnections>
    <wsi-monConfig:readTimeoutSeconds>30</wsi-monConfig:readTimeoutSeconds>
    </wsi-monConfig:redirect>
    If any one has any idea regarding the same, please guide me.
    thanks & regards,
    - Gunjan

    <wsi-monConfig:schemeAndHostPort>http://uddi.ibm.com</wsi-monConfig:schemeAndHostPort> should specify host and port. In your case, it is specifying the host only. Also, you need to make sure your proxy host & port are set correctly in your monitor script.
    Post your JAX-RPC related questions to [email protected] for a quicker resolution.
    Send an email to [email protected] to subscribe to the alias.
    Send an mail to [email protected] for a complete list of help commands.
    Thanks,
    -Arun

  • Forms and Reports: Automated Test tools - functionality AND performance

    All,
    I'm looking to get a few leads on an automated test tools that may be used to validate Oracle forms and reports (see my software configuration below). I'm looking for tools that can automate both functional tests and performance. By this I mean;
    Functional Testing:
    * Use of shortcut keys
    * Navigation between fields
    * Screen organisation (filed locations)
    * Exercise forms validation (bad input values)
    * Provide values to forms and simulate user commit, and go and verify database state is as expected
    Performance Testing:
    * carry out tests for fixed user load
    * carry out tests for scaled step increase in user load
    * automated collection of log files and metrics during test
    So far I have:
    http://www.neotys.com/
    Thanks in advance for your response.
    Mathew Butler
    Configuration:
    Red Hat Enterprise Linux x86-64 architecture v4.5 64 bit
    Oracle Application Server 10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle Developer Suite (Oracle Forms and Reports) V10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle JInitiator 1.3.1.17 or later
    Microsoft Internet Explorer 6

    are there any tools for doing this activity like oracle recommended tools?
    Your question is unclear.  As IK mentioned, the only tool you need is a new version of Oracle Forms/Reports.  Open your v10 modules in a v11 Builder and select Save.  You now have a v11 module.  Doing a "Compile All PL/SQL" before saving is a good idea, but not required.  The Builders and utilites provided with the version 11 installation are the only supported tools for upgrading your application.  If you are trying to do the conversion of many Forms files in a scripted manner, you can use the Forms compiler in a script.  Generating new "X" files will also update the source modules (fmb, mmb, pll).  See MyOracleSupport Note 955143.1
    Also included in the installation in the Forms Migration Assistant.  Although it is more useful to people coming from older versions, it can also be used to move from v10 to 11.  It allows you to select more than one file at a time.  Documentation for this utility can be found in the Forms Upgrade Guide.
    Using the Oracle Forms Migration Assistant

  • Sending a dom via http Post

    Hi,
    for some reason unknown to me whenever I try to send a dom via http Post I get the following error:
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
    This is the source code:
    package com.cyberrein.payunion.transaction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    //xml lib
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    //weblogic xml lib
    import weblogic.apache.xerces.dom.DocumentImpl;
    import weblogic.apache.xml.serialize.DOMSerializer;
    import weblogic.apache.xml.serialize.XMLSerializer;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    public class Xmltest extends HttpServlet {
    //Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    //Process the HTTP Request
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // Retrieve transaction data from HttpServletRequest.
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setValidating(false);
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document docIn = db.parse(request.getInputStream());
    String code = "XX";
    String tranID = "000000";
    String message = "This Card Is Invalid. Transaction Discontinued";
    //Output dom
    Document docOut = new DocumentImpl();
    Element e = (Element)docOut.createElement("TransactionResponseData");
    e.setAttribute("Code", code);
    e.setAttribute("TransactionID", tranID);
    e.setAttribute("Message", message);
    docOut.appendChild(e);
    FileOutputStream fos;
    fos = new FileOutputStream("/victory");
    DOMSerializer serX = new XMLSerializer(fos,null);
    serX.serialize(docIn);
    DOMSerializer ser = new XMLSerializer(response.getOutputStream(), null);
         ser.serialize(docOut);
         } catch (Throwable e) {e.printStackTrace();}
    //Get Servlet information
    public String getServletInfo() {
    return "com.cyberrein.payunion.transaction.Xmltest Information";
    package com.cyberrein.payunion.transaction;
    import org.w3c.dom.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    import org.xml.sax.*;
    import java.net.*;
    import java.io.*;
    public class CardClient {
    private String sURI;
    public BufferedReader in
    = new BufferedReader(new InputStreamReader(System.in));
    public CardClient(String serverURI) {
    sURI = serverURI;
    public Document test(){
    Document docIn = null;
    try
    //XML Document impl
         docIn = new DocumentImpl();
    //Create the root element
         Element t = docIn.createElement("TransactionData");
    Element k = docIn.createElement("Payunion.com");
    k.appendChild( docIn.createTextNode("North American server") );
    t.appendChild(k);
    //Set attributes
    t.setAttribute("cardnumber", "4444444444444444");
    t.setAttribute("amount", "3000.67");
    t.setAttribute("name", "tolu agbeja");
    t.setAttribute("cvv2", "001");
    t.setAttribute("pu_number", "ejs:pupk:23456");
    t.setAttribute("expirydate", "0903");
    t.setAttribute("address", "100 peachtree industrial");
    t.setAttribute("zipcode", "30329");
    docIn.appendChild(t);
    catch (Throwable te)
    te.printStackTrace();
    return docIn;
    public Document sendRequest(Document doc) {
         Document docOut = null;
         try {
         URL url = new URL("http://" + sURI);
         HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("POST");
         conn.setDoInput(true);
         conn.setDoOutput(true);
         OutputStream out = conn.getOutputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    XMLSerializer ser = new XMLSerializer( out, new OutputFormat("xml", "UTF-8", false) );
    ser.serialize(doc);
    while(!br.ready()){}
         DOMParser parser = new DOMParser();
         parser.parse(new InputSource(br));
         docOut = parser.getDocument();
    catch (Throwable et)
         et.printStackTrace();
         return docOut;
    public static void main(String []args)
    CardClient c = new CardClient("cyber1:7001/xmltest");
    try
    Document doc = c.sendRequest(c.test());
    Element responseMessage = (Element)doc.getElementsByTagName("TransactionResponseData").item(0);
    String message = responseMessage.getAttribute("Message");
    String tranID = responseMessage.getAttribute("TransactionID");
    String code = responseMessage.getAttribute("Code");
    System.out.println(message);
    System.out.println("");
    System.out.println("The Response Code Is: "+code);
    System.out.println("");
    System.out.println("The Transaction ID Is: "+tranID);
    catch(Exception ex)
    ex.printStackTrace();
    All comments will be appreciated!!

    Hi, thanks for your reply i knew the FileUplaod was the way forward.
    I read topics advising to use the FileUpload and tried the following but it did not seem to work ( i get an HTTP Internal Server error when i try that):
    try
    DiskFileUpload upload = new DiskFileUpload();
    boolean isMultipart = FileUpload.isMultipartContent(request);
    if( isMultipart )
    List items = upload.parseRequest( request );
    Iterator iter = items.iterator();
    while( iter.hasNext() )
    FileItem fileItem = ( FileItem ) iter.next();
    File uploadedFile = new File("myreceivedfile.zip");
    fileItem.write( uploadedFile );
    }catch (Exception e)
    System.out.println("RECEIVER: " + e.getMessage());
    Also DiskFileUpload,isMultipartContent and parseRequest have a line going through the middle (horizontal middle).
    Edited by: Overmars08 on Jun 23, 2009 5:35 AM
    Edited by: Overmars08 on Jun 23, 2009 5:36 AM

  • What are the IEDriver version requirements for using Microsoft Webdriver tool with a selenium based test tool?

    Hi,
    We are using IEDriver 2.44.0 with microsoft webdriver tool Windows7-KB2990999-x64.msu update with IE11.
    Using IMPLEMENTATION=VENDOR, we are not able to get this IEDriver version working with out selenium based test tool, with or without microsoft webdriver tool.
    I can see the driver IMPLEMENTATION set to VENDOR in the log, it also brings up the browser, but gets stuck there.Is this a known issue?ThanksTanvi

    Selenium is a third party software, so it is not supported in MSDN forum. It would be better consult to selenium's office website or forum. Some placa like here:
    http://www.seleniumhq.org/support/
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Are there any good black box testing tools for j2me?

    Is there any good testing tools available for testing software on physical mobile devices?
    I would like to partially replace manual testing with automated testing using a test tool. It should work on physical devices, and with the help of a script it should be possible to execute predefined sequences of button pressings on the device. Preferably there should also be some way of deciding whether the test was a succes without having to do so entirely manually.
    The purpose with this would be to make it easier to go through the test protocols, which has to be done before every new software release.
    Deviceanywhere.com looks promising at first glance but it is rather costly. Still, does anyone have an opinion of it?
    Does anyone has experience of Mobile junit for this kind of testing? Is it possible to define series of physical button pressings with it? At first glance it doesn't seem so.

    You can collect the Organizational Health in Exchange 2010 console for Exchange 2003/2007/2010 and that will list very useful information about statistics in your organization like servers, databases, CALs, recipient, feature used etc...
    Collect Organizational Health Data -
    http://technet.microsoft.com/en-us/library/dd351156%28v=exchg.141%29.aspx
    However it doesn't contain any configuration information and that you need to collect it manually because that depends on needs of each organization and how they want to setup their infrastructure...

  • Specify file name of the document returned on the HTTP post

    Hello,
    we are submitting a PDF form by calling submitForm function:
    doc.submitForm
            cURL: "http://localhost/script",
            cSubmitAs: "XML"
    The server returnes data of type "Content-type: application/pdf" and as a result this aplication/pdf data is displayed in a new window in Acrobat Reader.
    The document in new window has name e.g. A9R3347.tmp, is it possible to force some concrete name ?
    We tried to send from server the http header:
    Content-Disposition: attachment; filename=\"custom_name.pdf\"
    or   
    Content-Type: application/pdf;         filename=custom_name.pdf
    but non of this works.
    1/ is it possible to set some custom name of the document, which is returned from a server in response of HTTP Post submit ?
    2/ is it possible to return other kind of data then application/pdf ? ( my tests with AR 9.3 with other formats failed).
    Thanks for any advice.

    See Oracle Metalink,
    ..Oracle Portal Technical Forum,
    ....Subject: PORTAL - uploading files (file attachments) with file names.
    This message thread outlines javascript code that automatically captures the filename during an upload.

Maybe you are looking for

  • GET FILE NAME C:\temp\ADIBO.txt

    Hi, How to get file name? I used Get_File_NAME, but I'am getting an error. lv_lfilename is not the type LOGICAL_FILENAME C:\temp\ADIBO.txt I need to get  ADIBO ?? tnh, Adibo..:) I am using this code to download file and after that I need to get FILE_

  • FCP 4 can it produce 16:9 letter box or anaorphic shots to DVD & 35mm film

    I'm going to shoot a feature length movie in the near future. I have the anamorphic lens and will purchase the wide-angle lens for my Panasonic DVX-100A. I'm considering upgrading to the G5 with the latest Final Cut Pro software, probably DVD Studio

  • Ask - how to draw diagonal border on XMLPublisher report?

    Hi all, I need to draw diagonal border on my XML Publisher report. xsl attributes I tried are: <xsl:attribute xdofo:ctx="block" name="border-diagonal">1pt solid #000005</xsl:attribute> <xsl:attribute xdofo:ctx="block" name="border-diagonaldown">1pt s

  • 1074396157 - Unlicensed copy of NI Vision reported when attempting to deploy application

    I'm running into an error (1074396157) while trying to run a LabVIEW EXE on a target system. From other posts related to this error it sounds like I might be missing something to do with the Vision Development Module, however, I don't see where I can

  • Adding dynamic images to your website using Dreamweaver

    Hi I've been working on a website which has been in use by public for some months now. I recently wanted to add a simple product catelogue.   I can do this just by creating my database connection and using the recordsets. However I wanted to add an i