| Author |
Message |
stupy1
Joined: 08 Jul 2005 Posts: 7
|
Posted: Fri Mar 02, 2007 10:56 pm Post subject: VB.net not passing nulls to integer in web service test |
|
|
I need to be able to pass nulls to integers when testing a web services. this passes a zero instead:
Dim request As New twservices1.SupplyCostRequest
request.SupplyRouteKey = rnd.Next(1, 616)
request.DestinationTradingPartnerKey = Nothing
request.OriginTradingPartnerKey = Nothing
request.ItemKey = Nothing
for the last three criteria which are nullable integers.
Is this because the version of visual studio for scripting is 1.1? any ideas? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Mon Mar 05, 2007 7:40 pm Post subject: |
|
|
It sounds a bit like a peculiarity of the VB Language. How about instead of Nothing, using Convert.ToString(System.Reflection.Missing.Value)? _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group