473,396 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Interoperability question

Hello and happy holidays all,

I have a quick question. I just playing with interoperability, so I
created a java web service (using Axis), which I am able to access with
a java client, but when I try to access it with a .NET client (just an
..aspx page-I used wsdl.exe to generate the .cs file, and csc.exe to
generate the dll), I get a System.NullReferenceException. Strange
thing though; when using the .NET client, it is getting through to the
web service (I have logging in place to confirm this). The exception
seems to occur on the response from the web service. The response
object I get from the web service is null, though the web service is
sending the populated response object back. Obviously, I can't figure
out why this is happening.

Here is the code for the .aspx page for calling the web service:

// Create the variables
msTestService service = new msTestService();
String strEntryText = txtEnter.Text;
String strResult = "";

// Create the value in object
value_in valueIn = new value_in();

// Create the message in object
message messageIn = new message();

// Create the message out object
message messageOut = null;

// Set the input value
messageIn.message_value = strEntryText;
valueIn.v_in = messageIn;

// Call the web service
value_out valueOut = (value_out)service.getMessage(valueIn);

// Get the result value
try {
messageOut = valueOut.v_out;
strResult = messageOut.message_value;
} catch (Exception e) {
strResult = "Exception occurred. e=" + e.ToString();
}

// Set the result value
txtResult.Text = strResult;

The exception occurs in the try/catch block, when I try to get the
message_value from the messageOut object. Any help on this is greatly
appreciated. Thanks, and happy holidays all!

Dec 22 '06 #1
0 879

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

Similar topics

1
by: j-integra_support | last post by:
Looking for Java/COM interoperability tools? Thousands of companies world-wide are using J-Integra for COM for interoperability between Java and Microsoft COM applications. J-Integra for COM is a...
4
by: Frederik Kesting | last post by:
Hi! I heard about the possibilty of using different languages for one project whith the .Net Framework. Is it f.e. possible to include Managed C++ code into a VB.Net project without changing...
1
by: louis | last post by:
Today I got the latest propaganda email from MSFT talking about XML and interoperability. It's been bothering me all day and while the notion of interoperability is good -- the ability to interact...
3
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached...
0
by: udi.ben-senior | last post by:
Hi, How do I define a C structure that contains non-isomorphic members (e.g. a pointer type member or a member of a different structure) in C# for interoperability uses? I understand that I need...
0
by: j-integra_support | last post by:
Looking for Java/.NET/CORBA interoperability tools? Intrinsyc Software has just released the latest addition to its popular J-Integra Interoperability Suite... J-Integra Espresso! J-Integra...
2
by: kuhni | last post by:
Hi All, I have a very general question regarding the interoperability of VB/VBA applications. I know that it is possible to create a form e.g. in Excel from which I launch Word and then show...
0
by: Pradnya Patil | last post by:
Hi , I need to export some of the reports to MS EXCEL & MS WORD in a WEB APPLICATION.I also need to LOCK some of the Columns in EXCEL-sheet.Right now I need to run the Interoperability...
1
by: divya | last post by:
Hi, I made an assembly (class library project) in Dot net and wanted the assembly to have COM interoperability successfully got the assembly working with VB6 performing following steps: 1.Create...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.