<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17970.aspx</link><pubDate>Wed, 07 Mar 2007 18:27:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17970</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17970</wfw:commentRss><description>That is one way -- probably the easiest. The other way is to use insertBefore() or appendChild() functions to add the nodes. But, of course, they must be valid nodes for that WebService query parameters. It's probably safest to just do like you already did.</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17969.aspx</link><pubDate>Tue, 06 Mar 2007 22:59:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17969</guid><dc:creator>dlamp24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17969</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;Thanks for your help.  You were correct and it helped alot to extract the form files.  I also had a question about adding parameters using Jscript.  I got it to work by add a blank parameter via the wizard and then using DOM I changed tha value.  Is there a better way to do this or is this it?&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17968.aspx</link><pubDate>Tue, 06 Mar 2007 19:55:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17968</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17968</wfw:commentRss><description>Displaying the XML in the alert will not show the true results. You will need to extract your form files and look at the actual .xml file created by InfoPath when you established your data connection.&lt;br /&gt;&lt;br /&gt;For example, the fact that your XML shows the following:&lt;br /&gt;&lt;br /&gt;&amp;lt;GetDirectivesResponse xmlns=\"http://localhost/LinkService/LinkService.asmx\"&amp;gt;&lt;br /&gt;&lt;br /&gt;indicates that GetDirectivesResponse uses the 'tns' namespace. So at least that node will require the 'tns:' to be added to it.&lt;br /&gt;&lt;br /&gt;Looking at the contents of the ACTUAL file will reveal what namespace (if any) each node is required to have.</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17967.aspx</link><pubDate>Tue, 06 Mar 2007 16:05:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17967</guid><dc:creator>dlamp24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17967</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;Thanks for the help.  I set the other property and still does not work.  I created an alert to display the xml to see the actual xml and it exactly like the xml I posted before. So, the path you posted does not work.  Any other ideas?  Based on the xml this path should work: &lt;br /&gt;&lt;br /&gt;/dfs:myFields/dfs:dataFields/GetDirectivesResponse/GetDirectivesResult/Content&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17966.aspx</link><pubDate>Mon, 05 Mar 2007 22:56:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17966</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17966</wfw:commentRss><description>You need to make sure you include all the appropriate namespaces. The XML you display above doesn't actually show the namespaces on each node... but they are still there. If you were to open the .xml file created when you set up your data connection you would be able to see a valid namespace on each node.&lt;br /&gt;&lt;br /&gt;You will need to set both namespaces in the setProperty() function. Then most likely your xpath should be something like (but you have to verify the namespaces per node):&lt;br /&gt;&lt;br /&gt;/dfs:myFields/dfs:dataFields/tns:GetDirectivesResponse/tns:GetDirectivesResult/tns:Content</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17965.aspx</link><pubDate>Mon, 05 Mar 2007 20:04:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17965</guid><dc:creator>dlamp24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17965</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;Thanks for the help.  I am struggling parsing through the xml response from the web service call.  I have the following xml response: &lt;br /&gt;&lt;br /&gt;[left]&amp;lt;dfs:myFields xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:tns=\"http://localhost/LinkService/LinkService.asmx\"&amp;gt;&lt;br /&gt;	&amp;lt;dfs:queryFields&amp;gt;&lt;br /&gt;		&amp;lt;tns:GetDirectives&amp;gt;&amp;lt;/tns:GetDirectives&amp;gt;&lt;br /&gt;	&amp;lt;/dfs:queryFields&amp;gt;&lt;br /&gt;	&amp;lt;dfs:dataFields&amp;gt;&lt;br /&gt;		&amp;lt;GetDirectivesResponse xmlns=\"http://localhost/LinkService/LinkService.asmx\"&amp;gt;&lt;br /&gt;			&amp;lt;GetDirectivesResult&amp;gt;&lt;br /&gt;				&amp;lt;Content&amp;gt;&lt;br /&gt;					&amp;lt;treeObjectID&amp;gt;2&amp;lt;/treeObjectID&amp;gt;&lt;br /&gt;					&amp;lt;parentObjectID&amp;gt;0&amp;lt;/parentObjectID&amp;gt;&lt;br /&gt;					&amp;lt;label&amp;gt;General Manual&amp;lt;/label&amp;gt;&lt;br /&gt;					&amp;lt;contentItemID&amp;gt;0&amp;lt;/contentItemID&amp;gt;&lt;br /&gt;					&amp;lt;fileID&amp;gt;0&amp;lt;/fileID&amp;gt;&lt;br /&gt;					&amp;lt;citation&amp;gt;GM&amp;lt;/citation&amp;gt;&lt;br /&gt;					&amp;lt;displayOrder&amp;gt;1&amp;lt;/displayOrder&amp;gt;&lt;br /&gt;					&amp;lt;hidden&amp;gt;false&amp;lt;/hidden&amp;gt;&lt;br /&gt;					&amp;lt;maxDisplay&amp;gt;10&amp;lt;/maxDisplay&amp;gt;&lt;br /&gt;					&amp;lt;allowRollUp&amp;gt;false&amp;lt;/allowRollUp&amp;gt;&lt;br /&gt;				&amp;lt;/Content&amp;gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;I am using the following jscript code to parse the xml.  I cannot get it to work.  &lt;b&gt;Any ideas?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;domXML = XDocument.GetDOM("GetDirectives");&lt;br /&gt;	domXML.setProperty("SelectionNamespaces", "xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution'");&lt;br /&gt;&lt;br /&gt;	var objWorkflowNodes = domXML.selectNodes("/dfs:myFields/dfs:dataFields/GetDirectivesResponse/GetDirectivesResult/Content");&lt;br /&gt;&lt;br /&gt;objWorkflowNodes.Length = 0</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17964.aspx</link><pubDate>Fri, 02 Mar 2007 20:33:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17964</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17964.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17964</wfw:commentRss><description>yes to both. You establish the data connection using the designer. Then in script, you can set the parameters and call the Method function as necessary. The last page of the data connection wizard has a check box that you can clear in order to prevent the WS from being called onload.</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17963.aspx</link><pubDate>Fri, 02 Mar 2007 20:16:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17963</guid><dc:creator>dlamp24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17963</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;Thanks for the reply. When using Web Service Data Connection can I do the following:&lt;br /&gt;&lt;br /&gt;1) Pass paramters?&lt;br /&gt;2) Call it not as start up but rather using jscript for certain events?&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17962.aspx</link><pubDate>Fri, 02 Mar 2007 19:52:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17962</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17962</wfw:commentRss><description>If you are using a Web Service Data Connection, then you should not require full trust. If you are trying to write all the script needed to communicate directly with the Web sercice, then you might need full trust (not sure).</description></item><item><title>Trust Question</title><link>https://www.infopathdev.com:443/forums/thread/17584.aspx</link><pubDate>Fri, 02 Mar 2007 17:34:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17584</guid><dc:creator>dlamp24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17584</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;In an InfoPath form I need to access a few web services using Jscript.  Accessing the web services via JScript force me to create a fully trusted form?&lt;br /&gt;&lt;br /&gt;Thanks</description></item></channel></rss>