473,387 Members | 1,548 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,387 software developers and data experts.

Java - C# datatype problem

Hi,

I am writing a C# client to consume a Java web service. The web service
returns a vector how do i consume that in C#? I am writing a C# web
application.
Dec 14 '05 #1
2 1650
GeRmlc,

The web service should expose a WSDL document indicating the types that
are being passed in and returned from the web service. When you set a web
reference, a proxy should be generated which will expose this type to you.
It doesn't matter that a vector is used on the java side. The WSDL should
expose a type which can be consumed by any web client.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GeRmIc" <Ge****@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Hi,

I am writing a C# client to consume a Java web service. The web service
returns a vector how do i consume that in C#? I am writing a C# web
application.

Dec 14 '05 #2
[System.Web.Services.Protocols.SoapRpcMethodAttribu te("",
RequestNamespace="http://xxxx/webservices/YYYYWS",
ResponseNamespace="http://xxxx/webservices/YYYYWS")]
[return:
System.Xml.Serialization.SoapElementAttribute("get DefinitionsReturn")]
public object[] getDefinitions(int termcode, string languagecode) {
object[] results = this.Invoke("getDefinitions", new object[] {
termcode,
languagecode});
return ((object[])(results[0]));
}

this is a code snippet from the reference.cs file, when I try to access
getDefinition and put the return value in an Object it compiles file but the
problem is how do i get the values out from the object and display it?

The documentation of the webservice states that these are the things
returned from the WS.

An array of vectors containing the follwing (if existing):
Vector[0] – the snotes
Vector[1] – the hnotes
Vector[2] – the definitions
Vector[3] – the other comments

Dec 15 '05 #3

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

Similar topics

2
by: Dan | last post by:
Hello. I have recently tried upgrading the MySql connector for my servlet from 2.0.4 to 3.0.9. I have found a minor limitation in 2.0.4 and was hoping that 3.0.9 would fix it. However, now I...
4
by: Rhino | last post by:
Is it possible for a Java Stored Procedure in DB2 V7.2 (Windows) to pass a Throwable back to the calling program as an OUT parameter? If yes, what datatype should I use when registering the...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
0
by: vijayalakshmi.venkataraman | last post by:
Hello, I have a .NET client that accesses a Java webservice. Let me first say that the client stub I got generated from the wsdl was incomplete and had to make changes to it manually to make it...
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
3
by: roboB | last post by:
Whth .NET WS I have serialized an ADO.NET Recordset in an XML Stream like this: <xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'...
1
by: jweaver | last post by:
I'm having a problem getting back appropriate metadata for stored procedures from MS SQL Server 2000 and 2005. I've created a simple stored procedure that has an output param that is a cursor. ...
1
jeffbroodwar
by: jeffbroodwar | last post by:
Hi, The code below prints : <Results><Row><customerName>jeff</customerName><address>None</address><telephone>None</telephone><birthday>2007-01-12 13:58:20.0</birthday></Row></Results> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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,...

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.