Re: Network file transfer



Adam,

your comments are much appreciated!!! I began to realise that this is the
easiest approach, as i really wish i had the time to go into java in that
much details as to code my own http server, but you are not the only one to
suggest that i use tomcat etc to do this.
How simple is it to write myself a servlet to deal with my xml files? I
have yet to go into XML in detail with the DOM and SAX availabilities.

Cheers

Phill

<adamspe@xxxxxxxxx> wrote in message
news:1133369076.678615.193480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Sorry.
>
>>> Adam / iksrazal,
>>>
>>> as much as i would love to just begin writing my own Http server but i
>>> just
>>> don't have the knowledge at this time.
>>> The spec at the moment is to send xml files from a (mobile) client,
>>> which is
>>> full of data samples. The server then confirms it has the file, then
>>> acts as
>>> a proxy to shunt the xml files to further client machines which will
>>> display
>>> the data samples.
>>> In the end i will want to write what you suggest but i feel i don't have
>>> the
>>> knowledge or the resources to do it. Do you have any recommendations on
>>> going down that road?
>>> At the moment i need to learn more than anything, so just writing a
>>> client/server setup which sends files is great. I then intend to go into
>>> XML
>>> and the proxy setup on the other side.
>>
>> My thought here was not that you write an HTTP Server. There's no need
>> to do such a thing since there are many freely available ones out there
>> to meet that need. you could simply run Tomcat with HTTP enabled or
>> Apache+tomcat or pick your favorite webserver servlet engine combo and
>> write a tiny servlet to plug in there to consume your XML. All the
>> protocol details, authentication, etc. will be handled by the server
>> and the java.net classes on your client side, no need to -really-
>> understand all the specifics of the underlying protocol, just small
>> bits of code on both sides of the wire.
>
> My point was that existing software and APIs exist to deal with both
> sides of the wire via HTTP that could be re-used without the need to
> invent a protocol and write the client and server.
>


.



Relevant Pages

  • Re: Network file transfer
    ... >> The spec at the moment is to send xml files from a client, ... The server then confirms it has the file, ... > My thought here was not that you write an HTTP Server. ...
    (comp.lang.java.programmer)
  • Re: HTTP Request
    ... I am writing a component that will run outside of the webserver. ... component will send xml files to another http server. ...
    (microsoft.public.dotnet.framework)
  • Re: com.sun.net.httpserver.HttpsServer - How To?
    ... The HTTP server works ... I have studied the JAX-WS API documentation, ... the necessary cipher suites are supported and enabled. ... the client is sending a supported cipher suite in the client hello. ...
    (comp.lang.java.programmer)
  • Re: threaded http server
    ... bharath venkatesh wrote: ... will this twisted,turbo gear etc help me to create a http server that can serve multiple clients concurrently.... ... but it will act as a image_proxy_server i.e when a client wants an image it will do a http request to my http server if the image is present in cache it will fetch it directly from cache and return it to the client as an http reponse otherwise it fetch from www and store it cache and also return it to the client as an http response so basically i want to serve many clients concurrently in fast n efficient manner ...
    (comp.lang.python)
  • Re: threaded http server
    ... will this twisted,turbo gear etc help me to create a http server that can ... serve multiple clients concurrently.... ... image_proxy_server i.e when a client wants an image it will do a http ... request to my http server if the image is present in cache it will fetch it ...
    (comp.lang.python)