I have in my form a Data Connection to a Web Service (type Recive).
There are 2 parameters that the WS get (the methode),first one type string (called "Name") and seconed type boolean (calles "IsExist"). In my form I have this code:
Set dataObj=XDocument.DataObjects("AAA")
Set dataDom=dataObj.DOM
dataDom.setProperty _
"SelectionNamespaces","xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " & _
"xmlns:tns=""http://tempuri.org/"" "
dataDom.selectSingleNode ("/dfs:myFields/dfs:queryFields/tns:AAA/tns:IsExist").text=true
dataDom.selectSingleNode ("/dfs:myFields/dfs:queryFields/tns:AAA/tns:Name").text=strName
I get Error : " The string was not recognized as a valid Boolean value"
What is the problem???