The simplest way to enqueue data that can be referenced through a URL is to use the search-collection-enqueue-url function:
XML message:
<SearchCollectionEnqueueUrl xmlns="urn:/velocity/types"> <collection>my-new-collection</collection> <url>http://vivisimo.com</url> </SearchCollectionEnqueueUrl>
In C#:
SearchCollectionEnqueueUrl sceu = new SearchCollectionEnqueueUrl(); sceu.collection = COLLECTION; sceu.url = ENQ_URL; sceu.forceallow = true; SearchCollectionEnqueueUrlResponse enqresp = port.SearchCollectionEnqueueUrl(sceu);
In Java:
SearchCollectionEnqueueUrl sceu = new SearchCollectionEnqueueUrl(); sceu.setCollection(COLLECTION); sceu.setUrl(ENQ_URL); SearchCollectionEnqueueUrlResponse enqresp = port .searchCollectionEnqueueUrl(sceu);
Any data that you enqueue using this function must contain a valid URL that specifies at least the following:
protocol://pathname
Enqueueing a URL that does not conform to at least this basic syntax will produce undefined results.