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?
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
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
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