Click here to Skip to main content
12,451,251 members (50,803 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ Java
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
 
good
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[^]
  Permalink  
Comments
Mohibur Rashid 19-Nov-12 4:20am
   
json is a good choice
Rate this: bad
 
good
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.
  Permalink  

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 | Mobile
Web01 | 2.8.160826.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2016
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