08.08.2017 Views

designer

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

188 Chapter 6 Working with Data Sources<br />

Connecting to SOAP Services<br />

A SOAP service, also known as an XML Web service, transports XML data between computer<br />

systems by using Simple Object Access Protocol (SOAP) over HTTP or HTTPS.<br />

SharePoint can act as a SOAP service requester or client—that is, it can request XML<br />

data from a SOAP service and present the data by using a Data View. As with server-side<br />

scripts, the requester can send XML data, instructions (known as methods), parameters,<br />

and values to the XML Web service provider, depending on how the SOAP service is<br />

written. The methods and parameters that a SOAP service supports are described in a<br />

Web Service Description Language (WSDL) file. If a SOAP service supports data manipulation,<br />

you will be able to select, insert, update, or delete data on the XML Web service<br />

provider by using the Data Source Properties dialog box to configure each command.<br />

SharePoint also acts as a SOAP service provider, exposed as an ASP.NET Web service, to<br />

supply XML data to other computer systems. Using SharePoint Designer, you can build<br />

client-side applications that use ASP.NET Web services to request data that is not stored<br />

in your team site. The SharePoint SOAP service interface query mechanism requires<br />

the use of Collaborative Application Markup Language (CAML), which is a proprietary<br />

markup language specific to SharePoint technologies. The retrieval of some data might<br />

be quite complex and require the skills of a developer.<br />

SharePoint 2010 introduces new methods of providing data to remote systems—the<br />

client-side object model and the SharePoint Foundation REST interface. These two providers<br />

should be used in preference to the legacy ASP.NET Web services. However, the<br />

SharePoint Foundation REST interface, which is detailed in the next section, can only<br />

retrieve information from lists and libraries; developer skills are needed to use the clientside<br />

object model. Still, you might find the SharePoint Foundation and SharePoint Server<br />

Web services useful as you build your solutions with SharePoint Designer.<br />

See Also More information about SharePoint Foundation and data access for client<br />

applications can be found at msdn.microsoft.com/en-us/library/ff798473.aspx. Information<br />

about SharePoint 2010 Web services can be found at msdn.microsoft.com/en-us/library/<br />

ee705814.aspx.<br />

In this exercise, you add a SOAP service connection as a data source.<br />

SET UP Using SharePoint Designer, open the site you used in the previous exercise.<br />

Open the DataSourceTest.aspx page and the Data Sources gallery page if they are not<br />

already open.<br />

SOAP Service<br />

Connection<br />

1. Click the Data Sources gallery page to activate the commands on the Data<br />

Sources tab, and then click SOAP Service Connection.<br />

The Data Source Properties dialog box opens.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!