Howard;
Thank you for guidance and clarification, will take it into consideration
Perhaps, if I can add some few details on my previous problem:
I was using apache httpclient to send POST request with xml data from my
application to other server, on my pc(localhost) it worked okay, but
after deploying to server I got error
(java.lang.**ClassNotFoundException:
org.apache.http.entity.**StringEntity"), here was the code:
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://X.X.X.X:8080/test");
try {
StringEntity entity = new StringEntity(xmlPayload,
ContentType.TEXT_XML);
post.setEntity(entity);
HttpResponse response = client.execute(post);
BufferedReader rd = new BufferedReader(new
InputStreamReader(response.getEntity().getContent()));
while ((line = rd.readLine()) != null) {
sb.append(line);
System.out.println(line);
}
} catch (IOException e) {
e.printStackTrace();
}
But after doing a bit of googling, I came across jersey java http
library, which then solved my problem on posting xml data to the server,
but then I encountered another problem, I am expecting the server to
post xml data to my tapestry application too in POST request, so far I
have done some research and found out a method "onActivate() " can do
the trick, but I do not how, may be if you might have a sample code or
advice on I can go around it.
currently the server is posting xml to one of my pages, but I failing
to read posted xml data.
This is post request to my dev server from the server:
X.X.X.X - - [20/Jun/2013:17:12:28 +0300] "POST /myapp/sms HTTP/1.1" 200 2552
Thanks,
Daniel.
On 06/20/2013 09:45 PM, Howard Lewis Ship wrote:
Here's a guide on how to ask questions so that they might get answered:
http://catb.org/esr/faqs/smart-questions.html
The gist of it is: "give us the information we need to help up front
because we're not going to do your homework for you".
On Wed, Jun 19, 2013 at 11:12 PM, Daniel Daud Buchafwe
<rudan...@gmail.com>wrote:
Hi All;
I am new in tapestry and trying to write my first application, I am
utilizing httpclient in my application so that I can http request to other
with xml content, all works okay in my localhost, but after deploying it to
development server I am getting the below error:
"An unexpected application exception has occurred.
java.lang.**ClassNotFoundException: org.apache.http.entity.**StringEntity"
Please advice.
Regards,
Daniel.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org