• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

unable to get response from payment website

 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

Thanks
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic