webservice 涉及到的注解说明

1. @WebMethod(operationName = "addUser")  

     生成wsdl的时候  操作的名字就取这个值

     <wsdl:operation name="addUser">
 
      </wsdl:operation>
2. @WebResult(name="result")
  生成wsdl的时候,返回值的标签 取这个名字
  < part  name = "result"  type = "xsd:string" />
3. @WebParam(name = "basefield")
 生成wsdl 的时候,参数的名字取这个值,默认是 arg0 arg1 。。。。
 

猜你喜欢

转载自feiteyizu.iteye.com/blog/2221597