master
wangh 4 years ago
parent b08e97e968
commit 3162bbcee2

@ -9,7 +9,7 @@ import javax.jws.WebService;
/** /**
* Created by wangh on 2021/1/14-10:10 * Created by wangh on 2021/1/14-10:10
*/ */
@WebService @WebService(targetNamespace = "http://service.example.com/" ,name = "authorPortType")
public interface IService { public interface IService {
/** /**
* *
@ -74,6 +74,7 @@ public interface IService {
* @param rqxhmc * @param rqxhmc
* @param pdaip pdaip * @param pdaip pdaip
*/ */
@WebMethod
MyResult getScanInfoOutCenterStart(@WebParam(name = "messageHeader") String messageHeader, MyResult getScanInfoOutCenterStart(@WebParam(name = "messageHeader") String messageHeader,
@WebParam(name = "containerRegisterQuery") String containerRegisterQuery, @WebParam(name = "containerRegisterQuery") String containerRegisterQuery,
@WebParam(name = "opOrgCode") String opOrgCode, @WebParam(name = "opOrgCode") String opOrgCode,
@ -111,6 +112,7 @@ public interface IService {
* @param pdaip pdaip * @param pdaip pdaip
* @return * @return
*/ */
@WebMethod
MyResult getScanInfoOutCenterStop(@WebParam(name = "messageHeader") String messageHeader, MyResult getScanInfoOutCenterStop(@WebParam(name = "messageHeader") String messageHeader,
@WebParam(name = "containerRegisterQuery") String containerRegisterQuery, @WebParam(name = "containerRegisterQuery") String containerRegisterQuery,
@WebParam(name = "opOrgCode") String opOrgCode, @WebParam(name = "opOrgCode") String opOrgCode,

@ -7,7 +7,11 @@ import javax.jws.WebService;
/** /**
* Created by wangh on 2021/1/14-10:29 * 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 { public class ServiceImpl implements IService {
//请求地址 http://localhost:8090/services/mPerson?wsdl //请求地址 http://localhost:8090/services/mPerson?wsdl
@Override @Override

Loading…
Cancel
Save