generalShipmentData is a class you need to create an instance before you can use it without getting a null reference exception
orders(1) = New dpd_label.order()
orders(1).generalShipmentData = new generalShipmentData()
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a generated clas (with soapui)
I need to pas data to a class order
This class has partial classes
The code :
This is what i try and th error i get ....
Dim orders(1) As dpd_label.order
orders(1) = New dpd_label.order()
With orders(1)
.generalShipmentData.sendingDepot() = "" 'this line gives a error : System.NullReferenceException: 'De objectverwijzing is niet op een exemplaar van een object ingesteld.'
'dpd.dpd_label.order.get_generalShipmentData returned Nothing.
End With
Dim result
Dim start As New dpd_label.ShipmentServiceSoap33
result = start.storeOrders(printoptions, orders)
could sombody show me how to do it ?
Thanx in advance !
generalShipmentData is a class you need to create an instance before you can use it without getting a null reference exception
orders(1) = New dpd_label.order()
orders(1).generalShipmentData = new generalShipmentData()