Querying wm Broker Document Types

Is anyone aware of a webMethods service that will allow a developer to query Broker to find out what document types are there, or even search for a specific type of document that is within Broker?

The CAF from the MWS console allows a user to be logged in and select Broker Document Types and Search, so I am wondering if there are any code samples out there or if there is an IS, MWS or other service that can be run to accomplish a similar result?

Thanks in advance.