3.1.4.4 AddContentSource
This operation is used to create a new content source in the crawler application’s portal content project.
-
<wsdl:operation name="AddContentSource"> <wsdl:input message="AddContentSourceSoapIn"/> <wsdl:output message="AddContentSourceSoapOut"/> </wsdl:operation>
The protocol client sends an AddContentSourceSoapIn request message and the protocol server responds with an AddContentSourceSoapOut 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 creates a new content source with the properties type and name set to the values of the corresponding elements in the request message.
The id property of the newly created content source MUST be unique within the collection of content sources.
If the content source is created successfully, the protocol server MUST return the content source identifier in the AddContentSourceResult element in the response message.
On error, the protocol server MUST throw a SOAP fault message.