Introduction to Web Services Based on JAX-WS

Source: Internet
Author: User

This is the Java Project first is SEI, that is, the server interface class HelloService. java [java] package com. jadyer. service; import javax. jws. webParam; import javax. jws. webResult; import javax. jws. webService;/*** SEI (Service Endpoint Interface) * @ see Methods * @ see here the class-level annotation @ WebService is used to mark the method of this interface as a Web Service * @ see it exposes all methods by default, to shield a Method, use @ Method's exclude = The true attribute * @ see parameters * @ see the default method parameter name in the generated wsdl is arg0 and arg1, And the return value is return * @ see, which is not easy to observe, therefore, you can use the @ WebResult and @ WebParam Annotations * @ see @ WebResult and @ WebParam to specify the method parameter name and return value in the generated wsdl file * @ see parameters here. Note: if a WebServices service has been released, modify the service details, such as method parameter name and return value * @ see The internal logic of the method is not modified, but after the service is re-released, the corresponding client also needs to be modified, for example, re-run the wsimport local class * @ see because the wsdl file has been modified (although only the parameter name is changed ), the requested wsdl on the client is different from the new wsdl on the content * @ see if the client does not re-wsimport, it will lead to a successful request for the Service (actually an hypothetical success) but do not get the correct results * @ see so once the service is released, do not easily modify * @ see Principal * @ create Mar 17,201 3 12:11:24 AM * @ author Xuan Yu

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.