<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/7418.aspx</link><pubDate>Thu, 11 Aug 2005 06:14:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7418</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7418.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7418</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Like I say in my last post the easy way to verify the path in your secondary datasource is first see in design mode data source menu if your query fields exist&lt;br /&gt;&lt;br /&gt;if not make an update of your secondary datasource for do this go on tools, dataconnection and clik your datasource (getPatient)and click modify do one more time this wizard and your data source is uptdated now see if your query fields are here!&lt;br /&gt;&lt;br /&gt;and after to that step by step and after delete this control:&lt;br /&gt;&lt;br /&gt;Put an expression box in design mode.&lt;br /&gt;click Fx and after insert field or group&lt;br /&gt;choose the field of your desire (in your case the query fields "SearchColumn")&lt;br /&gt;after click the checkbox "edit XPath(advanced)" and infopath show you the good path compare with the path that you have in your code!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/7417.aspx</link><pubDate>Thu, 11 Aug 2005 03:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7417</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7417</wfw:commentRss><description>Hi Speddi, &lt;br /&gt;When you created the webservice connection, did you get the parameters to fill out?&lt;br /&gt;If you got parameters to fill, then you should be able to see the prameters in the datasourse section in the InfoPath designer taskpane.&lt;br /&gt;&lt;br /&gt;If the parameters are avalilable in the datasource, now open the dataconnections .xml file and check out if the parameters are available.&lt;br /&gt;&lt;br /&gt;please check out all of the above things.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/7416.aspx</link><pubDate>Wed, 10 Aug 2005 16:54:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7416</guid><dc:creator>speddi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7416</wfw:commentRss><description>does not work.&lt;br /&gt;&lt;br /&gt;I was debugging this and found out that there are no child nodes under dfs:queryfields&lt;br /&gt;&lt;br /&gt;i debugges the following piece of code&lt;br /&gt;domXML.selectSingleNode("dfs:myFields/dfs:queryFields")&lt;br /&gt;&lt;br /&gt;Am i missing anything.  Any help on this will be greatly appreciated&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;--Sumanth.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;speddi</description></item><item><title>Re: Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/7415.aspx</link><pubDate>Wed, 10 Aug 2005 09:07:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7415</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7415</wfw:commentRss><description>Hi speddi,&lt;br /&gt;&lt;br /&gt;Are you that RidNode1 is not empty? if you put this value in a string like this:&lt;br /&gt;&lt;br /&gt;string toto= RidNode.text; &lt;br /&gt;&lt;br /&gt;Have somethings inner? Put break point in the debugger for see &lt;br /&gt;&lt;br /&gt;If it's the case! Are you sure that QueryInput has the good path in your secondary datasource? You can verify! Put an expression box in design mode click Fx and after insert field or group choose the field of your desire and after click  edit XPath(advanced) and infopath show you the good path compare with the path that you have in your code!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/7414.aspx</link><pubDate>Tue, 09 Aug 2005 15:31:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7414</guid><dc:creator>speddi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7414</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument3 domXML = (IXMLDOMDocument3) thisXDocument.DataObjects["getPatient"].DOM;&lt;br /&gt;				domXML.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:s0=\"http://tempuri.org/\"");&lt;br /&gt;				IXMLDOMNode QueryInput = objDO.DOM.selectSingleNode("dfs:myFields/dfs:queryFields/s0:getPatient/s0:SearchColumn");&lt;br /&gt;				IXMLDOMNode RidNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:SearchGroup/my:ddlSearch");&lt;br /&gt;				QueryInput.text = RidNode.text;&lt;br /&gt;&lt;br /&gt;I tried what you have suggested and still get a System.NullReferenceException at the last line of the code given above.  For some reason when I view domXML in the debuggeer window then I see that the node value is System.DBNull.Value and nodetypedvalue is System.DBNull.value am I missing something.&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;speddi</description></item><item><title>Re: Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/7413.aspx</link><pubDate>Tue, 09 Aug 2005 04:30:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7413</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7413</wfw:commentRss><description>Hi Speddi,&lt;br /&gt;On which line you are getting error here.&lt;br /&gt;Try this out and let me know, on which line you are getting the error.&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument3 domXML =  (IXMLDOMDocument3) thisXDocument.DataObjects["getPatient"];&lt;br /&gt;domXML.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:s0=\"http://tempuri.org/\"");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Querying a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/4841.aspx</link><pubDate>Mon, 08 Aug 2005 21:32:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4841</guid><dc:creator>speddi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4841</wfw:commentRss><description>Hi!  I am trying to query a web service through managed code but somehow get this message that.  The web service takes to input parameters namely serachcolumn and searchtext.&lt;br /&gt;&lt;br /&gt;System.NullReferenceException&lt;br /&gt;Object reference not set to an instance of an object.&lt;br /&gt;   at HLA.HLA.CTRL3_22_OnClick(DocActionEvent e) in c:\hla\formcode.cs:line 60&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is the code that I am following:&lt;br /&gt;&lt;br /&gt;DataObject objDO = null;&lt;br /&gt;				objDO = thisXDocument.DataObjects["getPatient"];&lt;br /&gt;&lt;br /&gt;				IXMLDOMDocument3 domXML = (IXMLDOMDocument3) objDO.DOM;&lt;br /&gt;				domXML.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:s0=\"http://tempuri.org/\"");&lt;br /&gt;				IXMLDOMNode QueryInput = objDO.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/s0:getPatient/s0:SearchColumn" );&lt;br /&gt;				IXMLDOMNode RidNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:SearchGroup/my:ddlSearch");&lt;br /&gt;				QueryInput.text = RidNode.text;&lt;br /&gt;				objDO.Query();&lt;br /&gt;&lt;br /&gt;				IXMLDOMNode QueryInput1 = objDO.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/s0:getPatient/s0:SearchText" );  &lt;br /&gt;				IXMLDOMNode RidNode1 = thisXDocument.DOM.selectSingleNode("/my:myFields/my:SearchGroup/my:txtSearch");&lt;br /&gt;&lt;br /&gt;				QueryInput1.text = RidNode1.text;&lt;br /&gt;				objDO.Query();&lt;br /&gt;&lt;br /&gt;I tried to follow the article listed in infopath dev using IXMLDOMDocument3 and changing the property it somehow does not work any suggestions!!!&lt;br /&gt;&lt;br /&gt;Thanks in advacne&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;speddi</description></item></channel></rss>