From 3162bbcee2d16d1bf28627984dd21a55a521ef42 Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Thu, 14 Jan 2021 17:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/services/IService.java | 4 +++- src/main/java/com/example/services/ServiceImpl.java | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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