Soap Webservice: dealing with nulls
Hi all,
I'm having some trouble trying to call a WS.
I need to test an error message when the request has a null element.
I found that in SOAPUI you have to set a "xsi:nil" property to "true" for the tag you want to make null, but I don't know how to make it with TestComplete.
This is part of my VBScript code:
...
Dim Service: Service = "myservice"
Dim Method: Method = "mymethod"
Dim WSName: WSName = "myWS"
' preparing the input
Set RequestObj = UtilWS.WSinit( Service, Method )
RequestObj.before = Null ' this is a Date field
Set ServiceInfo = WebServices.CreateWebServiceInfoFromItem( WSName )
Set RequestXml = ServiceInfo.PrepareRequest( MethodName, RequestObj )
log.Message "Request ready", RequestXml.xml
...
Tthe tag "before" is not in the xml...
How can I tell "PrepareRequest" to use the "xsi:nil" attribute for the Null tags?
Thanks