Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have two web apps running on my SharePoint 2010 server. one called Intranet.company.com and one called Search.company.com

Authenticated users have read permissions on both web apps, and I am logged in to SharePoint designer as a user that is a SCA on both.

I wish to display some search results in a DVWP using a QueryEx SOAP data source from search.company.com/_vti_bin/search.asmx on a page in intranet.company.com.

However, every time I do, the ULS logs are showing either of these two errors.

If the data source login is either set to use Windows Authentication or none:

SOAP exception: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
     at System.Net.HttpWebRequest.GetResponse()
     at Microsoft.SharePoint.WebControls.SoapDataSource.GetResponseString(SoapCommand currentSoapCommand)
     at Microsoft.SharePoint.WebControls.SoapDataSource.ExecuteInternal(SoapCommand currentSoapCommand)
     at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request)
     at Microsoft.SharePoint.WebControls.BaseXmlDataSource.GetXmlDocument()
     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXMLDomInternal(ResultContentType eQueryType)
     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXMLDom(ResultContentType eQueryType)
     at Microsoft.SharePoint.SoapServer.WebPartPagesWebService.GetDataFromDataSourceControl(String dscXml, String contextUrl)

If the data source login is set to use a clear text username password of any valid user account.

SOAP exception: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
     at System.Net.HttpWebRequest.GetResponse()
     at Microsoft.SharePoint.WebControls.SoapDataSource.GetResponseString(SoapCommand currentSoapCommand)
     at Microsoft.SharePoint.WebControls.SoapDataSource.ExecuteInternal(SoapCommand currentSoapCommand)
     at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request)
     at Microsoft.SharePoint.WebControls.BaseXmlDataSource.GetXmlDocument()
     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXMLDomInternal(ResultContentType eQueryType)
     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXMLDom(ResultContentType eQueryType)
     at Microsoft.SharePoint.SoapServer.WebPartPagesWebService.GetDataFromDataSourceControl(String dscXml, String contextUrl)

The QueryEx xml parameter in the datasource is.

<QueryPacket><Query><Context><QueryText language='xml:lang' type='STRING'>Thomas</QueryText></Context></Query></QueryPacket>

If I have not provided enough details of the problem please let me know.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.