File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes unable to get response from payment website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "unable to get response from payment website" Watch "unable to get response from payment website" New topic

unable to get response from payment website

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518

i am trying to post some parameters to a payment website like the following. If i run a jsp, that will pass the parameters to the controller and from the controller i am trying to post the values received from the jsp and trying to get the reponse in the same controller. But i dont know how to find whether the controller gets connected with the payment websit and request has been sent from my end. I dont whether my code is correct and i am following the correct procedure. please assist me to do this. i am posting the code also.

When i try to print the variable "line", I am getting null.

Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
Start here: Don't println to a Socket. It's most likely not what's causing the problem, but you're doing that by way of the "readLine" method and need to fix that.
Richard Robbins
Ranch Hand

Joined: Mar 07, 2001
Posts: 66
Hi preethi,
When I'm doing a quick check to verify that a POST has been received by the server, I tend to simplify my code, for instance only sending one variable. The payment module should have an API function you can call (it should send a simple "OK" type of response) simply to verify that you're making the call correctly. If your code isn't working, I'd recommend that you try one of those two options.

Richard Robbins is one of the founders of, a resource for free website templates and Photoshop tutorials. He also consults for an online boutique selling baptism dresses and christening gowns.
I agree. Here's the link:
subject: unable to get response from payment website
It's not a secret anymore!