使用Java和CPP的Web服务 [英] Web Service using java and CPP
本文介绍了使用Java和CPP的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将Java用于Web服务服务器和C ++客户端.如何将结构从C ++客户端传递到Java服务器,在该服务器中我可以在其中访问数据类型...我需要在服务器中单独访问结构的元素.我应该在服务器中以及部署之后使用arraylist吗..如何在c ++客户端中实现该服务器的arraylist?
在此先感谢..
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..
推荐答案
使用独立的数据结构(如XML或JSON).
您可以在此处找到有关这两者的出色文章和教程: CodeProject文章 [
by using an independent data structure like XML or JSON.
You can find great articles and tutorials about both here: CodeProject articles[^]
所提供的Web服务服务器使用的是http协议.
实际上,您没有将c ++结构发送到Web服务器.您将必须以get方法或post方法发送.现在,您可以更好地计划如何使用get方法或post方法.
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.
这篇关于使用Java和CPP的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文