2.2.1.2.25 partFragment

The partFragment element specifies substitution information for a section of a SOAP message submitted to a Web service. If this element is present, the specified part of the SOAP message MUST be substituted with the specified data from the form file.

Parent Elements

input

Attributes:

dataObject: This attribute MUST be ignored.

filter: This attribute specifies an XPath expression that MUST evaluate to an XML sub-tree in the form file. This attribute MUST be present when substituting a part of the SOAP message with a subset of the form file. If this attribute is not present, its value MUST be interpreted as an empty string.

match: This attribute specifies an XPath expression that identifies the elements and attributes inside the SOAP message to be replaced.

replaceWith: This attribute specifies an XPath expression that identifies the values in the form file that will replace a part of the SOAP message. If the filter attribute is present, an XML sub-tree MUST replace a part of the SOAP message. If the filter attribute is not present, an XML node MUST replace a part of the SOAP message.

sendAsString: This attribute specifies whether the substituted part of the SOAP message is submitted as a string. If this attribute is not present, its value MUST be interpreted as "no".

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="partFragment">
   <xsd:complexType>
     <xsd:attribute name="match" type="xsd:string" use="required"/>
     <xsd:attribute name="replaceWith" type="xsd:string" use="required"/>
     <xsd:attribute name="sendAsString" type="xsf:xdYesNo" use="optional"/>
     <xsd:attribute name="dataObject" type="xsd:string" use="optional"/>
     <xsd:attribute name="filter" type="xsd:string" use="optional"/>
   </xsd:complexType>
 </xsd:element>