Click here to Skip to main content
11,715,425 members (80,875 online)
Rate this: bad
Please Sign up or sign in to vote.
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 Smile | :)
Posted 6-Jan-13 9: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 at 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 at 7-Jan-13 4:10am
I'd run with XML
mnd017 at 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 at 7-Jan-13 4:36am
So you're saying you think that Java or .NET can't work with XML ?
mnd017 at 7-Jan-13 9:14am
Did you meant to return XMLDocument or Xml string from WCF and consume by Java client?
Christian Graus at 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
0 Sergey Alexandrovich Kryukov 485
1 Richard MacCutchan 275
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 125
0 Sergey Alexandrovich Kryukov 785
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2015
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