472,805 Members | 850 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 1633
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
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.