server posting data to another server

hello everyone,

i want to know how a server can post data to another server using servlets. typically we will be having two servlets residing on different servers. Now how shall the first servlet be written to be able to send data to second servlet on another server. if possible pls provide the sample codes. I think the same can be achieved using jsp. can anyone tell me how?

thanks in advance.

[415 byte] By [ccubed2k4a] at [2007-11-26 18:01:44]
# 1

I think direct server to server communication can be accomplished with Web Services using protocols like SOAP or REST. However, I'm new to web services so I can't really provide examples - but others may have an answer for you.

In the mean while you can take a look at Apache Axis - Web Services:

http://wiki.apache.org/ws/FrontPage/Axis

appy77a at 2007-7-9 5:31:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...