This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes send SOAP Request without Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "send SOAP Request without Response" Watch "send SOAP Request without Response" New topic
Author

send SOAP Request without Response

Kumar Ponmaheswaran
Greenhorn

Joined: Mar 10, 2012
Posts: 6
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
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Please KeepItDown, and do not use larger fonts.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Mar 10, 2012
Posts: 6
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
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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

Joined: Mar 10, 2012
Posts: 6
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
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: send SOAP Request without Response
 
Similar Threads
Getting error while calling the .net web service from java code.
Soap response contains wsdl
How two different web application communicate with each other
Why servlet has to reload the content after invoking doPost or DoGet
Can soap return a xml after I invoke it?