简体   繁体   中英

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. My team and I decided to go with the command line when learning Java EE for class. We have a project basically done, but are now at the point in the class where we need to create web services. 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. I was able to deploy the following and get XML back, but can't get a client running to parse the info somehow:

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. There are also several quick starts that were developed for Java EE 6.

You might be particularly interested in the jax-rs-client quick start.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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