1、@WebService(targetNamespace=“http://ws.service.connector/”,endpointInterface = “connector.service.ws.WsForHisService”)
此注解在接口和实现类里必须都要有,实现类里注解里的参数上面的两个都要有,接口类里可以没有注解的参数。
2、@WebParam(name=“functionCode”,targetNamespace = “http://ws.service.connector/”)
如果是接口和实现类的方式,此注解必须要放在接口的方法参数上。放在实现类里不起效果
3、@WebMethod(action = “http://ws.service.connector/messageServer”)
此注解若没有会影响到wsdl 中的soapAction,action参数对应wsdl中的soapAction。
<wsdl:binding …>
<wsdl:operation name=“messageServer”>
<soap:operation soapAction="" style=“document”/>
…
</wsdl:operation name=“messageServer”>
</wsdl:binding>