J
Jose
We have developed a workflow system based in Sharepoint and fully trusted
Infopath SP1 forms. The Infopath forms use web services in two roles: 1) as
secondary data sources to populate dropdowns, and 2) in NET managed code to
extract data or to write selected data items to an SQL Server database.
The web services are hosted in an IIS website on port 81, separate from the
Sharepoint website. Other NET apps use these web services without problem
The Problem:
1. In Development Mode, the forms works well and the webservices retrieve
the data without difficulty.
2. In "stand-alone" or production mode, the web services embedded in the NET
managed code work fine, but the webservices that feed the secondary data
sources do not.
3. Example of the NET code that works is as follows:
Dim ws As New ws.WSInsuranceLossReport
Dim iGIGNo As Long
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
iGIGNo = ws.GetNewGIGNumber
4. The problem subsists even when i take the form out of Sharepoint and try
to open it from the trusted directory by double-clicking on it.
I surmise that my problem is with credentials associated with the secondary
datasource web services, but I don't know how to assign credentials to
secondary data sources.
Other pertinent facts about the operating environment are:
1. All Infopath forms are fully trusted
2. The forms are deployed using msi packages created with RegForm. The forms
are not signed
3. IIS hosts the webservice in a website on port 81. Sharepoint uses a
website on port 80
4. The IIS has Authentication Access set to Integrated Windows Authentication
5. The IIS is in the same domain as the database and the client computers
6. Security Options in client's Infopath is set to "allow fully trusted
forms to access files and settings in my computer"
I think my problem is in setting adequate credentials to web services used
as secondary data sources. How can I do this?
Thanks
Jose
Infopath SP1 forms. The Infopath forms use web services in two roles: 1) as
secondary data sources to populate dropdowns, and 2) in NET managed code to
extract data or to write selected data items to an SQL Server database.
The web services are hosted in an IIS website on port 81, separate from the
Sharepoint website. Other NET apps use these web services without problem
The Problem:
1. In Development Mode, the forms works well and the webservices retrieve
the data without difficulty.
2. In "stand-alone" or production mode, the web services embedded in the NET
managed code work fine, but the webservices that feed the secondary data
sources do not.
3. Example of the NET code that works is as follows:
Dim ws As New ws.WSInsuranceLossReport
Dim iGIGNo As Long
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
iGIGNo = ws.GetNewGIGNumber
4. The problem subsists even when i take the form out of Sharepoint and try
to open it from the trusted directory by double-clicking on it.
I surmise that my problem is with credentials associated with the secondary
datasource web services, but I don't know how to assign credentials to
secondary data sources.
Other pertinent facts about the operating environment are:
1. All Infopath forms are fully trusted
2. The forms are deployed using msi packages created with RegForm. The forms
are not signed
3. IIS hosts the webservice in a website on port 81. Sharepoint uses a
website on port 80
4. The IIS has Authentication Access set to Integrated Windows Authentication
5. The IIS is in the same domain as the database and the client computers
6. Security Options in client's Infopath is set to "allow fully trusted
forms to access files and settings in my computer"
I think my problem is in setting adequate credentials to web services used
as secondary data sources. How can I do this?
Thanks
Jose