on 05-26-2006 8:03 AM
Hi
I have a scenario like File->XI->J2EE appl.
I placed the XML file in D:\somedir on my PC. The file has to be posted to J2EE appl. The file got picked up from
my D:\somedir. But my servlet is not displaying the XML file that is sent by XI. How and where to test whether XI is sending the file to my servlet or not?
Help me
Thanks!
Hi
1) you can monitor a message in RWB (Runtime Work Bench) >> message monitroing or end- end monitoring.
2) tranasaction sxi_monitor or SXMB_MONI
cheers
Jawahar Govindaraj
PS: reward points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I got no error both in SXI_MONITOR and RWB.
My servlet code is this:
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();
}
}
All helpful answers are rewarded.
Thanks
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.