Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 71d40963b505df4524269198e237b3e3 > files > 1015

virtuoso-opensource-doc-6.1.4-2.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head profile="http://internetalchemy.org/2003/02/profile">
  <link rel="foaf" type="application/rdf+xml" title="FOAF" href="http://www.openlinksw.com/dataspace/uda/about.rdf" />
  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
  <meta name="dc.title" content="15. Web Services" />
  <meta name="dc.subject" content="15. Web Services" />
  <meta name="dc.creator" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="dc.copyright" content="OpenLink Software, 1999 - 2009" />
  <link rel="top" href="index.html" title="OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="search" href="/doc/adv_search.vspx" title="Search OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="parent" href="webservices.html" title="Chapter Contents" />
  <link rel="prev" href="vwstrust.html" title="Web Services Trust Protocol (WS-Trust)" />
  <link rel="next" href="xmlrpc.html" title="XML-RPC support" />
  <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="doc.css" />
  <link rel="stylesheet" type="text/css" href="/doc/translation.css" />
  <title>15. Web Services</title>
  <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
  <meta name="author" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="copyright" content="OpenLink Software, 1999 - 2009" />
  <meta name="keywords" content="" />
  <meta name="GENERATOR" content="OpenLink XSLT Team" />
 </head>
 <body>
  <div id="header">
    <a name="xmlxmla" />
    <img src="../images/misc/logo.jpg" alt="" />
    <h1>15. Web Services</h1>
  </div>
  <div id="navbartop">
   <div>
      <a class="link" href="webservices.html">Chapter Contents</a> | <a class="link" href="vwstrust.html" title="Web Services Trust Protocol (WS-Trust)">Prev</a> | <a class="link" href="xmlrpc.html" title="XML-RPC support">Next</a>
   </div>
  </div>
  <div id="currenttoc">
   <form method="post" action="/doc/adv_search.vspx">
    <div class="search">Keyword Search: <br />
        <input type="text" name="q" /> <input type="submit" name="go" value="Go" />
    </div>
   </form>
   <div>
      <a href="http://www.openlinksw.com/">www.openlinksw.com</a>
   </div>
   <div>
      <a href="http://docs.openlinksw.com/">docs.openlinksw.com</a>
   </div>
    <br />
   <div>
      <a href="index.html">Book Home</a>
   </div>
    <br />
   <div>
      <a href="contents.html">Contents</a>
   </div>
   <div>
      <a href="preface.html">Preface</a>
   </div>
    <br />
   <div class="selected">
      <a href="webservices.html">Web Services</a>
   </div>
    <br />
   <div>
      <a href="soap.html">SOAP</a>
   </div>
   <div>
      <a href="wsdl.html">WSDL</a>
   </div>
   <div>
      <a href="vfoafssl.html">WebID Protocol Support</a>
   </div>
   <div>
      <a href="voauth.html">OAuth Support</a>
   </div>
   <div>
      <a href="vwsssupport.html">WS-Security (WSS) Support in Virtuoso SOAP Server</a>
   </div>
   <div>
      <a href="ws-routing.html">Web Services Routing Protocol (WS-Routing)</a>
   </div>
   <div>
      <a href="warm.html">Web Services Reliable Messaging Protocol (WS-ReliableMessaging)</a>
   </div>
   <div>
      <a href="vwstrust.html">Web Services Trust Protocol (WS-Trust)</a>
   </div>
   <div class="selected">
      <a href="xmlxmla.html">XML for Analysis Provider</a>
   </div>
   <div>
      <a href="xmlrpc.html">XML-RPC support</a>
   </div>
   <div>
      <a href="syncml.html">SyncML</a>
   </div>
   <div>
      <a href="uddi.html">UDDI</a>
   </div>
   <div>
      <a href="expwsmodules.html">Exposing Persistent Stored Modules as Web Services</a>
   </div>
   <div>
      <a href="vsmx.html">Testing Web Published Web Services</a>
   </div>
   <div>
      <a href="bpel.html">BPEL Reference</a>
   </div>
   <div>
      <a href="xsql.html">XSQL</a>
   </div>
    <br />
  </div>
  <div id="text">
    <a name="xmlxmla" />
    <h2>15.9. XML for Analysis Provider</h2>

<p>XML for Analysis (XMLA) is a SOAP based XML API for data access
interaction between a client application and a data provider working over
the Web.  The Virtuoso SOAP server can act as an XMLA data provider, also
the Virtuoso SOAP client can be used as a client to talk with an XMLA
data provider.</p>

<p>The following terms: result-set and row-set will be used
interchangeably to designate repeating content with identical structure.
The mention of a result-set and row-set in this document is related to an SQL/ODBC result set which is
represented  as XML for use in XMLA.</p>

<p>The implementation is based on the
&quot;XML for Analysis Specification v 1.0&quot; by Microsoft Corp,
found on the <a href="http://msdn.microsoft.com/library/en-us/dnxmlspec/html/xmlanalysis.asp?frame=true">MSDN</a> website.  </p>

<p>The XMLA protocol consists of two SOAP operations: &quot;Discover&quot;
and &quot;Execute&quot; which are described below:</p>

<p>The <strong>Discover</strong> operation is used to retrieve
settings and database object information.  It accepts the following input
parameters: </p>
  <ul>
      <li>
        <strong>RequestType</strong> - enumerated string.</li>
      <li>
        <strong>Restrictions</strong> - a structure of restrictions
   to be applied to the processing of request, the type values may
   vary, depending on the request.</li>
      <li>
        <strong>Properties</strong> - properties to the request,
   such as data source name, initial catalog etc.</li>
    </ul>

<p>Upon success the &quot;Discover&quot; operation will return a specific rowset.
The &#39;specific&#39; means that its structure depends of type of request.</p>

<p>The XMLA data provider supports the following discovery rowsets:</p>

 <ul>
      <li>
        <span class="computeroutput">DISCOVER_DATASOURCES</span> - to discover available data sources</li>
      <li>
        <span class="computeroutput">DISCOVER_PROPERTIES</span> - the properties which can be used/set</li>
      <li>
        <span class="computeroutput">DISCOVER_SCHEMA_ROWSETS</span> - this list itself with allowed restrictions</li>
      <li>
        <span class="computeroutput">DISCOVER_ENUMERATORS</span> - enumeration values supported by provider </li>
      <li>
        <span class="computeroutput">DISCOVER_KEYWORDS</span> - reserved words </li>
      <li>
        <span class="computeroutput">DISCOVER_LITERALS</span> - restrictions on database object names etc. </li>
      <li>
        <span class="computeroutput">DBSCHEMA_CATALOGS</span> - list of catalogs</li>
      <li>
        <span class="computeroutput">DBSCHEMA_TABLES</span> - list of tables</li>
      <li>
        <span class="computeroutput">DBSCHEMA_TABLES_INFO</span> - list of info about tables</li>
      <li>
        <span class="computeroutput">DBSCHEMA_COLUMNS</span> - list of columns</li>
      <li>
        <span class="computeroutput">DBSCHEMA_PROVIDER_TYPES</span> - list of datatypes</li>
    </ul>

<p>Here is an example of a  response message to the Discover invocation:</p>

<div>
      <pre class="programlisting">
----
&lt;SOAP:Envelope SOAP:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
  &lt;SOAP:Body&gt;
    &lt;cli:DiscoverResponse xmlns:cli=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
      &lt;Result xmlns=&quot;&quot;&gt;
        &lt;root xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
          &lt;n0:schema xmlns:n0=&quot;http://www.w3.org/2001/XMLSchema&quot;
	             targetNamespace=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;
		     elementFormDefault=&quot;qualified&quot;&gt;
            &lt;n0:element name=&quot;root&quot; type=&quot;n2:root&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;/&gt;
	    ... more declarations ...
          &lt;/n0:schema&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
	    ... rowset data ...
          &lt;/row&gt;
        &lt;/root&gt;
      &lt;/Result&gt;
    &lt;/cli:DiscoverResponse&gt;
  &lt;/SOAP:Body&gt;
&lt;/SOAP:Envelope&gt;
  ----
</pre>
    </div>

<p>The client  can use information retrieved with the &quot;Discover&quot; operation for
automatically formulating queries etc.</p>

<p>The <strong>Execute</strong> operation is used to process
a SQL statement on the server and to return resultset or/and schema
description for the resultset.  The current implementation supports only
SQL statements.  It accepts the following input parameters:</p>

 <ul>
      <li>
        <strong>Command</strong> - a structure with single
  element - &quot;Statement&quot; , which contains the SQL statement.</li>
      <li>
        <strong>Properties</strong> -  properties to the execution process.</li>
    </ul>

<p>On success the &quot;Execute&quot; operation will return the rowset and/or XSD for
the rowset.  </p>

<div>
      <pre class="programlisting">
----
&lt;SOAP:Envelope SOAP:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
  &lt;SOAP:Body&gt;
    &lt;cli:ExecuteResponse xmlns:cli=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
      &lt;Result xmlns=&quot;&quot;&gt;
        &lt;root xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
          &lt;n0:schema xmlns:n0=&quot;http://www.w3.org/2001/XMLSchema&quot;
	             targetNamespace=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;
		     elementFormDefault=&quot;qualified&quot;&gt;
            &lt;n0:element name=&quot;root&quot; type=&quot;n2:root&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;/&gt;
	    ... more XSD declarations ...
          &lt;/n0:schema&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
	    ... rowset data ...
          &lt;/row&gt;
	  more &lt;row&gt; elements
        &lt;/root&gt;
      &lt;/Result&gt;
    &lt;/cli:ExecuteResponse&gt;
  &lt;/SOAP:Body&gt;
&lt;/SOAP:Envelope&gt;
 ----
</pre>
    </div>

<p>The XML representation of the result sets can have three forms: Tabular,
Multidimensional and Custom.  As the Virtuoso server is a tabular data provider
itself, hence the current XMLA implementation supports only Tabular representation.</p>

<p>The Tabular representation of the result set consist of two main parts:</p>
 <ul>
      <li>schema - XML Schema definition of result</li>
      <li>data - sequence of repeating elements, each consisting of elements representing the cells in the rowset</li>
    </ul>

<a name="fp_xmlasecurity" />
    <div class="formalpara">
      <strong>Security</strong>

<p>The Execute operation needs the properties Username and Password
to be supplied in order to execute the statement on behalf of an SQL
user account.  If these are not supplied the request will be rejected with
SOAP:Fault message.  To prevent a network sniffer from catching the
password in clear text, it is strongly recommended that sending of these
properties be done via HTTPS (SSL/TLS) connection (for HTTPS setup
see Web server section, and tutorials).</p>

</div>

<a name="fp_xmlastatesupport" />
    <div class="formalpara">
      <strong>State Support</strong>

<p>The Virtuoso XMLA provider implements statelessness for the
settable properties.  This means that properties such as UserName and
Password can be set in the beginning and they will be restored on server
side on the next request ID for which they are not supplied.  This mechanism
is very similar to URL poisoning state support, which is described in the
Web server section of the documentation.  In short, the XMLA client asks
to begin a session, the XMLA provider returns a session ID and from
that point the client sends this ID to the server.  If the client wishes,
it may cancel the session with an end session request.</p>
</div>

<p>The above requests are SOAP messages carried in the
SOAP Header element.  Please note that these headers can be sent together
with Discover or Execute operations.</p>

<p>Here is a a simple session: </p>

<div>
      <pre class="programlisting">
- client requests a session
&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
                   SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
&lt;SOAP-ENV:Header&gt;
  &lt;xmla:BeginSession xmlns:xmla=&quot;urn:schemas-microsoft-com:xml-analysis&quot; mustUnderstand=&quot;1&quot;/&gt;
&lt;/SOAP-ENV:Header&gt;
&lt;SOAP-ENV:Body&gt;
   &lt;!-- Discover or Execute call --&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;

- server returns the SessionID
&lt;SOAP-ENV:Header&gt;
  &lt;xmla:Session xmlns:xmla=&quot;urn:schemas-microsoft-com:xml-analysis&quot; mustUnderstand=&quot;1&quot; SessionID=&quot;NNNNNN&quot; /&gt;
&lt;/SOAP-ENV:Header&gt;

- sequential requests of client contains:
&lt;SOAP-ENV:Header&gt;
  &lt;xmla:Session xmlns:xmla=&quot;urn:schemas-microsoft-com:xml-analysis&quot; mustUnderstand=&quot;1&quot; SessionID=&quot;NNNNNN&quot; /&gt;
&lt;/SOAP-ENV:Header&gt;

- and finally client cancel the session:
&lt;SOAP-ENV:Header&gt;
  &lt;xmla:EndSession xmlns:xmla=&quot;urn:schemas-microsoft-com:xml-analysis&quot; mustUnderstand=&quot;1&quot; SessionID=&quot;NNNNNN&quot; /&gt;
&lt;/SOAP-ENV:Header&gt;
</pre>
    </div>

<a name="xmlxmla" />
    <h2>15.9. Namespaces</h2>

<p>The request and response are in the &quot;urn:schemas-microsoft-com:xml-analysis&quot;
namespace.  Also SOAPAction header field must be &quot;urn:schemas-microsoft-com:xml-analysis:Discover&quot;
and &quot;urn:schemas-microsoft-com:xml-analysis:Execute&quot; for Discover and Execute operations.</p>

<a name="xmlxmla" />
    <h2>15.9. Virtuoso extensions</h2>
<p>
    The following settable properties are available to the execute request: </p>

<p>direction - one of forward, backward</p>
<p>skip - integer</p>
<p>n-rows integer</p>
<p> bookmark-from - string </p>
<p> retrieve-row-count - string </p>

<p> The direction indicates in which direction the cursor moves from the
 bookmark-from. If there is no bookmark-from, the query is always forward
 from the start of the evaluation. </p>

 <p> skip allows skipping a number of rows in the selected direction.
 n-rows gives the number of rows to return after the skip. Fewer rows will
 be returned if the evaluation does not extend  this far.  </p>

 <p> The bookmark is an opaque string, acceptable values are values that have 
     been in a  bookmark element of a result row. </p>

 <p> return-bookmark boolean </p>

 <p> If true, a bookmark element is added to each row of the result set. </p>

 <p> A simple request / response is added to samples. </p>
 
 <p> The retrieve-row-count element of the query options must be true for rowcount returning to be enabled.</p>

 <p>If retrieve-row-count is specified, the response has a row-count element with a text value containing the total result set size of the query, irrespective of the specified window of rows retrieved.  Note that for large result sets getting the row count can be prohibitively expensive.</p>
 
<a name="xmlxmla" />
    <h2>15.9. Virtual directory Setup</h2>

<p>To make a virtual directory work as an XMLA data provider it is enough
to grant execute permissions on Discover and Execute procedures to the SQL
account specified for SOAP execution in this virtual directory.</p>

<p>For compliance with XMLA, the virtual directory attribute elementFormDefault
must have the value &quot;qualified&quot; in the XMLA SOAP end point.</p>

<p>Here are the steps for  setting up a virtual directory
for use with XMLA:</p>

<div>
      <pre class="programlisting">
create user &quot;XMLA&quot;;

user_set_qualifier (&#39;XMLA&#39;, &#39;XMLA&#39;);

VHOST_REMOVE (lpath=&gt;&#39;/XMLA&#39;);
VHOST_DEFINE (lpath=&gt;&#39;/XMLA&#39;, ppath=&gt;&#39;/SOAP/&#39;, soap_user =&gt; &#39;XMLA&#39;,
              soap_opts =&gt; vector (&#39;ServiceName&#39;, &#39;XMLAnalysis&#39;, &#39;elementFormDefault&#39;, &#39;qualified&#39;));

grant execute on DB..&quot;Discover&quot; to &quot;XMLA&quot;;
grant execute on DB..&quot;Execute&quot; to &quot;XMLA&quot;;
</pre>
    </div>

<a name="ex_virtdir4xmla" />
    <div class="example">
      <div class="exampletitle">Simple Discovery Request/Response examples</div>
<p>The following example shows a simple request for discovering data
sources and response from server.</p>

<div>
        <pre class="programlisting">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;SOAP:Envelope SOAP:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
  &lt;SOAP:Body&gt;
    &lt;cli:Discover xmlns:cli=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
      &lt;RequestType xsi:type=&quot;xsd:string&quot; dt:dt=&quot;string&quot;&gt;DISCOVER_DATASOURCES&lt;/RequestType&gt;
      &lt;Restrictions xsi:nil=&quot;1&quot;/&gt;
      &lt;Properties xsi:nil=&quot;1&quot; /&gt;
      &lt;/Properties&gt;
    &lt;/cli:Discover&gt;
  &lt;/SOAP:Body&gt;
&lt;/SOAP:Envelope&gt;

&lt;SOAP:Envelope SOAP:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
  &lt;SOAP:Body&gt;
    &lt;cli:DiscoverResponse xmlns:cli=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
      &lt;Result xmlns=&quot;&quot;&gt;
        &lt;root xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
          &lt;n0:schema xmlns:n0=&quot;http://www.w3.org/2001/XMLSchema&quot;
	             targetNamespace=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;
		     elementFormDefault=&quot;qualified&quot;&gt;
            &lt;n0:element name=&quot;root&quot; type=&quot;n2:root&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;/&gt;
            &lt;n0:complexType name=&quot;root&quot;&gt;
              &lt;n0:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
                &lt;n0:element name=&quot;row&quot; type=&quot;n2:row&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;/&gt;
              &lt;/n0:sequence&gt;
            &lt;/n0:complexType&gt;
            &lt;n0:complexType name=&quot;row&quot;&gt;
              &lt;n0:choice maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;&gt;
                &lt;n0:element name=&quot;DataSourceName&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;DataSourceName&quot; nillable=&quot;0&quot;/&gt;
                &lt;n0:element name=&quot;DataSourceDescription&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;DataSourceDescription&quot; nillable=&quot;0&quot;/&gt;
                &lt;n0:element name=&quot;URL&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;URL&quot; nillable=&quot;0&quot;/&gt;
                &lt;n0:element name=&quot;DataSourceInfo&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;DataSourceInfo&quot; nillable=&quot;0&quot;/&gt;
                &lt;n0:element name=&quot;ProviderName&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;ProviderName&quot; nillable=&quot;0&quot;/&gt;
                &lt;n0:element name=&quot;ProviderType&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;ProviderType&quot;&gt;
                  &lt;n0:complexType&gt;
                    &lt;n0:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
                      &lt;n0:any processContents=&quot;lax&quot; maxOccurs=&quot;unbounded&quot;/&gt;
                    &lt;/n0:sequence&gt;
                  &lt;/n0:complexType&gt;
                &lt;/n0:element&gt;
                &lt;n0:element name=&quot;AuthenticationMode&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;AuthenticationMode&quot; nillable=&quot;0&quot;/&gt;
              &lt;/n0:choice&gt;
            &lt;/n0:complexType&gt;
          &lt;/n0:schema&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
            &lt;DataSourceName&gt;Local Server&lt;/DataSourceName&gt;
            &lt;DataSourceDescription&gt;Virtuoso Server&lt;/DataSourceDescription&gt;
            &lt;URL&gt;http://localhost:8890/XMLA&lt;/URL&gt;
            &lt;DataSourceInfo&gt;DSN=__local&lt;/DataSourceInfo&gt;
            &lt;ProviderName&gt;Virtuoso XML for Analysis&lt;/ProviderName&gt;
            &lt;ProviderType&gt;
              &lt;TDP xsi:type=&quot;xsd:string&quot; dt:dt=&quot;string&quot;/&gt;
            &lt;/ProviderType&gt;
            &lt;AuthenticationMode&gt;Unauthenticated&lt;/AuthenticationMode&gt;
          &lt;/row&gt;
        &lt;/root&gt;
      &lt;/Result&gt;
    &lt;/cli:DiscoverResponse&gt;
  &lt;/SOAP:Body&gt;
&lt;/SOAP:Envelope&gt;
</pre>
      </div>

<p>The following example shows a query against the Northwind&#39;s database&#39;s Customers table</p>

<p>Request/Response</p>

<div>
        <pre class="programlisting">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;SOAP:Envelope SOAP:encodingType=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; SOAP:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:SOAP=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:ref=&quot;http://schemas.xmlsoap.org/ws/2002/04/reference/&quot; xmlns:dt=&quot;urn:schemas-microsoft-com:datatypes&quot;&gt;
  &lt;SOAP:Body&gt;
    &lt;cli:Execute xmlns:cli=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
      &lt;Command&gt;
        &lt;Statement xsi:type=&quot;xsd:string&quot; dt:dt=&quot;string&quot;&gt;select CustomerID , CompanyName from Demo..Customers where CustomerID like &#39;A%&#39;&lt;/Statement&gt;
      &lt;/Command&gt;
      &lt;Restrictions xsi:nil=&quot;1&quot;/&gt;
      &lt;Properties&gt;
        &lt;PropertyList&gt;
          &lt;DataSourceInfo xsi:type=&quot;xsd:string&quot; dt:dt=&quot;string&quot;&gt;DSN=__local&lt;/DataSourceInfo&gt;
	  &lt;Password type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; dt=&quot;string&quot; &gt;demo&lt;/Password&gt;
	  &lt;UserName type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; dt=&quot;string&quot; &gt;demo&lt;/UserName&gt;
        &lt;/PropertyList&gt;
      &lt;/Properties&gt;
    &lt;/cli:Execute&gt;
  &lt;/SOAP:Body&gt;
&lt;/SOAP:Envelope&gt;

&lt;SOAP:Envelope SOAP:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:SOAP=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:dt=&quot;urn:schemas-microsoft-com:datatypes&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:xenc=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:wsse=&quot;http://schemas.xmlsoap.org/ws/2002/07/secext&quot; xmlns:ref=&quot;http://schemas.xmlsoap.org/ws/2002/04/reference/&quot; xmlns:wsdl=&quot;services.wsdl&quot;&gt;
  &lt;SOAP:Body&gt;
    &lt;cli:ExecuteResponse xmlns:cli=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
      &lt;Result xmlns=&quot;&quot;&gt;
        &lt;root xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
          &lt;n0:schema xmlns:n0=&quot;http://www.w3.org/2001/XMLSchema&quot; targetNamespace=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot; elementFormDefault=&quot;qualified&quot;&gt;
            &lt;n0:element name=&quot;root&quot; type=&quot;n2:root&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;/&gt;
            &lt;n0:complexType name=&quot;root&quot;&gt;
              &lt;n0:sequence minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
                &lt;n0:element name=&quot;row&quot; type=&quot;n2:row&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;/&gt;
              &lt;/n0:sequence&gt;
            &lt;/n0:complexType&gt;
            &lt;n0:complexType name=&quot;row&quot;&gt;
              &lt;n0:choice maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;&gt;
                &lt;n0:element name=&quot;CustomerID&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;CustomerID&quot; nillable=&quot;0&quot;/&gt;
                &lt;n0:element name=&quot;CompanyName&quot; type=&quot;string&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:xml-sql&quot; n2:field=&quot;CompanyName&quot; nillable=&quot;1&quot;/&gt;
              &lt;/n0:choice&gt;
            &lt;/n0:complexType&gt;
          &lt;/n0:schema&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
            &lt;CustomerID&gt;ALFKI&lt;/CustomerID&gt;
            &lt;CompanyName&gt;Alfreds Futterkiste&lt;/CompanyName&gt;
          &lt;/row&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
            &lt;CustomerID&gt;ANATR&lt;/CustomerID&gt;
            &lt;CompanyName&gt;Ana Trujillo Emparedados y helados&lt;/CompanyName&gt;
          &lt;/row&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
            &lt;CustomerID&gt;ANTON&lt;/CustomerID&gt;
            &lt;CompanyName&gt;Antonio Moreno Taquería&lt;/CompanyName&gt;
          &lt;/row&gt;
          &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
            &lt;CustomerID&gt;AROUT&lt;/CustomerID&gt;
            &lt;CompanyName&gt;Around the Horn&lt;/CompanyName&gt;
          &lt;/row&gt;
        &lt;/root&gt;
      &lt;/Result&gt;
    &lt;/cli:ExecuteResponse&gt;
  &lt;/SOAP:Body&gt;
&lt;/SOAP:Envelope&gt;
</pre>
      </div>
<p>The following example shows a simple request for &quot;Execute&quot; operation
   whit Virtuoso extension. Sources and response from server.</p>
<div>
        <pre class="programlisting">
  &lt;Envelope xmlns=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:n1=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:n2=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; n1:encodingType=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; n2:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
    &lt;Body xmlns=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
      &lt;Execute xmlns=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
        &lt;Command&gt;
          &lt;Statement xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; n2:dt=&quot;string&quot;&gt;select CustomerID, CompanyName from Demo..Customers&lt;/Statement&gt;
        &lt;/Command&gt;
        &lt;Properties&gt;
          &lt;PropertyList&gt;
            &lt;DataSourceInfo xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; n2:dt=&quot;string&quot;&gt;Local_Instance&lt;/DataSourceInfo&gt;
            &lt;UserName xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; n2:dt=&quot;string&quot;&gt;dba&lt;/UserName&gt;
            &lt;Password xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; n2:dt=&quot;string&quot;&gt;dba&lt;/Password&gt;
            &lt;direction xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:string&quot; n2:dt=&quot;string&quot;&gt;backward&lt;/direction&gt;
            &lt;skip xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:int&quot; n2:dt=&quot;int&quot;&gt;1&lt;/skip&gt;
            &lt;n-rows xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:int&quot; n2:dt=&quot;int&quot;&gt;3&lt;/n-rows&gt;
            &lt;return-bookmark xmlns:n1=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:n2=&quot;urn:schemas-microsoft-com:datatypes&quot; n1:type=&quot;http://www.w3.org/2001/XMLSchema:int&quot; n2:dt=&quot;int&quot;&gt;1&lt;/return-bookmark&gt;
          &lt;/PropertyList&gt;
        &lt;/Properties&gt;
      &lt;/Execute&gt;
    &lt;/Body&gt;
  &lt;/Envelope&gt;

  &lt;Envelope xmlns=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:n1=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; n1:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
    &lt;Body xmlns=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
      &lt;ExecuteResponse xmlns=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
        &lt;return xmlns=&quot;urn:schemas-microsoft-com:xml-analysis&quot;&gt;
          &lt;root xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
            &lt;schema xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; targetNamespace=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot; elementFormDefault=&quot;qualified&quot;&gt;
              &lt;element xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; name=&quot;root&quot; type=&quot;urn:schemas-microsoft-com:xml-analysis:rowset:root&quot;/&gt;
              &lt;complexType xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; name=&quot;root&quot;&gt;
                &lt;sequence xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
                  &lt;element xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; name=&quot;row&quot; type=&quot;urn:schemas-microsoft-com:xml-analysis:rowset:row&quot;/&gt;
                &lt;/sequence&gt;
              &lt;/complexType&gt;
              &lt;complexType xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; name=&quot;row&quot;&gt;
                &lt;choice xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;&gt;
                  &lt;element xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:n3=&quot;urn:schemas-microsoft-com:xml-sql&quot; name=&quot;BOOKMARK&quot; type=&quot;string&quot; n3:field=&quot;BOOKMARK&quot; nillable=&quot;1&quot;/&gt;
                  &lt;element xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:n3=&quot;urn:schemas-microsoft-com:xml-sql&quot; name=&quot;CustomerID&quot; type=&quot;string&quot; n3:field=&quot;CustomerID&quot; nillable=&quot;0&quot;/&gt;
                  &lt;element xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:n3=&quot;urn:schemas-microsoft-com:xml-sql&quot; name=&quot;CompanyName&quot; type=&quot;string&quot; n3:field=&quot;CompanyName&quot; nillable=&quot;1&quot;/&gt;
                &lt;/choice&gt;
              &lt;/complexType&gt;
            &lt;/schema&gt;
            &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
              &lt;BOOKMARK xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;wbwCtQExvAI=&lt;/BOOKMARK&gt;
              &lt;CustomerID xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;AROUT&lt;/CustomerID&gt;
              &lt;CompanyName xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;Around the Horn&lt;/CompanyName&gt;
            &lt;/row&gt;
            &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
              &lt;BOOKMARK xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;wbwCtQExvAE=&lt;/BOOKMARK&gt;
              &lt;CustomerID xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;ANTON&lt;/CustomerID&gt;
              &lt;CompanyName xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;Antonio Moreno Taquera&lt;/CompanyName&gt;
            &lt;/row&gt;
            &lt;row xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;
              &lt;BOOKMARK xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;wbwCtQExvAA=&lt;/BOOKMARK&gt;
              &lt;CustomerID xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;ANATR&lt;/CustomerID&gt;
              &lt;CompanyName xmlns=&quot;urn:schemas-microsoft-com:xml-analysis:rowset&quot;&gt;Ana Trujillo Emparedados y helados&lt;/CompanyName&gt;
            &lt;/row&gt;
          &lt;/root&gt;
        &lt;/return&gt;
      &lt;/ExecuteResponse&gt;
    &lt;/Body&gt;
  &lt;/Envelope&gt;
</pre>
      </div>
</div>

<table border="0" width="90%" id="navbarbottom">
    <tr>
        <td align="left" width="33%">
          <a href="vwstrust.html" title="Web Services Trust Protocol (WS-Trust)">Previous</a>
          <br />Web Services Trust Protocol (WS-Trust)</td>
     <td align="center" width="34%">
          <a href="webservices.html">Chapter Contents</a>
     </td>
        <td align="right" width="33%">
          <a href="xmlrpc.html" title="XML-RPC support">Next</a>
          <br />XML-RPC support</td>
    </tr>
    </table>
  </div>
  <div id="footer">
    <div>Copyright© 1999 - 2009 OpenLink Software All rights reserved.</div>
   <div id="validation">
    <a href="http://validator.w3.org/check/referer">
        <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" />
    </a>
    <a href="http://jigsaw.w3.org/css-validator/">
        <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" />
    </a>
   </div>
  </div>
 </body>
</html>