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.  XMLBeans

    Posted Thu March 10, 2005 09:24 PM

    We are tryinmg to link Tamino to XMLBeans. XMLBeans can parse an InputStream. Is this the correct way to get it done ?

    TXMLObject tempXML = myIterator.next();
    java.io.OutputStream os = null ;
    tempXML.writeTo(os); ()

    InputStream is = MiscTools.convertOutpurStreamToInputStream(os);
    PICKLISTDocumentXmlBean anotherPickListDocument =
    PICKLISTDocumentXmlBean.
    Factory.parse(is);

    it fails at (
    ) with null pointer exception.


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


  • 2.  RE: XMLBeans

    Posted Fri March 11, 2005 08:57 AM

    Hi Victor
    It is giving null pointer exception because os=null.

    Replace - java.io.OutputStream os = null ;
    with - java.io.OutputStream os = new java.io.ByteArrayOutputStream();

    Regards,

    Vikram Shinde


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