Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :)
Posted

1 solution

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.
 
Share this answer
 
Comments
mnd017 7-Jan-13 4:09am    
Thanks.
Ad1. I'm not sure, which type of returned data do I have to use in my webservice. DataTable type is .NET type and I need to read it in Java. List of lists, two-dimensional arrays?
Christian Graus 7-Jan-13 4:10am    
I'd run with XML
mnd017 7-Jan-13 4:35am    
I don't understand.. I don't know how to implement WCF service on server side.. Here I've got example (http://www.c-sharpcorner.com/UploadFile/deepak.sharma00/how-to-return-a-datatable-from-wcf-service/) but it doesn't work, when I try to refresh Web Service Client in Netbeans.. I need to replace DataTable so It could be readable from Netbeans and java application
Christian Graus 7-Jan-13 4:36am    
So you're saying you think that Java or .NET can't work with XML ?
mnd017 7-Jan-13 9:14am    
Did you meant to return XMLDocument or Xml string from WCF and consume by Java client?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900