You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.4 KiB
Java

1 year ago
package cokr.xit.interfaces.sntris.buga;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.Stub;
import org.apache.log4j.Logger;
/**
* @Class Name : BugaWSProxy.java
* @Description :
* @Version 1.0
* @Since 2019. 09. 03
* @Author
* <pre>
*
* ------- ------------- ----------------------
* </pre>
*/
public class BugaWSProxy implements BugaWS {
private static Logger logger = Logger.getLogger(BugaWSProxy.class.getName());
private String _endpoint = null;
private BugaWS bugaWS = null;
public BugaWSProxy() {
_initBugaWSProxy();
}
public BugaWSProxy(String endpoint) {
_endpoint = endpoint;
_initBugaWSProxy();
}
private void _initBugaWSProxy() {
try {
bugaWS = (new BugaWebServiceLocator()).getBugaWSPort();
if (bugaWS != null) {
if (_endpoint != null)
((Stub)bugaWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
else
_endpoint = (String)((Stub)bugaWS)._getProperty("javax.xml.rpc.service.endpoint.address");
}
} catch (ServiceException serviceException) {
logger.error("e : " + serviceException);
}
}
public String getEndpoint() {
return _endpoint;
}
public void setEndpoint(String endpoint) {
_endpoint = endpoint;
if (bugaWS != null)
((Stub)bugaWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
}
public BugaWS getBugaWS() {
if (bugaWS == null)
_initBugaWSProxy();
return bugaWS;
}
@Override
public Bu04UserInfoWSDTO getUserInfo(String userId) throws RemoteException {
return getBugaWS().getUserInfo(userId);
}
@Override
public Bu04SemokWSDTO[] getListSemokInfo(String siguCd, String buseoCd) throws RemoteException {
return getBugaWS().getListSemokInfo(siguCd, buseoCd);
}
@Override
public Bu04SemokWSDTO getSemokInfo(String siguCd, String buseoCd, String semokCd) throws RemoteException {
return getBugaWS().getSemokInfo(siguCd, buseoCd, semokCd);
}
@Override
public Bu04SemokWSRACSDTO getSemokInfoRACS(String siguCd, String buseoCd, String semokCd) throws RemoteException {
return getBugaWS().getSemokInfoRACS(siguCd, buseoCd, semokCd);
}
@Override
public String getNewTaxNo(String siguCd, String semokCd, String taxYm, String taxGubun) throws RemoteException {
return getBugaWS().getNewTaxNo(siguCd, semokCd, taxYm, taxGubun);
}
@Override
public Bu04SimpleBugaWSDTO[] getListSimpleBuga(String buchGubun, String sysGubun, String mulNm) throws RemoteException {
return getBugaWS().getListSimpleBuga(buchGubun, sysGubun, mulNm);
}
@Override
public Bu04SimpleBugaETCWSDTO getSimpleBuga(String buchGubun, String sysGubun, String siguCd, String semokCd, String taxYm, String taxGubun, String taxNo) throws RemoteException {
return getBugaWS().getSimpleBuga(buchGubun, sysGubun, siguCd, semokCd, taxYm, taxGubun, taxNo);
}
@Override
public StatusCodeWSDTO insertBugaRegist(Bu04BugaWSDTO bugaDTO) throws RemoteException {
return getBugaWS().insertBugaRegist(bugaDTO);
}
@Override
public StatusCodeWSDTO insertBugaRegistExt(Bu04BugaExtWSDTO bugaDTO) throws RemoteException {
return getBugaWS().insertBugaRegistExt(bugaDTO);
}
@Override
public boolean isCheckBugaUpdate(String siguCd, String buseoCd, String semokCd, String taxYm, String taxGubun, String taxNo) throws RemoteException {
return getBugaWS().isCheckBugaUpdate(siguCd, buseoCd, semokCd, taxYm, taxGubun, taxNo);
}
@Override
public StatusCodeWSDTO deleteBuga(String siguCd, String buseoCd, String nxrpTaxItmCode, String taxYm, String taxGubun, String taxNo, String lastWorkId, String nxrpSysSe) throws RemoteException {
return getBugaWS().deleteBuga(siguCd, buseoCd, nxrpTaxItmCode, taxYm, taxGubun, taxNo, lastWorkId, nxrpSysSe);
}
@Override
public StatusCodeWSDTO biGwaSeRegistWS(String siguCd, String buseoCd, String semokCd, String taxYm, String taxGubun, String taxNo, String buDcGubun) throws RemoteException {
return getBugaWS().biGwaSeRegistWS(siguCd, buseoCd, semokCd, taxYm, taxGubun, taxNo, buDcGubun);
}
@Override
public Bu04GyuljeInfoDTO getGyuljeInfo(String siguCd, String semokCd, String taxYm, String taxGubun, String buseoCd, String taxNo, String lastWorkId) throws RemoteException {
return getBugaWS().getGyuljeInfo(siguCd, semokCd, taxYm, taxGubun, buseoCd, taxNo, lastWorkId);
}
@Override
public StatusCodeWSDTO updateNapgiYmd(Bu04BugaWSDTO issue) throws RemoteException {
return getBugaWS().updateNapgiYmd(issue);
}
}