VB.net not passing nulls to integer in web service test

Forum for users of ANTS web server load testing tool

VB.net not passing nulls to integer in web service test

Postby stupy1 » Fri Mar 02, 2007 10:56 pm

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?
stupy1
 
Posts: 4
Joined: Fri Jul 08, 2005 2:34 pm

Postby Brian Donahue » Mon Mar 05, 2007 7:40 pm

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
 
Posts: 6590
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests