Microsoft Knowledge Base Email Alertz

Error message when you try to retrieve data from an XML Web service in SharePoint Designer 2007: Server returned a non-specific error when trying to get data from the data source

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 923173 - Last Review: November 3, 2006 - Revision: 1.3

Error message when you try to retrieve data from an XML Web service in SharePoint Designer 2007: "Server returned a non-specific error when trying to get data from the data source"

SYMPTOMS

You open a Microsoft Windows SharePoint Services 3.0 Web site in Microsoft Office SharePoint Designer 2007. Then, you connect to an XML Web service. However, when you click Show Data to retrieve data from the XML Web service, you receive the following error message:
The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator.

CAUSE

This issue occurs if the following conditions are true:
  • You connect to an XML Web service that is outside your firewall.
  • You do not specify the proxy server.

RESOLUTION

To resolve this issue, add the proxy server information to the global Web.config file on the computer that is running Windows SharePoint Services 3.0. To do this, follow these steps:
  1. Start Internet Information Services (IIS) Manager.
  2. Expand ServerName, and then expand Web Sites.
  3. Right-click the SharePoint Web site that is the content Web site, and then click Properties.
  4. Click the Home Directory tab, right-click the path that is displayed in the Local Path box, and then click Copy.
  5. Click Start, click Run, right-click the Open box, and then click Paste. Then, click OK.
  6. Right-click the Web.config file, point to Open With, and then click Choose Program.
  7. In the Open With dialog box, click Notepad in the Programs list, and then click OK.
  8. Copy the following lines to the <configuration> section of the Web.config file.
    <system.net>
        <defaultProxy>
          <proxy proxyaddress="http://ProxyServer:PortNumber" bypassonlocal="true" />
        </defaultProxy>
    </system.net>
    
    Note Replace ProxyServer with the name of the proxy server and PortNumber with the port number.
  9. Save the file, and then close the file.

MORE INFORMATION

For more information about how to connect to and work with an XML Web service in SharePoint Designer 2007, click Microsoft Office SharePoint Designer Help on the Help menu, type XML Web service, and then click Search to view a list of relevant topics.

APPLIES TO
  • Microsoft Office SharePoint Designer 2007, when used with:
    • Microsoft Windows SharePoint Services 3.0
Keywords: 
kbtshoot kberrmsg kbexpertiseinter kbprb KB923173
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate