Retrieving Data from a Web Service Using Browser Enabled Froms (infopath 2007/ moss 2007) - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Retrieving Data from a Web Service Using Browser Enabled Froms (infopath 2007/ moss 2007)

Last post 11-04-2007 07:23 PM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-03-2007 03:05 AM

    Retrieving Data from a Web Service Using Browser Enabled Froms (infopath 2007/ moss 2007)

    HI all,

    I have written a simple web service that returns a string value:

    here is the code for the web service:

    <WebMethod> _

    Public Function getString() as String

    Return "TestString"

    End Function

    If i test the webservice from the service.asmx page it returns the correct value and works.

    Next i created a browser enabled from with a field called test-string-text-box

    I have created a secondary data connection to a the web service called getString, and disabled the store a copy on form option and left the automatically retrieve data option enabled.

     Next i went to the form open options and set the following actions:

    1 - Query data using a web service: getString

    2 - set a fields value: test-string-text-box = result of the getString web service retrieval.

     I converted the data connection to a UCDX file and tried both link typ relative and link type store options, approving the UDCX files and uploading them to the central data connection store.

     Lastly i pulbished the form as a content type to a MOSS 2007 sharepoint library.

    When i open the form it does not set the value of the text box to the result of the get string command.

    I have no idea what the problem is, any suggestions?

     Thanks in advance.

     

     

  • 11-04-2007 07:23 PM In reply to

    Re: Retrieving Data from a Web Service Using Browser Enabled Froms (infopath 2007/ moss 2007)

    You have your data connection, which is queried automatically.  This is done before the open rules. I see how this could be confusing but if you have query parameters you have to run the data connection manually.

    So you would need to query the Data connection again in your rules after you set your parameters.  I think that is your issue because it does not look like you are running it again after you set the values.

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