简体   繁体   English

如何使用Maven在Jboss中使用JAX-WS

[英]How to use JAX-WS in Jboss using Maven

I have been trying to find tutorials on how to start creating web services and clients in Jboss in conjunction with Maven. 我一直在尝试找到有关如何与Maven一起在Jboss中开始创建Web服务和客户端的教程。 My team and I decided to go with the command line when learning Java EE for class. 我和我的团队决定在学习Java EE上课时使用命令行。 We have a project basically done, but are now at the point in the class where we need to create web services. 我们已经完成了一个项目,但是现在该类是我们需要创建Web服务的时候了。 The tutorials on using our current setup are non existent so its hard to get the overall picture when most tutorials use an IDE that does most of the work. 不存在使用当前设置的教程,因此,当大多数教程使用可完成大部分工作的IDE时,很难获得整体效果。 I was able to deploy the following and get XML back, but can't get a client running to parse the info somehow: 我能够部署以下内容并取回XML,但无法运行客户端以某种方式解析信息:

import javax.jws.WebService;
import javax.jws.WebMethod;

@WebService
public class Hello {

    private String message = new String("Hello, ");

    public void Hello() {}

    @WebMethod
    public String sayHello(String name) {
        return message + name + ".";
    }


}//end of class

I am hoping to get some help on either great tutorials on my current issue to get a better idea or actual quick explanations to help me understand it all. 我希望从当前问题的出色教程中获得帮助,以获得更好的主意或实际的快速解释,以帮助我理解所有内容。

There is very good material for Java EE on the JDF site. JDF站点上有关于Java EE的非常好的材料。 There are also several quick starts that were developed for Java EE 6. 还为Java EE 6开发了一些快速入门。

You might be particularly interested in the jax-rs-client quick start. 您可能对jax-rs-client快速入门特别感兴趣。

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

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