Export (0) Print
Expand All
Expand Minimize

webServiceAdapter Element

Office 2007

Defines a Web service data adapter that retrieves data from a Web service for the specified data object.

Type

xsd:complexType

Structure

NameDescription
queryAllowed(Optional attribute) Specifies whether data can be retrieved from the data source through the query method of the adapter object.
submitAllowed(Optional attribute) Specifies whether data can be submitted to the data source through the submit method of the adapter object.
wsdUrl(Required attribute) Contains the Uniform Resource Locator (URL) of the Web Services Description Language (WSDL) file that describes the Web service specification.
operation(Required element) Defines the operation (method) of the Web service to be used for retrieving and submitting data.
useDataSet(Optional attribute) Specifies whether the adapter will support an ADO.Net DataSet. Default is "no".

Remarks

The webServiceAdapter element is an optional element of the query element.

The webServiceAdapter element can also be used to define a Web service adapter used to submit the main or secondary form data.

Example

The following is an example of the webServiceAdapter element:

<xsf:query>
   <xsf:webServiceAdapter 
      wsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL" 
      queryAllowed="yes" 
      submitAllowed="no"
      useDataSet="no">
      <xsf:operation 
         name="getOrders" 
         soapAction="http://tempuri.org/getOrders" 
         serviceUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx">
         <xsf:input 
            source="Submit.xml">
         </xsf:input>
      </xsf:operation>
   </xsf:webServiceAdapter>
</xsf:query>


Community Additions

ADD
Show:
© 2014 Microsoft