Dynamic WSDL address on a secondary datasource - InfoPath Dev
in

InfoPath Dev

Dynamic WSDL address on a secondary datasource

Last post 06-15-2007 12:02 PM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-14-2007 07:59 AM

    Dynamic WSDL address on a secondary datasource

    Anyone know how to dynamically change the URL address that a secondary data source uses for a web service, or at least have it point to a form field so that I can change it dynamically?   Maybe I am asking too much, but I would like to avoid messing with the source xml files because if someone re-publishes the form they won't remember to update the files under the covers.    I know, I know, can I have my cake and eat it too?

    I would like to avoid having to change it manually each time we publish to a different server (dev/qa/prod).

     thanks.

  • 06-15-2007 12:02 PM In reply to

    Re: Dynamic WSDL address on a secondary datasource

    Hi blackhawk,

    You can do this, but I can't remember off the top of my head.  You'll want to look at either thisXDocument.DataAdapters or .DataObjects.  Once you get one of those objects you can programatically set which web service URL they point to.

    With that said, we also have a deployment tool that you might be interested in.  After you create a config file, you can run this guy on the dev-version XSN to inject all the right data connections, and then just push it up to your server.

    http://www.qdabra.com/proddetail.asp?prod=QDeployment

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.