• 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

send SOAP Request without Response

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
From a JSP page i just want to send the SOAP request to a server without getting a response on the same page. i.e. the response should not come to the same page from where i requested. In browser i want to display the response in different jsp page . How to achieve this using javascript or JAVA
 
Sheriff
Posts: 22804
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please KeepItDown, and do not use larger fonts.
 
Saloon Keeper
Posts: 7633
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you ask is not possible. Request and response always go together, so you'll need to adapt your design accordingly. And you should never perform network or file I/O in a JSP - use a backing bean or servlet instead.
 
Kumar Ponmaheswaran
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now i have edited my problem. Is it possible to achieve?

From a JSP page i just want to send the SOAP request to a server without getting a response on the same page. i.e. the response should not come to the same page from where i requested. In browser i want to display the response in different jsp page . How to achieve this using javascript or JAVA
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As just about everybody here will tell you - thinking JSP is the right way to do this is a bad idea.

Carrying out computation such as generating a SOAP request, and saving the result for later display is a servlet job. Just use JSP for display and save yourself a lot of trouble.

Bill
 
Kumar Ponmaheswaran
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi William ,



This is the code i am using , i want to display the output in different JSP page .But this JSP page itself getting the response through the callback function xmlhttp.onreadystatechange= handler;

Is it possible to get this response in the another JSP file?Please give some idea to proceed further because i am struggling for a week.... Nobody has responded to my question...



Thanks,
Mahes.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Sending the request from the browser using JavaScript gets a response returned to the browser.
2. You don't want the response returned to the browser
3. I just told you that a servlet would be capable of sending a request and saving the response for later display which is what you said you want.
4.
 
All of the following truths are shameless lies. But what about 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