Click here to Skip to main content
13,250,043 members (70,123 online)
Rate this:
Please Sign up or sign in to vote.
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 6-Jan-13 10:54am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
mnd017 7-Jan-13 4:09am
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 ( 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?
Christian Graus 7-Jan-13 14:19pm
I mean a string, XML is just plain old text.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100