IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Get docTypes in a collection

    Posted Tue July 30, 2002 05:09 AM

    I can get all the collections by the following code
    TaminoStore store = new TaminoStore(“http://localhost/tamino/mydb”,userID,passWD);
    Iterator iter = store.getCollectionNames().iterator();
    while (iter.hasNext()) {
    String coll = (String) iter.next();
    System.out.println("Collection : " + coll);
    }


    How can I get the list of docType in a collection?
    Can you give sample code?
    Thanks.


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Get docTypes in a collection

    Posted Tue July 30, 2002 07:20 AM

    The TaminoStore doesn’t have a getDoctypesNames method. However, its quite easy to add one. You could use the getCollectionNames method as a starting point and replace the getCollectionNames call inside with a getDoctypeNames call.

    Michael

    Software AG Germany, Darmstadt


    #Tamino
    #API-Management
    #webMethods