View Single Post
  #2 (permalink)  
Old 01-07-2009, 3:58 PM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,322
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

The string array is not one of the supported schema types so the return type of this method is defined by the service. Hover the GetPractices method and intellisense will tell you what type it is returning, or use Object Browser and have a look at the service proxy class. I'm using VB2008, not sure if that changed from VB2005, but here I have a ServiceReference namespace to the service proxy class that defines the return type as class ArrayOfString, a class that inherits List(Of String). So both these examples mean the same, but you should learn the first, it will help you use other services that similarly defines various return types.
Code:
Dim ar As ServiceReference1.ArrayOfString = serv.Get_Practices

Dim l As List(Of String) = serv.Get_Practices
__________________
Reply With Quote