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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  XMLBeans

    Posted 03/10/05 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 03/11/05 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