NetBeans 6 Web Services designer's first glimpse

Source: Internet
Author: User
Tags web services netbeans wsdl

Please install the NetBeans 6 M9 and GlassFish V2 b49 or use the NetBeans 6 M9 to bring your own SUN Java System application Server 9

Create a new Web project: File > New Project > Web Category > Web Application > WebApplication1

Right-click on the new WebApplication1, select New > Web Services ...

Create a Hellowebservice Web Service name and package name,

Click ' Add Operation ' in the designer to create the SayHello method name, and the return value is: java.lang.String

Click WebApplication1 Right and choose ' Deploy Project ' after successful deployment, at which point you can access the WSDL:

http://localhost:8080/WebApplication1/HelloWebServiceService?wsdl

Click the Hellowebservice Right button and choose ' Test Web Service '

Http://localhost:8080/WebApplication1/HelloWebServiceService?Tester

Enter the Huihoo, which returns the word Huihoo

Because there are some issue, so to modify a place: Hellowebservice.java, similar

public String sayHello(@WebParam(name = "name")
String name) {
return name;
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.