No data from SQL Web Service data source (works fine in InfoPath client, not in browser) - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

No data from SQL Web Service data source (works fine in InfoPath client, not in browser)

Last post 10-20-2007 04:03 PM by glenc. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-20-2007 03:43 PM

    • glenc
    • Not Ranked
    • Joined on 10-20-2007
    • Posts 2

    No data from SQL Web Service data source (works fine in InfoPath client, not in browser)

    I have a form that calls a stored procedure in a SQL 2005 database.  The stored procedure is exposed via web services (HTTP Endpoints).  I am using SharePoint's SSO infrastructure to pass authentication to SQL.  When I load my form in the InfoPath client (after publishing it to a doc lib) it works fine.  But when I open it in a browser, i don't get any results bound to my control (drop down).

    Has anyone experienced this before?

    The bizarre thing is that if I write some code in the Form_Loading event, I can see that the data is there.  I can pull the OuterXml of the data connection and display it in my form.  But the drop down never binds to it.  In the same exact form, if I add another data connection bound to a SharePoint list, the data loads successfully.  It seems like there is some sort of delay when the server is calling the stored procedure - it's like the form continues rendering and returns to the browser before the data is done loading. 

  • 10-20-2007 04:03 PM In reply to

    • glenc
    • Not Ranked
    • Joined on 10-20-2007
    • Posts 2

    Re: No data from SQL Web Service data source (works fine in InfoPath client, not in browser)

    Okay - nevermind.  I figured it out.

    The XML returned from the SQL web service doesn't match the sample schema that InfoPath set up initially.  So the data is there, but the XPath doesn't work.

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