473,516 Members | 3,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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!
Nov 16 '05 #1
3 1634
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]
- ca*******@caspershouse.com
Nov 16 '05 #2
I'd say without too much doubt that it's probably Java's fault.

"GeRmIc" wrote:
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!

Nov 16 '05 #3
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.
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2369
by: Jonny T | last post by:
hi, i want to echo the string '<?php' in a php script like : echo "<?php"; but when i try nothing gets displayed ... if I use echo "<\?php";
7
5153
by: haoren | last post by:
Can anybody help me with this problem: How can I echo a string that contain <? and <?php? For example, $str="test <? and <?php echo"; echo $str;
3
1957
by: winderjj | last post by:
Hi All, I need everyones opinion. I am very new to XML but am temporarily putting all my efforts into using it. This is what I need to do. Write an xml parser (in C) that will parse a fairly complicated XML file that is full of technical data(most scalar values). Then I need to store all the info in a C structure. Could some people...
4
9625
by: matatu | last post by:
Hi to all, I have a xml file, a substring like: &lt;a href=&quot;#&quot;&gt;text&lt;/a&gt; which after an xslt trasform is rendered as (using xsl:output method html): &lt;a href="#"&gt;text&lt;/a&gt;
4
62087
by: higabe | last post by:
Three questions 1) I have a string function that works perfectly but according to W3C.org web site is syntactically flawed because it contains the characters </ in sequence. So how am I supposed to write this function? String.replace(/</g,'&lt;');
5
3513
by: tobbe | last post by:
Hi Im trying to load a XmlDataDocument with the following xml: <ROOT> <NAME> &LT; &AMP; &GT; " '</NAME> </ROOT> And i know I have a entity problem here, but i cant find any solution for it. The problem is that i recive this from external source and cant
2
10118
by: Jasonkimberson | last post by:
I am doing a data pull of HTML from a database that will be put into a drop down menu currently after i pull and populate the information, it converts my < into &lt; whats the work around for this? HTML code
4
1901
by: Armel Asselin | last post by:
Hello, I've been using XML for a while in a rather 'free' manner (i.e. as long as IE accept it it's OK), I read recently (again) the Xml standard 1.0 (3rd edition) and found this sentence: Well-formedness constraint: No < in Attribute Values The replacement text of any entity referred to directly or indirectly in an attribute value MUST...
4
1795
by: spibou | last post by:
I saw it at http://www.faqs.org/rfcs/rfc1305.html Is it not the same as writing ``if (m)'' ?
3
3987
by: webmasterATflymagnetic.com | last post by:
Folks, I'm struggling to put the question together, but I have this problem. I have written an HTML form that I can use for data entry. This uses PHP to write a SQL UPDATE command that gets written to my MySQL database. I can later view this data back in the form. One thing I've noticed happening is if I enter code such as &lt; it gets...
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7574
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7547
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.