<?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: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62525.aspx</link><pubDate>Wed, 22 Dec 2010 19:33:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62525</guid><dc:creator>jyehwyle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62525</wfw:commentRss><description>&lt;p&gt;The web service is something I actually designed, but other applications from my company use it besides the one I&amp;#39;m making now. So I&amp;#39;d rather not change the web service.&lt;/p&gt;&lt;p&gt;Well, perhaps I&amp;#39;ll duplicate the method I&amp;#39;m using for my Infopath form and change the output format. Seems like the only option in Infopath to parse string arrays is to use custom code, and I really want to avoid that since I have a lot of rules in place.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62521.aspx</link><pubDate>Wed, 22 Dec 2010 16:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62521</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62521</wfw:commentRss><description>&lt;p&gt;After some searching around, it looks like this is a limitation of IPFS.&amp;nbsp; It seems browser-based forms don&amp;#39;t allow using XPath with filters (i.e. using brackets []).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Is the Web Service you&amp;#39;re calling something that your organization designed, or a third-party service?&amp;nbsp; If there&amp;#39;s any way to get the service to return the values in XML with named nodes, that might be an ideal solution to this issue.&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62516.aspx</link><pubDate>Wed, 22 Dec 2010 16:33:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62516</guid><dc:creator>jyehwyle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62516</wfw:commentRss><description>&lt;p&gt;Yeah, the expression works without the [] part. Here&amp;#39;s what I just tested.&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;GetADUser&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetADUserResponse/tns:GetADUserResult/tns:string[2]&lt;/p&gt;&lt;p&gt;Without the [] is what I posted in my original message. Is it possible an issue w/ Infopath Form Services? I&amp;#39;m publishing the form to Sharepoint. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62514.aspx</link><pubDate>Wed, 22 Dec 2010 16:29:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62514</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62514</wfw:commentRss><description>&lt;p&gt;Well, that &lt;em&gt;should&lt;/em&gt; work.&amp;nbsp; Are you saying it the expression is fine without the [] part, but as soon as you add the [] part it gives that error?&amp;nbsp; Could you paste the exact expressions you&amp;#39;re using with and without the [] part (and check the Show XPath checkbox before you do).&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62511.aspx</link><pubDate>Wed, 22 Dec 2010 16:20:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62511</guid><dc:creator>jyehwyle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62511.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62511</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;GetADUser&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetADUserResponse/tns:GetADUserResult/tns:string[&lt;b&gt;&lt;i&gt;&lt;u&gt;index&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;]&lt;/p&gt;
&lt;p&gt;should work.&amp;nbsp; Note that &lt;b&gt;&lt;i&gt;&lt;u&gt;index&lt;/u&gt;&lt;/i&gt;&lt;/b&gt; here is 1-based, not 0-based.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;That was the first thing I tried and it didn&amp;#39;t work. I tried it again, but every time I publish the form Infopath throws the below error. If only it was that easy to specify a specific item in the array.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;quot;&lt;i&gt;The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported function.&lt;/i&gt;&amp;quot;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62510.aspx</link><pubDate>Wed, 22 Dec 2010 16:08:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62510</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62510</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;GetADUser&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetADUserResponse/tns:GetADUserResult/tns:string[&lt;strong&gt;&lt;em&gt;&lt;u&gt;index&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;]&lt;/p&gt;
&lt;p&gt;should work.&amp;nbsp; Note that &lt;strong&gt;&lt;em&gt;&lt;u&gt;index&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; here is 1-based, not 0-based.&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62509.aspx</link><pubDate>Wed, 22 Dec 2010 15:59:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62509</guid><dc:creator>jyehwyle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62509.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62509</wfw:commentRss><description>&lt;p&gt;Thanks for the reply Ernesto.&lt;/p&gt;&lt;p&gt;However I don&amp;#39;t think filtering will work in my case since the AD web service I&amp;#39;m using returns a single dimension string array. The Qdabra web service seems to return key value pairs (or maybe a multi-dimensional array). I need to somehow specify the index of the string array in Infopath.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62498.aspx</link><pubDate>Wed, 22 Dec 2010 14:15:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62498</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62498.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62498</wfw:commentRss><description>&lt;p&gt;You can use filtering to pull down one specific item. We document this for our AD web service here:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/other_topics/entry56832.aspx"&gt;http://www.infopathdev.com/files/folders/other_topics/entry56832.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope it helps!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Parse string array from web service</title><link>https://www.infopathdev.com:443/forums/thread/62483.aspx</link><pubDate>Wed, 22 Dec 2010 00:18:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62483</guid><dc:creator>jyehwyle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62483</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m looking for some help with pulling data from a web service. The web service pulls user account info from Active Directory and returns a string array. The string array shows up as simply &amp;quot;string&amp;quot; under the web service data source in Infopath. When I set a field with the returned data and submit the form, only the first item in the array is actually returned. Is there a way to pull a specific item in the string array without using code? I&amp;#39;ve tried tweaking the xpath, but haven&amp;#39;t been successful. Here&amp;#39;s what the xpath looks like.&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;GetADUser&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetADUserResponse/tns:GetADUserResult/tns:string&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>