Welcome to MSDN Blogs Sign in | Join | Help

Implementing Metadata Search Handler

The implementation and usage of metadata search handler is identical to metadata browse handler, with the exception of this class returning a filtered list of metadata objects back to the caller depending on the passed in search criteria.  It can return the operations as well as categories depending on the adapter implementation.  Many adapter implementations use the regular expressions to define the format of the input search criteria.

Here are steps on providing metadata search functionality within an adapter.

Step 1.  Implement Search method within the adapter implementation of IMetadataSearchHandler interface

        public MetadataRetrievalNode[] Search(string absoluteName, string SearchCriteria, int maxChildNodes, TimeSpan timeout)

        {

            // based on the search criteria create and return a hierarchy of MetadataRetrievalNode[] objects

        }

Step 2. Test the adapter metadata search functionality

Testing the search functionality is similar to testing the browse function. See the post "Implementing Metadata Browse Handler" for more information. 

More on this topic later!

Published Saturday, April 07, 2007 10:00 AM by sonua

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Using Adapter Development Wizard

After WCF LOB Adapter SDK is installed on the system, the Adapter Developer can use the WCF LOB Adapter

Monday, April 09, 2007 1:20 AM by Developing adapters using WCF

# Show me the metadata!

WCF LOB Adapter SDK extends the WCF channel architecture with Metadata Object Model and provides an infrastructure

Tuesday, June 19, 2007 5:03 PM by Developing adapters using WCF

# Step by Step to add new WCF LOB Adapter to your .Net Solution

Background: After we downloaded WCF LOB Adapter SDK and read my previous post. You will find all the...

Monday, October 08, 2007 6:41 AM by Crash Course

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker