aswzen / Simple-JPOS-Q2-HTTP-ISO-Server

Simple JPOS Q2 HTTP ISO Server
2 stars 4 forks source link

Process method is not executing when i run IsoServer.java class #1

Open TestAutomate opened 5 years ago

TestAutomate commented 5 years ago

Hi, can you help me out using iso server on the socket, my client is sending 0800 messages,but server is not doing anything,not even executing process method.

after Server [ISO8583] Ready On localhost:xxxx nothing happens

Thanks

aswzen commented 5 years ago

Will check asap...keep in touch

TestAutomate commented 5 years ago

ok thank you

aswzen commented 5 years ago

image I can run the server easily.. i think is your ISO client is sending with wrong packager and channel.. you can use my ISO Client here:

package com;

import java.io.IOException;

import org.jpos.iso.ISOChannel;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;
import org.jpos.iso.ISOPackager;
import org.jpos.iso.ServerChannel;
import org.jpos.iso.channel.ASCIIChannel;
import org.jpos.iso.channel.XMLChannel;
import org.jpos.iso.packager.ISO87APackager;
import org.jpos.iso.packager.XMLPackager;

public class IsoClientTest {
    public static void main(String[] args) throws ISOException, IOException {
        ISOPackager pgk = new ISO87APackager();
    ServerChannel channel = new ASCIIChannel("127.0.0.1", 10012,pgk);
        channel.connect();
        ISOMsg request = new ISOMsg();
        request.setMTI("0200");
        request.set(2, "16");
        request.set(2, "5421287475388412");
        request.set(3, "000000");
        request.set(4, "400.0");
        request.set(7, "0716070815");
        request.set(11, "844515");
        channel.send(request);
        ISOMsg response = channel.receive();

        response.dump(System.out, "response:");
    }
}

*please note about PACKAGER and CHANNEL.. must be same with server

aswzen commented 5 years ago

so you have to find the correct channel then.. JPOS included with many builtin channel image

TestAutomate commented 5 years ago

Client is sending in EBCDIC format how to parse that

aswzen commented 5 years ago

no..its security things that how to communicate between server and client.. u have to find out what packager that has been used by your client..

TestAutomate commented 5 years ago

how do i find channel and packager by seeing client request

aswzen commented 5 years ago

based on my experience.... we can't :smile:
if you can find it then congratz, on my last ISO 8583 project there are some FSD and MOU documents between us and 3rd party/vendor, all specifications on communication things provided in that document

TestAutomate commented 5 years ago

hmm what to try now,i tried with BCD

now i got below RAW : ðð MTI : 00B?

aswzen commented 5 years ago

image unicode text?

TestAutomate commented 5 years ago

I am not sure how to convert this, i am getting like this