0
Answer

Communication over xml between java and c#

Ask a question
anjag

anjag

20y
1.8k
1
Hello, I thought of using an existing java program about sockets. In the java code, the existing object is serialized in XML by the java XMLDecoder. Then it is send over the socket to my C# programm. But if I want to Deserialize it in the given way, I get an error, which says that C# can't parse the xmlStream: "Parse Error, no assembly associated with Xml key java" TcpClient tcpClient = new TcpClient(TAPAS_HOST, TAPAS_SPCH_PORT); NetworkStream reciverStream = tcpClient.GetStream(); StreamWriter writer = new StreamWriter(reciverStream); writer.WriteLine(hypo); writer.Flush(); StreamReader reader = new StreamReader(reciverStream); SoapFormatter sread = new SoapFormatter(); WebResponse result = (WebResponse)sread.Deserialize(reader.BaseStream); writer.Close(); reader.Close(); Is there an easy possebility to get C# to parse the java serialized object? Thanks Anja