简体   繁体   English

Web服务客户端和服务器

[英]Web service client and server

I am a webservice beginner. 我是一个Web服务初学者。 Is it required to have two different projects having separate EAR for developing a Web Service and its client both?(JAX-WS based) 是否需要两个不同的项目具有单独的EAR来开发Web Service及其客户端(基于JAX-WS)?

I guess it'd be recommended to do so, to keep a minimum level of organization. 我想建议这样做,以保持最低级别的组织。

By the way, if you are coding your client for a desktop environment, you would have a resulting .jar and only the server would be packed in an .ear . 顺便说一句,如果您要为桌面环境编写客户端代码,则会有一个生成的.jar而只有服务器会打包在.ear

Since you are using SOAP via JAX-WS you can develop the client using any programming language and technology you like (as long as it knows about SOAP). 由于您是通过JAX-WS使用SOAP的,因此您可以使用任何喜欢的编程语言和技术(只要它了解SOAP)来开发客户机。

So, yes, you should definitely separate server and client, even if you develop the client in Java, too. 因此,是的,即使您也使用Java开发客户端,也应绝对将服务器和客户端分开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM