Take the 2-minute tour ×
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
add comment

1 Answer 1

@greensmith I don't have anough reputation to post a comment, but did you ever find an answer to this? I am having a similar problem.

share|improve this answer
    
Unfortunately not. I am no longer working on the project that this was used for either - so I don't know if it has been resolved. Sorry. –  greensmith Sep 27 '13 at 13:39
    
Thanks @greensmith. I couldn't find a solution in a "reasonable" amount of time so I let it go and performed the request (using the same soap request??) with ajax then processed the response XMl with JavaScript, specifically jQuery. It wasn't what I wanted originally but it works very well. –  Kernel Panic Sep 27 '13 at 15:12
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.