Here is the definitions: They are most of the time "complex data type".
----------------------------------------------------------------------------
---------------------------------------------------------
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.XXXXXX.c
om/integration/2.0")> _
Public Class responseHistoricalData
Inherits LegacyApiOutput
'<remarks/>
<System.Xml.Serialization.XmlElementAttribute("his toricalData")> _
Public historicalData() As historicalData
End Class
----------------------------------------------------------------------------
---------------------------------------------------------
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.XXXXXX.c
om/integration/2.0")> _
Public Class historicalData
'<remarks/>
Public equipmentID As String
'<remarks/>
Public terminalID As String
'<remarks/>
Public arrivalTimestamp As String
'<remarks/>
Public position As positionAndProximityWithTimestamp
'<remarks/>
Public serviceMeterHours As serviceMeterHoursWithTimestamp
End Class
----------------------------------------------------------------------------
---------------------------------------------------------
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.XXXXXX..
com/integration/2.0")> _
Public Class positionAndProximityWithTimestamp
Inherits positionWithTimestamp
'<remarks/>
<System.Xml.Serialization.XmlElementAttribute("pro ximity")> _
Public proximity() As proximity
End Class
----------------------------------------------------------------------------
---------------------------------------------------------
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.XXXXXX..
com/integration/2.0")> _
Public Class proximity
'<remarks/>
Public type As proximityType
'<remarks/>
Public location As String
'<remarks/>
Public [region] As String
'<remarks/>
Public postalCode As String
'<remarks/>
<System.Xml.Serialization.XmlElementAttribute("kil ometersFromLocation",
GetType(System.Decimal)), _
System.Xml.Serialization.XmlElementAttribute("mile sFromLocation",
GetType(System.Decimal)), _
System.Xml.Serialization.XmlChoiceIdentifierAttrib ute("ItemElementName")> _
Public Item As Decimal
'<remarks/>
<System.Xml.Serialization.XmlIgnoreAttribute()> _
Public ItemElementName As ItemChoiceType1
'<remarks/>
Public directionFromLocation As proximityDirection
End Class
----------------------------------------------------------------------------
---------------------------------------------------------
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uM**************@TK2MSFTNGP10.phx.gbl...
Hi,
What is the format of this. I need to know more about
responseHistoricalData
Dim oResponse As SomeWebservice.responseHistoricalData = New
SomeWebservice.responseHistoricalData
Ken
--------------
"BS" <lb*@nospam.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl... Hello
I posted a "short" version of the definition on the "webservice"
newsgroup.
http://www.google.com/groups?hl=en&l...TNGP12.phx.gbl
Thank you for your help
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl... Hi,
You can an arraylist, collection, or array to a datagrid. Any
poperties in a class contained in class stored in one of the above will
be
shown in the datagrid. What format are you getting you data in?
Ken
------------------
"BS" <lb*@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Hello everybody
>
> I'm calling a webservice that returns complex data.
> The goal is to populate a datagrid with it.
>
> Using a loop for each record found ( such as For i = 0 To
> oResponse.historicalData.Length - 1 )
> no problem to load a datagrid.
>
> However, when I try to bind directly the datasource to the web
service > complex datatype, I have the following error:
> Complex DataBinding accepts as a data source either an IList or an
> IListSource
>
> Any idea what I have to do to the webservice records in order for my
> datagrid to load ?
>
>
> Here is the code used to pupulate the grid.
>
> Dim oES As SomeWebservice.EquipmentService = New
> SomeWebservice.EquipmentService
> Dim oResponse As SomeWebservice.responseHistoricalData = New
> SomeWebservice.responseHistoricalData
>
>
> 'set response object with service response
> oResponse = oES.historicalData(oRequest)
>
> DataGrid1.DataSource = oResponse
>
>
>