Expand Minimize
This topic has not yet been rated - Rate this topic

replaceWith Attribute

Office 2003

Contains an XPath expression that identifies the values in the source document that should be used to replace parts of the input Simple Object Access Protocol (SOAP) message.

Type

    xsd:string
  

Remarks

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

Example

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


Parent Objects | partFragment Element


Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.