File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how can i transfer the xml files between different systems? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how can i transfer the xml files between different systems?" Watch "how can i transfer the xml files between different systems?" New topic
Author

how can i transfer the xml files between different systems?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
hello
the appearance of xml enable the inter-communication between differences systems.but i don't know how,such as following scinario:
in the client side,we use the console that is written by using c#,if i finish filling the text boxes that are within the console,click the submit button,the console will generate a xml format document.i want the other application that is written by using jsp and servlet and deployed in weblogic server to receive the xml document,then process the document.
but i don't know how i can transfer the xml files between the two applications that is written in different languages? can i use http protocol?

thanks for any helps!
christoph weingarten
Ranch Hand

Joined: Oct 10, 2002
Posts: 39
hi there,
you are right. xml can be used for inter-communication between different systems. but you have not to write all the code yourself. there is already a solution for your 'problem' called SOAP.
and
apache/axis is a pretty good (and free) soap-implentation.
regards
christoph
Geeta Ramasami
Ranch Hand

Joined: Mar 05, 2003
Posts: 72
From my understanding i surmise that u r generating an XML document from the c# application.XML is a portable document.The problem lies in reading a XML document present in a remote machine irrespective of which language is generating the XML document.So u can send it and use it accross application written in any languages.
There r 2 solutions for this problem
1.One is u have ur c#application in one system wherein the XML gets generated and stored.From this system using C# file uploading feature u can upload the file to the system where the JSP or servlet application is running so that the document becomes availabel in that system.Then using the File object in JSP u can directly use the XML document.
2.The other solution is have the xml generated by the c# application in that system itself.From the JSP open the socket connection to the remote machine by giving the host name and the port number.This way u connect to the remote machine and read the XML document.U have SAX and DOM parsers available to read the data structed in the XML document.Hope this is helpful
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Hi
You could definitely use HttpCommunication to 'POST' the xml document that you generate to a servlet that you have created on the WebLogic server.
Basically, from within your C# you will need to create an HttpRequest that encapsulates the XML document as a parameter within a multipart/form-data. This can then be retrieved using the getParameter() method on the WebLogic servlet.
Hope this helps


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i transfer the xml files between different systems?
 
Similar Threads
Corba Multithread
Why use XML?
Question for David
Reply to Govind K: XML
Using Hashtable to store an xml document for further reference