Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2007

Tip: Looking for answers? Try searching our database.

How to handle return Java ArrayList into my DotNet Client API

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nicolas - 29 Oct 2007 04:02 GMT
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
Spam Catcher - 29 Oct 2007 04:45 GMT
"Nicolas" <nliebel@hotmail.com> wrote in news:OipT3gdGIHA.5328
@TK2MSFTNGP05.phx.gbl:

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

And what problem would that be?
Nicolas - 29 Oct 2007 05:01 GMT
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).

> "Nicolas" <nliebel@hotmail.com> wrote in news:OipT3gdGIHA.5328
> @TK2MSFTNGP05.phx.gbl:
[quoted text clipped - 3 lines]
>
> And what problem would that be?
Nicolas - 29 Oct 2007 05:19 GMT
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.

> [System.InvalidOperationException]: {System.InvalidOperationException}
>     HelpLink: Nothing
>     InnerException: {System.InvalidCastException}
>     Message: "There is an error in XML document (1, 573)."
>     Source: "System.Xml"

How can I make it work?

> "Nicolas" <nliebel@hotmail.com> wrote in news:OipT3gdGIHA.5328
> @TK2MSFTNGP05.phx.gbl:
[quoted text clipped - 3 lines]
>
> And what problem would that be?
Mr. Arnold - 29 Oct 2007 15:40 GMT
> Hi,
> The problem is that I dont even get the result from the web service. It
[quoted text clipped - 17 lines]
>>
>> And what problem would that be?

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?
Nicolas - 29 Oct 2007 16:01 GMT
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.


> > Hi,
> > The problem is that I dont even get the result from the web service. It
[quoted text clipped - 21 lines]
> 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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.