Share via


partFragment Element

Defines one substitution group for a specific part of the input Simple Object Access Protocol (SOAP) message.

Type

  xsd:complexType

Structure

Name Description
match (Required attribute) Contains an XPath expression that identifies the elements and attributes inside the input SOAP message that are to be replaced at run time.
replaceWith (Required attribute) Contains an XPath expression that identifies the values in the source document that should be used to replace parts of the input SOAP message.
sendAsString (Optional attribute) Specifies that the data is submitted as a string through the webServiceAdapter data adapter.
dataObject (Optional attribute) Specifies the name of the data object to use when submitting a partFragment element to a Microsoft Biztalk 2004 Human Workflow Services (HWS) server.
filter (Optional attribute) Specifies the XPath expression of the structured XML subtree when submitting a subset of the XML data.

Remarks

The partFragment element is an optional element of the input element.

Multiple partFragment elements are allowed.

Example

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