简体   繁体   English

需要一个Java Web服务教程以及如何使Web服务安全

[英]Need a java webservice tutorial and how to make a web service secure

I have a web service that is using: 我有一个正在使用的Web服务:

  • Java (familiar) Java(熟悉)
  • SOAP (new to me) SOAP(对我来说是新的)
  • JBOSS (new to me) JBOSS(我新手)

The web service is currently unsecure. 该Web服务当前不安全。 My task is to make it secure using https (ssl or tsl). 我的任务是使用https(ssl或tsl)使其安全。

I am new to web services and web things in general. 我是Web服务和Web事物的新手。 In the last week have gone through a tone of literature. 在上个星期经历了文学的语调。 Much of it which I think was not relevant to my project. 我认为其中很多与我的项目无关。 I think that I need two things: 我认为我需要两件事:

  • A pretty basic tutorial on web services (java specific) Web服务的相当基本的教程(特定于Java)
  • A tutorial on making web services secured 有关使Web服务安全的教程

Here are some of the tutorials I have gone through already: 这是我已经阅读的一些教程:

SO Answer - In-process SOAP service server for Java SO Answer-Java的进程内SOAP服务服务器

  • How to make a web service server. 如何制作Web服务服务器。
  • Does not have instructions for the client. 没有针对客户的说明。
  • Also does not specify what should happen so I am not certain that I got the propper result when navigating to the URL. 也没有指定应该发生什么,因此我不确定导航到URL时是否获得了正确的结果。

An Introductory Tutorial on Web Services, Java and XML Web服务,Java和XML入门教程

  • Pretty good description of lots of xml things and how messages are passed. 很好地描述了许多xml事物以及如何传递消息。 Not certain but this seems more low level than what I need 不确定,但这似乎比我需要的低

Three Minutes to a Web Service Web服务的三分钟

  • Good tutorial but in the second step one of the commands did not work. 很好的教程,但是在第二步中,其中一个命令不起作用。
  • I think that this may be because the tutorial is really old and maybe my jdk is differnt or something like that.. 我认为这可能是因为该教程确实很老,也许我的jdk是不同的或类似的东西。

You can check out these frameworks 您可以查看这些框架

Apache axis 阿帕奇轴

Apache cxf 阿帕奇cxf

The web service is currently unsecure. 该Web服务当前不安全。 My task is to make it secure using https (ssl or tsl). 我的任务是使用https(ssl或tsl)使其安全。

If it's just about (one-way) SSL, then this question doesn't have much to do with web services actually. 如果仅是(单向)SSL,那么此问题实际上与Web服务无关。 It's more a web server or app server configuration issue. 这更多是Web服务器或应用程序服务器配置问题。 For JBoss, see SSLSetup or, if you are using Apache for the SSL encryption, see Apache SSL/TLS Encryption . 对于JBoss,请参阅SSLSetup;或者,如果您使用Apache进行SSL加密,请参阅Apache SSL / TLS加密

I would guess that you need to look at JBoss's documentation for how they handle security. 我猜想您需要查看JBoss的文档以了解它们如何处理安全性。 Maybe this would help: 也许这会有所帮助:

Chapter 8. Security on JBoss 第8章JBoss的安全性

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

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