How to add a data connection to webservice in InfoPath programmatically? - InfoPath Dev
in

InfoPath Dev

How to add a data connection to webservice in InfoPath programmatically?

Last post 11-15-2010 04:55 AM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-09-2010 06:48 PM

    • slava
    • Not Ranked
    • Joined on 11-03-2010
    • Posts 3

    How to add a data connection to webservice in InfoPath programmatically?

    Hi! I would like to know how it is possible to add data connection to webservice in InfoPath form programmatically (using info path object model). I would like to set all connections may be OnLoad form event. I only found how to retrive data from webservice with different params in existed connection(wich was added by using button DataConnections - Add).
  • 11-14-2010 06:28 PM In reply to

    Re: How to add a data connection to webservice in InfoPath programmatically?

    Hi Slava,

    Have you looked at the InfoPath 2003 SDK? It includes coding samples for how to programmatically add data connections. Click on Resources on the right and browse to find the SDK. Lots of good stuff in that.

    Patrick Halstead
    Project Manager at Qdabra
  • 11-14-2010 07:31 PM In reply to

    • slava
    • Not Ranked
    • Joined on 11-03-2010
    • Posts 3

    Re: How to add a data connection to webservice in InfoPath programmatically?

    Hi Patrick, Thank you for SDK 2003, i couldnt find smth usefull for InfoPath 2010. I use InfoPath2010 , I think it differs from InfoPath 2003 in many ways, but I hope I will find smth that can help me. Did you find smth like SDK for InfoPath2010? I couldnt.
  • 11-15-2010 04:55 AM In reply to

    Re: How to add a data connection to webservice in InfoPath programmatically?

    In spite of MVP urging, Microsoft chose not to invest in writing an SDK for 2007 and 2010. However, the 2003 SDK is still quite useful and can show you how to do what you want with .NET. The .NET object model changed in 2007 and again in 2010 but that doesn't really afect the code much but it will a little. You should be able to figure it out. 2003 SDK is one of the best resources out there even for 2010 forms.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.