webMethods

webMethods

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
Expand all | Collapse all

Does TAMINO CLIENT work with xerces ?

  • 1.  Does TAMINO CLIENT work with xerces ?

    Posted Fri February 07, 2003 05:42 PM

    Hi,

    Does one know about this ?

    I am using taminoclient.jar that comes with 3.1.1.4.

    Using xercesImpl.jar for SAX implementation.

    Have a look at the code sample.

    String saxImplementer = “org.apache.xerces.parsers.SAXParser”;
    TaminoClient _tamino = new TaminoClient(strUrl);
    _tamino.setSAXimplementer(saxImplementer);

    When I make a call to

    TaminoResult tr = _tamino.Echo();

    I get the following exception,

    Fatal parse error in null at line 4, column 23:
    org.xml.sax.SAXParseException: The processing instruction target matching “[xX][
    mM][lL]” is not allowed.
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at com.softwareag.tamino.API.dom.TaminoResult.(TaminoResult.java:1
    38)
    at com.softwareag.tamino.API.dom.TaminoClient.Echo(TaminoClient.java:134
    7)

    Thanks.


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


  • 2.  RE: Does TAMINO CLIENT work with xerces ?

    Posted Fri February 07, 2003 05:56 PM

    Very probably no, the TaminoClient is a DOMv1 API only and therefore it is unlikely to work with Xerces. My recommendation is to use the TaminoAPI4J API which is compliant with DOM level 2, SAX 2, JDOM etc and actually requires Xerces as a prerequisite.

    Hope this helps.


    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


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