Hi,
below is the code
ISOMUX isoMux = MuxChannel.getMuxedChannel(); ISOMsg echoMessage = new ISOMsg(); String messageTypeId = "0800"; |
java.util.Date d = new java.util.Date(); Sequencer seq = new VolatileSequencer(); |
echoMessage.setMTI(messageTypeId); |
echoMessage.set (new ISOField (7,"0707000205")); |
echoMessage.set (new ISOField (11,"000205"));
echoMessage.set (new ISOField (33,"06600002")); echoMessage.set (new ISOField(70,"301")); thanks,
|
|
Hi,
Changing to IF_CHAR could’t help.. The Result we got is as follows:
Expected message from the JPOS DOCUMENT Message: 080082200000800000000400000000000000070700020500020506600002301
After changes to the files, we got the following:
0800822000008000000004000000000000000707000205000205066000020330
I have given here the Request and Response Dump from our server - fyi please
Request dump....
<request>
<isomsg>
<field id="0" value="0800"/>
<field id="7" value="0707000205"/>
<field id="11" value="000205"/>
<field id="33" value="600002"/>
<field id="70" value="301"/>
</isomsg>
</request>
Server Simulator code retrived:
<log realm="iso-server.channel" at="Fri Dec 04 13:04:39 PST 2009.23">
<receive>
<isomsg direction="incoming">
<field id="0" value="0800"/>
<field id="7" value="0707000205"/>
<field id="11" value="000205"/>
<field id="33" value="600002"/>
<field id="70" value="301"/>
</isomsg>
</receive>
</log>
Thanks, |
Vasudevan
|
|
Hi,
The below output is by setting
new IFB_NUMERIC ( 3, "NETWORK MANAGEMENT INFORMATION CODE", true) for ISO87BPackager.java file Code for the message is given below:
ISOMUX isoMux = MuxChannel.getMuxedChannel(); ISOMsg echo = new ISOMsg(); String messageTypeId = "0800"; // PURCHASE TRANSACTION TYPE // N4 |
java.util.Date d = new java.util.Date(); Sequencer seq = new VolatileSequencer(); |
echo.setMTI(messageTypeId); // Field for Purchase Transaction from Bank Server echo.set (new ISOField (7,"0707000205")); echo.set (new ISOField (11,"000205")); |
echo.set (new ISOField (33,"600002")); echo.set (new ISOField(70,"301")); |
|
byte [] b = echo.pack(); We printed the byte array b and we got the values below: 8,0,-126,32,0,0,-128,0,0,0,4,0,0,0,0,0,0,0,7,7,0,2,5,0,2,5,6,96,0,2,3,1 |
|
Request dump....
<request> <isomsg> <field id="0" value="0800"/> <field id="7" value="0707000205"/> <field id="11" value="000205"/> <field id="33" value="600002"/> <field id="70" value="301"/> </isomsg> </request> |
Message: ISOUtil.hexString(b) : The value is given below:
0800822000008000000004000000000000000707000205000205066000020301 But the expected message from the document:
080082200000800000000400000000000000070700020500020506600002301 We got extra '0' in ISOUtil.hexString(b) |
|
Server Simulator code retrived:
<log realm="iso-server.channel" at="Fri Dec 04 13:04:39 PST 2009.23"> <receive> <isomsg direction="incoming"> <field id="0" value="0800"/> <field id="7" value="0707000205"/> <field id="11" value="000205"/> <field id="33" value="600002"/> <field id="70" value="301"/> </isomsg> </receive> </log> |
================================================================================================== To Avoid Extra '0', you have asked to set IF_CHAR
The below output is by setting
new IF_CHAR ( 3, "NETWORK MANAGEMENT INFORMATION CODE") for ISO87BPackager.java file
The code is given below ISOMUX isoMux = MuxChannel.getMuxedChannel(); ISOMsg echo = new ISOMsg(); String messageTypeId = "0800"; // PURCHASE TRANSACTION TYPE // N4 |
java.util.Date d = new java.util.Date(); Sequencer seq = new VolatileSequencer(); |
echo.setMTI(messageTypeId); // Field for Purchase Transaction from Bank Server echo.set (new ISOField (7,"0707000205")); echo.set (new ISOField (11,"000205")); |
echo.set (new ISOField (33,"600002")); echo.set (new ISOField(70,"301")); |
|
byte [] b = echo.pack();
We printed the byte array b and we got the values below: 8,0,-126,32,0,0,-128,0,0,0,4,0,0,0,0,0,0,0,7,7,0,2,5,0,2,5,6,96,0,2,51,48,49 |
|
Request dump....
<request> <isomsg> <field id="0" value="0800"/> <field id="7" value="0707000205"/> <field id="11" value="000205"/> <field id="33" value="600002"/> <field id="70" value="301"/> </isomsg> </request> |
Message: ISOUtil.hexString(b) : The value is given below:
080082200000800000000400000000000000070700020500020506600002333031 Expected message from the document:
080082200000800000000400000000000000070700020500020506600002301 The above ISOUtil.hexString(b) is giving different value when compared to the expected message from the document. |
|
Server Simulator code retrived:
<log realm="iso-server.channel" at="Fri Dec 04 13:04:39 PST 2009.23"> <receive> <isomsg direction="incoming"> <field id="0" value="0800"/> <field id="7" value="0707000205"/> <field id="11" value="000205"/> <field id="33" value="600002"/> <field id="70" value="301"/> </isomsg> </receive> </log> |
Thanks,
Vasudevan |
|
Date: Saturday, December 5, 2009, 3:09 PM |
|
Hi Mark,
Thanks for the clarification.
Thanking you once again
Vasudevan |
|