Hi,
I am trying to build an InfoPath form 2003 compatible (is a must) that populates multiple drop down boxes using a web service. The form is going to be published on SharePoint 2007.
The web service is also deployed on SharePoint, on localhost/_vti_bin/mycWebService.asmx.
I would like to programatically modify the URL of the web service each time I deploy the form on SharePoint.
So my idea was to code OnFormLoad() as :
Uri templateUri = Template.Uri;
UriBuilder serviceUri = new UriBuilder(templateUri.Scheme, templateUri.Host, templateUri.Port);
serviceUri.Path = "/_vti_bin/mycWebService.asmx";
DataConnection conn = DataConnections["getNames"];
WebServiceConnection wbC = (WebServiceConnection)conn;
wbC.ServiceUrl = serviceUri.Uri;
Unfortunately this is 2007 Code, so I need to convert into 2003 code.
And now, I am kind of lost. I can't seem to find the a document that describes Object Model for 2003.
Thank You for any details,
Andrei Gavrila