简体   繁体   English

Java Webservices - JDK版本

[英]Java Webservices - JDK version

I would like to create a webservice (either SOAP or REST ) in java with jdk 1.5 (deployed Weblogic 9.2 which is 1.5 compatible) and the same will be consumed by the client created with jdk1.6. 我想在java中使用jdk 1.5创建一个webserviceSOAP or REST )(部署的Weblogic 9.2与1.5兼容),并且使用jdk1.6创建的客户端将使用相同的Web服务。 Is the above claim fine? 上述索赔是否罚款? Or both the clinet and the server should be created of the same jdk version? 或者clinet和服务器都应该创建相同的jdk版本?

I know this might be reduntant question, but i'm unable to find a satisfactory answer googling. 我知道这可能是一个简单的问题,但我无法找到一个满意的答案谷歌搜索。

  • What are the better options(frameworks,methodology etc.,) to develop java webservices with jdk 1.5 ? 使用jdk 1.5开发java webservices有哪些更好的选择(框架,方法等)?
  • SOAP and REST have their own advantages and disadvantages, I would like to know if the clinet is not via a web browser (but a standalone java program or so), then what is the better approach to get along.. SOAP or REST? SOAP和REST有各自的优点和缺点,我想知道clinet是不是通过Web浏览器(而是一个独立的java程序),那么更好的方法是什么?SOAP或REST? Added to this, I also need the webservice to be secure ie, user authenticated possibly.. 除此之外,我还需要Web服务是安全的,即用户可能已经过身份验证。

Thanks. 谢谢。

The main advantage of Web Services is that the server and client use HTTP and XML or JSON as the communication language and don't have to share anything else in common. Web服务的主要优点是服务器和客户端使用HTTP和XML或JSON作为通信语言,而不必共享任何其他共同点。 The client could be .NET on Windows, and the server could be Java on Linux, or even embedded C inside a smart appliance. 客户端可以是Windows上的.NET,服务器可以是Linux上的Java,甚至可以是智能设备中的嵌入式C。 If you're wanting to share the actual program code that interprets and uses the data transferred, then you can reuse it most easily if you're using the same platform on both ends, but that's not a requirement. 如果您想要共享解释和使用传输数据的实际程序代码,那么如果您在两端使用相同的平台,则可以最轻松地重用它,但这不是必需的。

These days, I would encourage you to see if there's any way possible to use a more modern version of Java. 这些天,我鼓励你看看是否有可能使用更现代的Java版本。 Even Java 6 is deprecated now. 甚至Java 6现在也已被弃用。

As for frameworks, look at Spring MVC, especially its JSON support. 至于框架,请查看Spring MVC,尤其是它的JSON支持。 SOAP and REST have more to do with the design of your program logic (REST is basically stateless, which isn't appropriate for all systems). SOAP和REST更多地与程序逻辑的设计有关(REST基本上是无状态的,不适用于所有系统)。

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

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