Export (0) Print
Expand All
Expand Minimize

operation Element

Office 2007

Defines the operation (method) of the Web service to be used for retrieving and submitting data.

Type

xsd:complexType

Structure

NameDescription
name(Required attribute) Contains the unique name of the Web service method.
serviceUrl(Required attribute) Contains the Web service Uniform Resource Locator (URL) to which the request should be sent.
soapAction(Required attribute) Contains the value of the SOAPAction attribute in the Simple Object Access Protocol (SOAP) request message.
input(Optional element) Contains the substitution information for parts of the input SOAP message to the Web service.

Remarks

The operation element is a required element of the webServiceAdapter element.

Example

The following is an example of the operation 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>


Community Additions

ADD
Show:
© 2015 Microsoft