Krzysztof Paz wrote:[color=blue]
> Hi,
> There is a Java (SUN 1.4) server which using Object Input/Output
> Streams at SSL/Socket to communicate with Java clients.
> Now there is a request for making C# Client for this server also.
> SSL layer could be done with Org.Mentalis.Security.dll from seclib-1.0
> Mentalis package - its fine...
>
> But, threre is a problem:
> How to properly communicate from C# language to
> Java.ObjectInputStream - cause I've tried many times, and always get
> the Java exception about wrong stream header.[/color]
[...][color=blue]
> So, the question is:
> How to make proper conversation with Java Object Streams from C#
> language... ...receiving objects is also needed...
>
> My data objects from/to java server usually are strings, int, longs,
> bytes, dates, arrays and multidimensional arrays of its...[/color]
I wouldn't say it's impossible, but that requires a conversion of .NET's
class representation to the JRE's format. I wouldn't want to integrate two
applications at such a low level of abstraction.
I would implement a Java based facade that translates SOAP calls from your
..NET client to Java object I/O to the application server.
Cheers,
--
Joerg Jooss
joerg.jooss@gmx.net
- Try wether using J# you can send objects to the Java server or if that
produces .NET serialized