Skip to Content
avatar image
Former Member

How to test whether XI is sending file or not?

Hi all!

My scenario is like this:File(File sender Adapter)->XI->(HTTP receiver adapter)J2EE appl.

I placed the xml file in D:\somedir on my PC. It is picking up the file, after picking it should post the same xml file to my j2ee appl. My servlet receives the xml file and display it on browser. But nothing is displayed. How to test whether XI is sending XML file to J2EE appl or not? All helpful answers are highly appreciated.

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    May 26, 2006 at 08:05 AM

    Hi

    You can check from RWB (RunTime work bench) >> go to Meessage monitoring or end-end monitoring or else SXI_MONITOR

    Cheers

    Jawahar Govindaraj

    PS: plz reward me

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Datta saru,

      I dont know if this is the reason, but I am postiong it...

      HTTP adapter is on ABAP Stack, but you are using with the J2EE application. Could this be the reason?

      -Naveen.

  • May 26, 2006 at 09:57 AM

    Hi Datta,

    Just goto SXMB_MONI and watch the message, in the payload you can check if the data is sent.

    If you want to validate the http adapter, just go to RWB and check the message monitoring and component monitoring.

    Finally, if you're not sure whether the J2EE part is ok, do not process the data and just output it directly.

    Thanks

    Luis

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      I got successful status in RWB and also in SXMB_MONI.

      I got succcess flag in it.

      Why my servlet is not displaying anything?

      All helpful answers are rewarded. I am just outputting the xml file as it is to browser, but my servlet is not able to display?

      This is my servlet code:

      public class DisplayRes extends HttpServlet {

      public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

      doPost(request,response);

      }

      public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

      BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));

      String inputLine;

      StringBuffer sBuf = new StringBuffer();

      while ((inputLine = brin.readLine()) != null)

      sBuf.append(inputLine);

      brin.close();

      PrintWriter out = response.getWriter();

      response.setContentType("text/xml");

      //out.setContentType("text/xml");

      //out.println(sBuf.toString());

      out.write(sBuf.toString());

      out.flush();

      }

      }

      Thanks

  • avatar image
    Former Member
    May 26, 2006 at 07:55 AM

    Hi,

    Check in SXMB_MONI to see the contents of the file... Is there any error in MONI or Runtime Workbench?

    Regards

    Suraj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      I got successful status in RWB and also in SXMB_MONI.

      I got succcess flag in it.

      Why my servlet is not displaying anything?

      All helpful answers are rewarded.

      Thanks

  • May 26, 2006 at 08:10 AM

    Datta,

    While configuring your Sender File Adapter, let the mode be DELETE. This way, when the file is picked byu the File adapter , it will be deleetd and you can be sure that it has been picked up.

    Next, look into the RWB--> FILE ADAPTER and see the log of gthe file adapter

    and Also, you can see the flow of your message in the integration engine in SXMB_MONI.

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2006 at 09:02 AM

    Hi,

    <i>D:\somedir on my PC</i>

    I dont think the file will be picked up in the first place, since you are placing this file on a local drive rather than on the xi server.

    The above path might work if the pc you are working on is the xi server.

    In the file adapter, set the processing mode as delete, to make sure that the file is actually picked up.

    Regards,

    Smitha.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      In the file adapter i set processing mode as delete, it is picking up well from my d:\somedir.

      I got success flag in SXMB_MONI and successful status in RWB->message monitoring?

      Why my servlet is not able to display?

      All helpful answers are rewarded.

      public class DisplayRes extends HttpServlet {

      public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException

      {

      doPost(request,response);

      }

      public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException

      {

      BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));

      String inputLine;

      StringBuffer sBuf = new StringBuffer();

      while ((inputLine = brin.readLine()) != null)

      sBuf.append(inputLine);

      brin.close();

      PrintWriter out = response.getWriter();

      response.setContentType("text/xml");

      //out.setContentType("text/xml");

      //out.println(sBuf.toString());

      out.write(sBuf.toString());

      out.flush();

      }

      }

      Thanks