queryAllowed Attribute (webServiceAdapter Element)

Microsoft Office InfoPath

queryAllowed Attribute (webServiceAdapter Element)

Specifies whether data can be retrieved from the data source through the query method of the data adapter object.

Type

      xsf:xdYesNo
    

Remarks

The queryAllowed attribute is an optional attribute of the webServiceAdapter element.

Allowed values are "yes" and "no". The default value is "yes".

Example

The following is an example of the queryAllowed attribute as it is used in the webServiceAdapter element:

    <xsf:query>
   <xsf:webServiceAdapter 
      wsdlUrl="http://localhost/infopathwebservicesample/infopathwebservicesample.asmx?WSDL" 
      queryAllowed="yes" 
      submitAllowed="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>