Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web service compatable datatypes

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
I have some methods in a web service that return an arraylist, and I keep getting compiler errors like this:

Code:
Value of type '1-dimensional array of System.Object' cannot be converted to 'System.Collections.ArrayList'.

I have found that this is because WSDL.exe changes arraylists into object arrays. Is there any way to prevent this behavior? So that I don't always have to worry about going throught the references.vb file and changes the types?

It's not really a big deal, but it would solve a minor annoyance.

Thanks
 
If you need to call into/out of a Java-based web service, you'll want to stay away from the .net-specific types. Try sticking with the basics -- strings, ints, arrays, etc.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top