从webservice部分获取大数据? [英] Getting large data from webservice partial?

查看:194
本文介绍了从webservice部分获取大数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽可能简单 - 一方面我有Web服务应用程序(WCF),另一方面是Java JSF2的另一方面网站客户端。我需要从WCF获取大量数据并将其显示在我的JSF2网站中。基本上它将DataTable通过WCF传递到JSF2应用程序并显示在dataGridView控件中..



1.首先,我需要知道如何创建WCF可由Java,JSF2应用程序读取。

2.我有时需要传递大量数据,所以我需要做部分..不知怎的。



我已经做了什么..我有默认的WCF webservice函数,我可以从JSF2中读取(这是简单的hello world)。我在JSF中也有datagridview,它由来自WCF的数据填充..所以我认为我已经掌握了基础知识..



其实我的问题是有点复杂,对不起,但感谢任何答案:)

解决方案

1 - 如果您使用标准的Web服务,那么您的WCF代码应隐藏在后面标准化界面



2 - 您需要创建一个Web服务,在完整调用中返回部分数据。如果您的网络服务不提供数据分页,并且只能一次性返回,那么您就不能拨打半个电话,那么您将需要等待所有这一切,以获得它。

Hi, as simple as I can - On one side I have web-service application (WCF) and on the other side website client in Java JSF2. I need to get large data from WCF and display it in my JSF2 website. Basically it will be DataTable passed via WCF to the JSF2 app and displayed in dataGridView control..

1. First of all I need to know how to create WCF that will be readable by Java, JSF2 application.
2. I need to pass large data sometimes, so I need to do it partial.. somehow.

What I have done already.. I have default WCF webservice function, that I can read from JSF2 (it is simple hello world). I have also datagridview in JSF, that is filled by data that came from WCF.. so I think I''ve got basics..

actually my question is a little bit more complex, sorry about that, but thanks for any answer :)

解决方案

1 - if you use a standard webservice, then your WCF code should be hidden behind a standardised interface

2 - you will need to create a web service that returns partial data in a complete call. You can''t make half a call, if your webservice does not offer pagination of the data, and only returns it all in one go, then you''ll need to wait for it all to come, to get it.


这篇关于从webservice部分获取大数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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