diff --git a/src/main/java/com/example/services/IService.java b/src/main/java/com/example/services/IService.java index 59e7a57..5a40f8c 100644 --- a/src/main/java/com/example/services/IService.java +++ b/src/main/java/com/example/services/IService.java @@ -9,7 +9,7 @@ import javax.jws.WebService; /** * Created by wangh on 2021/1/14-10:10。 */ -@WebService +@WebService(targetNamespace = "http://service.example.com/" ,name = "authorPortType") public interface IService { /** * 入库开始读 @@ -74,6 +74,7 @@ public interface IService { * @param rqxhmc 容器型号名称 * @param pdaip 指定pda开始读的ip */ + @WebMethod MyResult getScanInfoOutCenterStart(@WebParam(name = "messageHeader") String messageHeader, @WebParam(name = "containerRegisterQuery") String containerRegisterQuery, @WebParam(name = "opOrgCode") String opOrgCode, @@ -111,6 +112,7 @@ public interface IService { * @param pdaip 指定pda停止读的ip * @return */ + @WebMethod MyResult getScanInfoOutCenterStop(@WebParam(name = "messageHeader") String messageHeader, @WebParam(name = "containerRegisterQuery") String containerRegisterQuery, @WebParam(name = "opOrgCode") String opOrgCode, diff --git a/src/main/java/com/example/services/ServiceImpl.java b/src/main/java/com/example/services/ServiceImpl.java index b265a54..e26a436 100644 --- a/src/main/java/com/example/services/ServiceImpl.java +++ b/src/main/java/com/example/services/ServiceImpl.java @@ -7,7 +7,11 @@ import javax.jws.WebService; /** * Created by wangh on 2021/1/14-10:29。 */ -@WebService(name = "test" ,targetNamespace ="http://service.example.com/" , endpointInterface = "com.example.services.IService")//指定发布webservcie的接口类,此类也需要接入@WebService注解 +@WebService( + targetNamespace ="http://service.example.com/" , + serviceName = "authorService", //服务name名称 + portName = "authorPortName", + endpointInterface = "com.example.services.IService")//指定发布webservcie的接口类,此类也需要接入@WebService注解 public class ServiceImpl implements IService { //请求地址 http://localhost:8090/services/mPerson?wsdl @Override