Show All

# match Attribute (partFragment Element)

Contains an XPath expression that identifies the elements and attributes inside the input Simple Object Access Protocol (SOAP) message that are to be replaced at run time.

## Type

    xsd:string

## Remarks

The match attribute is a required attribute of the partFragment element.

## Example

The following is an example of the match attribute as it is used in the partFragment 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:partFragment
                   match="/dfs:myFields/dfs:dataFields/s0:IsPrime/s0:inValue"
                   replaceWith="/dfs:myFields/dfs:dataFields/s0:IsPrime" />
             </xsf:input>
          </xsf:operation>
       </xsf:webServiceAdapter>
    </xsf:query>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp