HELP PLEASE BASE24 refuses connection

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

HELP PLEASE BASE24 refuses connection

tootk2
Please help on this, im trying to connect to BASE24 and do the hand
shake msg useing the following code, but base24 refuses the
connection i get ISOException connection refused, can anyone tell me
how can i do it, when i use row tcp sockets and string msgs i get
response, it must be something in the code
this is the code im using, please help!!



import org.jpos.iso.*;
import org.jpos.util.*;
import org.jpos.iso.channel.*;
import org.jpos.iso.packager.*;
public class Base24ConnectionTest {
public static void main (String[] args) throws Exception {
Logger logger = new Logger();
logger.addListener (new SimpleLogListener (System.out));

ISOChannel channel = new BASE24TCPChannel("199.1.199.10",5000, new
BASE24Packager());

((LogSource)channel).setLogger (logger, "test-channel");
channel.connect ();
ISOMsg m = new ISOMsg ();


       
        ISOPackager customPackager = new BASE24Packager();
        java.util.Date d = new java.util.Date();
        ISOMsg hsMsg = new ISOMsg ();
        hsMsg.setPackager(customPackager);
        hsMsg.setHeader("ISO015000070".getBytes());
        hsMsg.setMTI("0800");
        hsMsg.set(7,ISODate.getDateTime(d));      // hsMsg.set
(7,"1217131933");       change to MMDDhhmmss
        hsMsg.set(11,"000335");
        hsMsg.set(15,"0000");
        hsMsg.set
(48,"0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000")
;
        hsMsg.set(70,"301");
       
channel.send (m);
ISOMsg r = channel.receive ();
channel.disconnect ();
}
}





------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h0dj9s1/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123203899/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jpos-dev/

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Loading...