StsAdapter
Click here for a complete list of operations.
queryRequest
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /_vti_bin/dspsts.asmx HTTP/1.1 Host: www.courts.ri.gov Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://schemas.microsoft.com/sharepoint/dsp/queryRequest" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <authentication xmlns="http://schemas.microsoft.com/sharepoint/dsp">xml</authentication> <dataRoot allowRemoteDataAccess="boolean" xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <root>string</root> </dataRoot> <request document="content or system" method="query" xmlns="http://schemas.microsoft.com/sharepoint/dsp" /> <versions xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <version>string</version> <version>string</version> </versions> </soap:Header> <soap:Body> <queryRequest xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <dsQuery select="string" resultContent="both or schemaOnly or dataOnly" columnMapping="element or attribute" resultNamespace="string" resultPrefix="string" resultRoot="string" resultRow="string" startPosition="string" comparisonLocale="string"> <Query RowLimit="long"> <ServerParameterInfo /> <Fields> <Field xsi:nil="true" /> <Field xsi:nil="true" /> <AllFields xsi:nil="true" /> </Fields> <ServerParameters> <ServerParameter xsi:nil="true" /> <ServerParameter xsi:nil="true" /> </ServerParameters> <Where>xml</Where> <OrderBy> <OrderField xsi:nil="true" /> <OrderField xsi:nil="true" /> </OrderBy> </Query> </dsQuery> <ptQuery>xml</ptQuery> </queryRequest> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <versions xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <version>string</version> <version>string</version> </versions> </soap:Header> <soap:Body> <queryResponse xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <xsd:schema>schema</xsd:schema>xml</queryResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /_vti_bin/dspsts.asmx HTTP/1.1 Host: www.courts.ri.gov Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <authentication xmlns="http://schemas.microsoft.com/sharepoint/dsp">xml</authentication> <dataRoot allowRemoteDataAccess="boolean" xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <root>string</root> </dataRoot> <request document="content or system" method="query" xmlns="http://schemas.microsoft.com/sharepoint/dsp" /> <versions xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <version>string</version> <version>string</version> </versions> </soap12:Header> <soap12:Body> <queryRequest xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <dsQuery select="string" resultContent="both or schemaOnly or dataOnly" columnMapping="element or attribute" resultNamespace="string" resultPrefix="string" resultRoot="string" resultRow="string" startPosition="string" comparisonLocale="string"> <Query RowLimit="long"> <ServerParameterInfo /> <Fields> <Field xsi:nil="true" /> <Field xsi:nil="true" /> <AllFields xsi:nil="true" /> </Fields> <ServerParameters> <ServerParameter xsi:nil="true" /> <ServerParameter xsi:nil="true" /> </ServerParameters> <Where>xml</Where> <OrderBy> <OrderField xsi:nil="true" /> <OrderField xsi:nil="true" /> </OrderBy> </Query> </dsQuery> <ptQuery>xml</ptQuery> </queryRequest> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <versions xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <version>string</version> <version>string</version> </versions> </soap12:Header> <soap12:Body> <queryResponse xmlns="http://schemas.microsoft.com/sharepoint/dsp"> <xsd:schema>schema</xsd:schema>xml</queryResponse> </soap12:Body> </soap12:Envelope>