If you go to the web page, you'll see text "Please send your AS2 messages now to HttpReceiver." if you click on the href on "HttpReceiver" you see a message telling you you should post to that URL. Thing is I see the HTML source telling me this, rather than a page that the browser can show. looks like the headers are wrong.
What I get see is "Content-Type: text/plain; charset=UTF-8" however if I try the main web page I see content type (rightly) is "Content-Type: text/html; charset=utf-8". Not a show stopper but thought I'd point it out.
This has always happened for me (hence long standing topic) since I started using MEC-AS2. I use firefox 2 & 3 and always have this problem. Works fine in IE, it must ignore content type :-)
Amir
Amir,
seems as if I require more information on this problem. This is the page that is transfered:
-------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META NAME="description" CONTENT="mendelson-e-commerce GmbH: Your EAI partner">
<META NAME="copyright" CONTENT="mendelson-e-commerce GmbH">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>m-e-c as2</title>
<link rel="shortcut icon" href="images/mendelson_favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="includes/css/mendelson.new.css" type="text/css" media="screen, projection">
</head>
<body>
<div id='backhome'><a href="http://www.mendelson-e-c.com" title="Home"></a></div>
<div id="logo"></div>
<div id='navigation'>
<div id='navlist'>
<ul>
<li><a href='index.jsp'>Server state</a></li>
<li><a href='monitoring.jsp'>Monitoring</a></li>
<li class='active'><a href='HttpReceiver'>Send/receipt unit</a></li>
</ul>
</div>
</div>
<div id="content">
<div id="contentwrap">
<div id="inner">
<H2>m-e-c as2 1.1 build 25</H2>
<BR> (c) 2000-2008 mendelson-e-commerce GmbH Berlin, Germany
<BR><br>You have performed an HTTP GET on this URL. <BR>
To submit an AS2 message, you must POST the message to this URL <BR>
</div>
</div>
<div class="clear"></div>
<div id="bottomcontent"></div>
</div>
</body>
</html>
----------------
What should be changed in your opinion? There is no content-type "text/plain". The page is displayed fine in firefox in my installation.
Regards
Heller
Heller,
You can use wget or any other command line tool to dump the http headers (text/html is a http header). I'm using working on Linux btw, the only thing that needs to happen is that servlet you've written needs to set the content type to the correct one.
In your servlet you should get the response object (passed into the the doGet method you are capturing, and then do
response.setContentType("text/html");
Amir,
ok, I added this.
Regards
Heller