3.1.4.48 RemoveCrawlRule

This operation removes a crawl rule from the portal content project.

 <wsdl:operation name="RemoveCrawlRule">
         <wsdl:input message="RemoveCrawlRuleSoapIn"/>
         <wsdl:output message="RemoveCrawlRuleSoapOut"/>
 </wsdl:operation>

The protocol client sends a RemoveCrawlRuleSoapIn request message and the protocol server responds with a RemoveCrawlRuleSoapOut 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 MUST normalize the path element of the request message the same way it normalizes the path element of the ActivateCrawlRule operation request message.

  • Then, the protocol server MUST try to find an exact match for the crawl rule in the crawl rules collection of the portal content project by the normalized path.

  • If the crawl rule is not found the protocol server MUST throw a SOAP fault message containing a COMException with the HRESULT field set to 0x80040d06.

  • If the crawl rule is found, the protocol server MUST remove the crawl rule from the portal content project.

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

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