Pass parameter to a Web Service - InfoPath Dev
in

InfoPath Dev

Pass parameter to a Web Service

Last post 06-14-2006 04:15 AM by liorlankri. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-14-2006 02:24 AM

    Pass parameter to a Web Service

    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???
  • 06-14-2006 03:48 AM In reply to

    Re: Pass parameter to a Web Service

    Try setting it to 1.
    Jason
    http://www.k2distillery.com/
  • 06-14-2006 04:15 AM In reply to

    Re: Pass parameter to a Web Service

    It's work!!!!

    Thanks
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.