Problem when using User Profile service - InfoPath Dev
in

InfoPath Dev

Problem when using User Profile service

Last post 01-01-2011 09:34 AM by hoangleho. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 01-01-2011 09:34 AM

    Problem when using User Profile service

    Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    Hi all Gurus,

     

    I have a problem with InfoPath form. My scenario is as below:

    Overview:

    We have a SharePoint. Following are some assumptions:

    1.       In local network, the URL of the site is: http://server/

    2.       In Internet, The URL to access to the site from Internet is: http://www.mydomain.com/

    3.       User from Internet can NOT access to the site by using local URL (http://server/)

    4.       User from Intranet CAN access to the site using Internet URL (http://www.mydomain.com/)

    5.       The SharePoint Server CAN NOT access to the site using Internet URL

    6.       We use User Profile Web service to get some properties such as: FirstName, Manager … to fill out to my InfoPath form

    7.       We use MOSS 2007

    8.       OS: Window Server 2008

    9.       SharePoint & SQL database are installed together on the server.

    SCENARIO 1: Use Intranet URL

    We develop an InfoPath form. We use following URL to get the user profile properties:

    http://server/_vti_bin/UserProfileService.asmx?WSDL

    If we use the form in my network, the form will work correctly. That means we can get the properties.

    If we use the form from Internet (assume that we access from outside of my network), the form will not work. I think it will not know the local URL.

    SCENARIO 2: Use Internet URL

    We still use this form. But for user profile service, we now use following URL

    http://www.mydomain.com/_vti_bin/UserProfileService.asmx?WSDL

    After we make a data connection using the above web service. We found the error as below:

    An error occurred accessing a data source.

    An entry has been added to the Windows event log of the server.

    Log ID:5566

    --------------------

     

    In the log file of SharePoint (In 12\LOGS) I find the error as below:

     

    01/01/2011 18:23:01.08 w3wp.exe (0x244C)                       0x0D04 Forms Server                     Forms Services Data Objects       13zh                Exception            System.Net.WebException: The operation has timed out     at System.Net.HttpWebRequest.GetRequestStream()     at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.CreateSoapRequestSyncInternal(XmlDocument soapRequestXml, String soapRequestString, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, DataAdapterCredentials credentials)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.CreateSoapRequestSync(XmlDocument soapRequest, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, DataAdapterCredentials credentials)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, ...           34498405-23dd-4f66-b9f3-9d63416e5102

    01/01/2011 18:23:01.08*               w3wp.exe (0x244C)                       0x0D04 Forms Server                     Forms Services Data Objects                   13zh       Exception            ...Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, Solution solution, Document document, String name, Boolean isQuery, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Boolean useDcl, Boolean usePr 34498405-23dd-4f66-b9f3-9d63416e5102

    01/01/2011 18:23:01.09 w3wp.exe (0x244C)                       0x0D04 Forms Server                     Forms Services Data Objects       7tfk                Medium               Data adapter failed during OnLoad: The operation has timed out               34498405-23dd-4f66-b9f3-9d63416e5102

    01/01/2011 18:23:01.15 w3wp.exe (0x244C)                       0x0D04 Forms Server                     Forms Services Runtime - Data C                82fy       Warning               The following query failed: GetUserProfileByName (User: MYDOMAIN\My ACC, Form Name: Requests, IP: , Request: http://www.mydomain.com/_layouts/FormServer.aspx?XsnLocation=/sites/hr/vacreq/requests/forms/template.xsn?defaultitemopen=1, Form ID: urn:schemas-microsoft-com:office:infopath:Requests:-myXSD-2005-10-21T21-12-27, Type: DataAdapterException, Exception Message: The operation has timed out The operation has timed out)   34498405-23dd-4f66-b9f3-9d63416e5102

     

    Anyone help me to solve my problem?

    Thanks in advance,

    Hai

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