使用NetBeans的Java中的Web服务 [英] Web Service in java using netbeans

查看:65
本文介绍了使用NetBeans的Java中的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在netbeans中使用java创建了一个Web服务服务器.使用jboss 6.0我部署了该服务器.它将响应,即返回一个类对象.在Web Service客户端中,如何获取该返回值?我必须在这里定义相同的类型类并创建一个对象并以其他方式接收该对象吗?

I created a web service server using java in netbeans..Using jboss 6.0 i deployed that..It will response ie., return a class object.. in Web Service client, how to get that return value ? Do i have to define the same type class here and create an object and receive that one or any other way?

推荐答案

客户端需要知道该对象-然后他可以解压缩接收到的数据.
定义对象的接口将对此非常有用.

一个人使用了一个额外的项目来定义它,然后由应用程序项目(服务器和客户端)导入该项目.
The client needs to know the Object - then he can unpack the received data.
An Interface defining the Object would be good for that.

One uses an extra project for defining this, the project then is imported by both application projects, server and client.


这篇关于使用NetBeans的Java中的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆