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.


#TechXchangePresenter
 View Only
  • 1.  TaminoClient Constructor

    Posted Fri November 09, 2001 12:15 PM

    Can anyone tell me what’s wrong ???

    import com.softwareag.tamino.API.dom.;
    import java.lang.
    ;
    import java.util.*;

    public class HandbookDBClient extends TaminoClient
    {

    public HandbookDBClient(java.lang.String HandbookDBUrl)
    {
    try
    {
    super(HandbookDBUrl);
    }
    catch (TaminoError e)
    {
    System.out.println("Tamino Error Text: " + e.errorText );
    System.out.println("Tamino Error Code: " + e.responseCode );
    }
    }
    }

    Thanks,


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 2.  RE: TaminoClient Constructor

    Posted Fri November 09, 2001 12:32 PM

    The call to super(…) must be the first statement in the constructor. In your example the first statement is try, so I guess you are getting compilation errors, one of which will say ‘call to super must be first statement…’.


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 3.  RE: TaminoClient Constructor

    Posted Fri November 09, 2001 12:54 PM

    thanks a lot, you’re right. this works pretty good :
    import com.softwareag.tamino.API.dom.;
    import java.lang.
    ;
    import java.util.*;

    public class HandbookDBClient extends TaminoClient
    {

    public HandbookDBClient(java.lang.String HandbookDBUrl) throws TaminoError
    {
    super(HandbookDBUrl);
    setPageSize(5);
    }
    }


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods