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

help me to implement iso8583 converter using service

  • 1.  help me to implement iso8583 converter using service

    Posted 07/31/09 12:14 PM

    hello guys i’m trying to build iso converter service and found jpos
    i want to build it based on java service so far the error just can’t find dtd file
    could everyone tell me where i have to put dtd file because the xml can’t not read the dtd file
    this is my code in java service

    IDataCursor pipelineCursor = pipeline.getCursor();
    String input = IDataUtil.getString(pipelineCursor,“input”);

    pipelineCursor.destroy();
    File file = new File(“.”);
    String outputstr = new String();
    try{
    outputstr = file.getCanonicalPath();
    }catch(IOException e){
    }
    outputstr = outputstr + “\config\iso87ascii.xml”;

    InputStream isp = ClassLoader.getSystemResourceAsStream("C:\\webMethods7\\IntegrationServer\\packages\\PundiESB\\code\\classes\\PundiESBiso87ascii.xml");
    ISOMsg msg = new ISOMsg();
    try {
    
    GenericPackager packager = new GenericPackager(isp);
    msg.setPackager(packager);
    msg.setMTI("0800");
    msg.set(7,"22062008");
    msg.set(11,"000001");
    
    
    String message = new String(msg.pack());
    message = "0800822000000000000004000000000000100724130841379832301013Patar Timotis";
    
    msg = new ISOMsg();
    msg.setPackager(packager);
    msg.unpack(message.getBytes());
    outputstr = msg.getValue(124).toString();
    
    
    } catch (ISOException e) {
    outputstr = e.toString();
    
    }
    

    IDataCursor outputlineCursor = pipeline.getCursor();
    IDataUtil.put(outputlineCursor,“output”,outputstr);
    outputlineCursor.destroy();

    Please Tell me
    helpp…


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods