Click here to Skip to main content
13,086,120 members (81,826 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am using java for web service server and c++ client. How to pass a structure from c++ client to java server where in which datatype i can access it... I'm in need to access the elements of structure individually in server.. How to do this..? Should i use arraylist in server and after deployment .. how to implement that server's arraylist in c++ client?

Thanks in advance..
Posted 18-Nov-12 19:13pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

by using an independent data structure like XML or JSON.

You can find great articles and tutorials about both here: CodeProject articles[^]
Mohibur Rashid 19-Nov-12 4:20am
json is a good choice
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

The web service which is provided by the server is using http protocol.

as a matter of fact you are not sending c++ structure to webserver. you will have to send either in get method or post method. Now you better plan how you would utilize your get method or post method.

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.170813.1 | Last Updated 19 Nov 2012
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