3.1.4.56 SetContentSourcesMetadata

This operation is used to set the metadata property associated with the portal content project. This metadata string in intended for protocol client use only, the protocol server just stores it without interpreting. Once set, metadata string can be obtained by calling GetContentSources operation.

 <wsdl:operation name="SetContentSourcesMetadata">
         <wsdl:input message="SetContentSourcesMetadataSoapIn"/>
         <wsdl:output message="SetContentSourcesMetadataSoapOut"/>
 </wsdl:operation>

The protocol client sends a SetContentSourcesMetadataSoapIn request message and the protocol server responds with a SetContentSourcesMetadataSoapOut response message, as follows:

  • On receipt the protocol server validates the versionIn value from the request message. If it doesn’t match the current configuration version of the crawler application, the protocol server MUST throw a SOAP fault message containing an UpdatedConcurrencyException.

  • The protocol server then updates the current configuration version of the crawler application to the value of versionIn+1.

  • The protocol server sets the contentSourcesMetadata property of the portal content project with the metadata value specified in the request message.

  • On success, the protocol server MUST return the updated configuration version of the crawler application in the SetContentSourcesMetadataResult element in the response message.

  • On error, the protocol server MUST throw a SOAP fault message.