service注入

ht
qijirenjian 5 months ago
parent 44c85fdb9f
commit 753eccd624

@ -12,7 +12,9 @@ import org.apache.axis2.kernel.http.HTTPConstants;
import org.apache.axis2.transport.http.impl.httpclient4.HttpTransportPropertiesImpl;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class CallEasBlacklistServices {
public static final org.slf4j.Logger logger = LoggerFactory.getLogger(CallEasBlacklistServices.class);

@ -6,23 +6,15 @@ package com.weaver.seconddev.interfaces.easoa;
import com.weaver.seconddev.interfaces.prop.ConfigProp;
import org.apache.axis2.kernel.http.HTTPConstants;
import org.apache.axis2.transport.http.HttpTransportProperties;
//import com.weaver.seconddev.interfaces.easoa.SI_HTOAPayControl_OUTServiceStub.*;
import com.weaver.common.i18n.tool.util.I18nContextUtil;
import org.apache.axis2.transport.http.impl.httpclient4.HttpTransportPropertiesImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import java.lang.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.weaver.verupgrade.general.BaseBean;
import com.weaver.verupgrade.general.Util;
import org.springframework.stereotype.Component;
// Referenced classes of package com.weaver.seconddev.interfaces.easoa:
// CallEasServices
@Component
public class CallEasServices extends BaseBean {
public class CallEasServices {
@Autowired
private ConfigProp configProp; //注入
@ -32,7 +24,7 @@ public class CallEasServices extends BaseBean {
// private static String url = "http://10.6.34.83:8080/easws/services/PayControlService?wsdl";
// private String url = Util.null2String(I18nContextUtilcus.getBean(Environment.class).getProperty("hteasoasync.url")).trim();
private String url =configProp.getWeaver_secondev_hteasoasync_url();
// private String url =configProp.getWeaver_secondev_hteasoasync_url();
// private String url = "http://sappod.hengtong.com:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_OA&receiverParty=&receiverService=&interface=SI_HTOAPayControl_OUT&interfaceNamespace=http://hengtong.com/OA/HTOAPayControl";
// public CallEasServices() {
// }
@ -49,6 +41,7 @@ public class CallEasServices extends BaseBean {
PayControlServiceStub easStub = null;
PayControlServiceStub.CompanyInfo[] company = null;
try {
String url =configProp.getWeaver_secondev_hteasoasync_url();
easStub = new PayControlServiceStub(url);
easStub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
easStub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
@ -89,6 +82,7 @@ public class CallEasServices extends BaseBean {
PayControlServiceStub easStub = null;
PayControlServiceStub.VendorInfo[] vendor = null;
try {
String url =configProp.getWeaver_secondev_hteasoasync_url();
easStub = new PayControlServiceStub(url);
easStub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
easStub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
@ -128,6 +122,7 @@ public class CallEasServices extends BaseBean {
logger_814f159c.error(String.valueOf("querySourceBoeNum lx:" + lx == null ? "" : lx.length));
logger_814f159c.error(String.valueOf("querySourceBoeNum money" + money == null ? "" : money.length));
try {
String url =configProp.getWeaver_secondev_hteasoasync_url();
easStub = new PayControlServiceStub(url);
easStub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
HttpTransportPropertiesImpl.Authenticator auth = new HttpTransportPropertiesImpl.Authenticator();
@ -189,6 +184,7 @@ public class CallEasServices extends BaseBean {
logger_814f159c.error(String.valueOf("doPayControl sfhmd" + sfhmd == null ? "" : sfhmd.length));
logger_814f159c.error(String.valueOf("doPayControl lxArray" + lxArray == null ? "" : lxArray.length));
try {
String url =configProp.getWeaver_secondev_hteasoasync_url();
easStub = new PayControlServiceStub(url);
easStub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
easStub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
@ -274,6 +270,7 @@ public class CallEasServices extends BaseBean {
logger_814f159c.error(String.valueOf("doPayControl oprationtype:" + oprationtype));
logger_814f159c.error(String.valueOf("doPayControl companyIds:" + companyIds == null ? "" : companyIds.length));
try {
String url =configProp.getWeaver_secondev_hteasoasync_url();
// String url = Util.null2String(getPropValue("hteasoasync", "url")).trim();
easStub = new PayControlServiceStub(url);
easStub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);

Loading…
Cancel
Save