all groups > dotnet web services > october 2007 >
You're in the

dotnet web services

group:

How to handle return Java ArrayList into my DotNet Client API


Re: How to handle return Java ArrayList into my DotNet Client API Nicolas
10/28/2007 9:01:01 PM
dotnet web services:
Hi,
The problem is that I dont even get the result from the web service. It stop
with the following error. And I think it is from the ArrayList they return.
Additional information: There is an error in XML document (1, 573).


[quoted text, click to view]
Re: How to handle return Java ArrayList into my DotNet Client API Nicolas
10/28/2007 9:19:00 PM
Hi,
The problem is that I dont even get the result from the web service. It stop
with the following error. And I think it is from the ArrayList they return.

[quoted text, click to view]

How can I make it work?



[quoted text, click to view]
How to handle return Java ArrayList into my DotNet Client API Nicolas
10/28/2007 10:02:35 PM
Very urgent need help on how to handle the ArrayList return by the Java
webservice into my DotNet Console application
Actually the bug came within the return has not understanding the return XML
document

Additional information: There is an error in XML document (1, 573).

my code is like this

Dim nWS as New ws_JavaWebService() 'This is the webservice
Dim nRetVal as New ws_JavaList 'This is the return object
which is an ArrayList from Java J2EE

nRetVal = nWs.GetInfo("param_1","param_2","param_3","param_4") ----->
Problem arise here in the return

Console.writeline(nRetVal.Item(0).ToString)
Console.read


Thanks
Nicolas

Re: How to handle return Java ArrayList into my DotNet Client API Spam Catcher
10/29/2007 3:45:11 AM
"Nicolas" <nliebel@hotmail.com> wrote in news:OipT3gdGIHA.5328
@TK2MSFTNGP05.phx.gbl:

[quoted text, click to view]

Re: How to handle return Java ArrayList into my DotNet Client API Nicolas
10/29/2007 8:01:01 AM
The return value is a ArrayList or List from Java.
As this is what the people building that web service told me.

The parameter in the function are like this.
GetInfo(param_1 as String, param_2 as String, param_3 as String, param_4()
as string)

When they look at the log they properly receive my request and return their
information which seems to be a list from what they told me. But it doesn't
get to me. It crap-out before. This is a propblem of interpretation I guess.



[quoted text, click to view]
Re: How to handle return Java ArrayList into my DotNet Client API Mr. Arnold
10/29/2007 10:40:37 AM

[quoted text, click to view]

What is nRetVal's type is it an ArrayList? How do you know that an ArrayList
is being retuned? Are all the parms you're passing in string? How do you
know the type of parms to pass such as int, long, string?


AddThis Social Bookmark Button