S
Savas Ates
i have two class and i create them but i dont assign a value and run the
subroutines.. what is my mistake?
the error is --- Object reference not set to an instance of an
object.----
i think it is about this line
ws2.ProductDefinitions(i) = New WebReference1.ProductDefinitionType()
*************************************
Public Class ProductUpdateServiceImpl
Public Sub getProductUpdate(ByVal productUpdate As ProductUpdate_TYPE)
Me.Invoke("getProductUpdate", New Object() {productUpdate})
End Sub
End Class
**********************************
Public Class ProductUpdate_TYPE
Public KangurumShopId As String
Public ProductDefinitions() As ProductDefinitionType
Public UpdateDate As Date
End Class
******************************
************codes******************
Dim ws2 As New WebReference1.ProductUpdate_TYPE()
Dim wsbaba As New WebReference1.ProductUpdateServiceImpl()
for i=0 to 100
ws2.ProductDefinitions(i) = New WebReference1.ProductDefinitionType()
wsbaba.getProductUpdate(ws2)
next
**************************************
subroutines.. what is my mistake?
the error is --- Object reference not set to an instance of an
object.----
i think it is about this line
ws2.ProductDefinitions(i) = New WebReference1.ProductDefinitionType()
*************************************
Public Class ProductUpdateServiceImpl
Public Sub getProductUpdate(ByVal productUpdate As ProductUpdate_TYPE)
Me.Invoke("getProductUpdate", New Object() {productUpdate})
End Sub
End Class
**********************************
Public Class ProductUpdate_TYPE
Public KangurumShopId As String
Public ProductDefinitions() As ProductDefinitionType
Public UpdateDate As Date
End Class
******************************
************codes******************
Dim ws2 As New WebReference1.ProductUpdate_TYPE()
Dim wsbaba As New WebReference1.ProductUpdateServiceImpl()
for i=0 to 100
ws2.ProductDefinitions(i) = New WebReference1.ProductDefinitionType()
wsbaba.getProductUpdate(ws2)
next
**************************************