RE: Sending XML files using HTTP Request/Response?

2006-08-10 Thread Veni Garg
Ortin,

Thanks for the clarification on the Dev vs User grouwp. I looked at them
yesterday not sure where to post and tried this one first... murphys law and
I was wrong :-)

THanks for your tip and the sample also. I have some trouble compiling the
program. I have the commons-httpclient.jar and commons-logging.jar in the
Classpath and even specify it with the -classpath option, but it refuses to
recognise them.

I will repost this query in the User thread.

Thanks again!
Veni


-Original Message-
From: Ortwin Glück [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 4:22 PM
To: HttpClient Project
Subject: Re: Sending XML files using HTTP Request/Response?


Veni,

This is the developer mailing list, but your question is a typical user
question. You may get more detailed information on the user list:
http://jakarta.apache.org/commons/httpclient/mail-lists.html

Yes, HttpClient seems like the way to go. Have a look at this sample
code which is part of the example package:
http://svn.apache.org/repos/asf/jakarta/commons/proper/httpclient/trunk/src/
examples/PostXML.java

The 10 minute scheduling is of course out of the scope of HttpClient.
But it's easy to do using for example the Timer class.

Cheers

Ortwin


Veni Garg wrote:
 Hey !

 I am not sure if this is the right forum for this question, please
redirect
 me if this is not.

 With that, here is a question ... from a novice really.

 We have a situation where we need to send an XML file from our server to
 another server..URL really (http:// abc.com/xyz.crspx). This URL expects
 this XML file, reads and sends us back a response (with success or error
 codes etc) which I need to write to a file and save. The XML file itself
 contains the authentication information which the remote server will use
 before it sends a response back.

 Is this something I should use HTTP Request/Response for. Can I do this in
a
 batch mode where this program runs every 10 mts and picks up an XML file
in
 a predetermined location and transmits it. Are there limitations to the
size
 of the XML file.  I read that HTTPClient can help me do this.

 Any direction on how to proceed will be very helpful. Suggestions 
 resources are appreciated.

 Thanks much!
 V
 Veni Garg
 Sr. Programmer Analyst
 Data Select Systems Inc.
 Ph:  (805) 446-2090
 Fax: (805) 446-2089



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Sending XML files using HTTP Request/Response?

2006-08-09 Thread Ortwin Glück
Veni,

This is the developer mailing list, but your question is a typical user
question. You may get more detailed information on the user list:
http://jakarta.apache.org/commons/httpclient/mail-lists.html

Yes, HttpClient seems like the way to go. Have a look at this sample
code which is part of the example package:
http://svn.apache.org/repos/asf/jakarta/commons/proper/httpclient/trunk/src/examples/PostXML.java

The 10 minute scheduling is of course out of the scope of HttpClient.
But it's easy to do using for example the Timer class.

Cheers

Ortwin


Veni Garg wrote:
 Hey !
 
 I am not sure if this is the right forum for this question, please redirect
 me if this is not.
 
 With that, here is a question ... from a novice really.
 
 We have a situation where we need to send an XML file from our server to
 another server..URL really (http:// abc.com/xyz.crspx). This URL expects
 this XML file, reads and sends us back a response (with success or error
 codes etc) which I need to write to a file and save. The XML file itself
 contains the authentication information which the remote server will use
 before it sends a response back.
 
 Is this something I should use HTTP Request/Response for. Can I do this in a
 batch mode where this program runs every 10 mts and picks up an XML file in
 a predetermined location and transmits it. Are there limitations to the size
 of the XML file.  I read that HTTPClient can help me do this.
 
 Any direction on how to proceed will be very helpful. Suggestions 
 resources are appreciated.
 
 Thanks much!
 V
 Veni Garg
 Sr. Programmer Analyst
 Data Select Systems Inc.
 Ph:  (805) 446-2090
 Fax: (805) 446-2089
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]