发送请求并获得响应 [英] sending request and getting response

查看:82
本文介绍了发送请求并获得响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的图像是链接



Will这可能吗?如果是这样,让我知道如何做到这一点。

我已经成功地从webservice向java API发送了一个请求,但我无法将响应直接发送到浏览器,我不想将其发送回请求所在的apache服务器。

我不知道如何将响应发送到浏览器直接帮助我们..





谢谢,



HOSTGUY

Here''s the image link

Will this be possible ?? If so let me know how to do it guys.
I ve successfully sent a request from webservice to java API but i couldnt send the response directly to the browser and i dont want to send it back to the apache server from where the request came.
I dont know how to send the response to the browser directly help me guys..


Thanks,

HOSTGUY

推荐答案

不,你不能这样做。这是一个纯客户端 - 服务器架构。



您需要修改图表:请求按照您的描述进行。然后响应从Tomcat服务器返回到Apache服务器,然后Apache服务器向浏览器发送HTTP响应。



对于某些背景,请参阅:

http://en.wikipedia.org/wiki/Pull_technology [ ^ ],

http://en.wikipedia.org/wiki/Push_technology [ ^ ]。



-SA
No, you cannot do it. This is a pure client-server architecture.

You need to modify the diagram: requests go as you depicted it. Then the response goes from the Tomcat server back to Apache server, and then the Apache server sends HTTP response to the browser.

For some background, please see:
http://en.wikipedia.org/wiki/Pull_technology[^],
http://en.wikipedia.org/wiki/Push_technology[^].

—SA


这篇关于发送请求并获得响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆