.NET <-> Java Interoperability issue?!?!?

G

Guest

Hello Friends,

I am working on a project where the service provider is written in JAVA and
the client is written in .NET (C#). The Server communicates with the client
through
Java Beans.

(1) I get an error in my .NET code when I instantiate the particular web
service, the error says that a org.sax.exception : deserializer for QueryBean
qb is
not present. Is it an error in the Java code or a problem in .NET.
(QueryBean is a bean structure that holds the variables needed for a
particular function)

(2) How can I map the bean that is sent from Java into any .NET compatible
structure? Moreover, this would later be sent to a C code. So which is the
best way to define a structre in .NET to receive the bean so that it is could
easily be understood by the C code also.

Thanks Experts!
 
N

Nicholas Paldino [.NET/C# MVP]

GeRmIc,

See inline.
(1) I get an error in my .NET code when I instantiate the particular web
service, the error says that a org.sax.exception : deserializer for
QueryBean
qb is
not present. Is it an error in the Java code or a problem in .NET.
(QueryBean is a bean structure that holds the variables needed for a
particular function)

I would think that this is an error in the Java code, or the XML that is
being sent to the java code. It seems like you are not sending the correct
XML for what is being expected by the java code. Are you creating the
proxies, or are you making the calls manually?
(2) How can I map the bean that is sent from Java into any .NET compatible
structure? Moreover, this would later be sent to a C code. So which is the
best way to define a structre in .NET to receive the bean so that it is
could
easily be understood by the C code also.

If you have a WSDL file for the web service, then you can simply add a
web reference in your project, or you can use the WSDL.exe tool to create a
proxy class.

Hope this helps.

- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
 
G

Guest

Thanks Nicholas & Patty,

Yes, indeed it looks to be a JAVA fault because the structure for the beans
are handwritten and not autogenerated by using CASTOR (or any other utility),
guess after making castor generate the structure for querybean then it would
solve the problem.

Nicholas, I am adding a web reference and doing the calls through the proxy.

Thanks Ppl.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top