|
|
@ -3,6 +3,7 @@ package com.weaver.seconddev.interfaces.k3;
|
|
|
|
import com.alibaba.csp.sentinel.command.annotation.CommandMapping;
|
|
|
|
import com.alibaba.csp.sentinel.command.annotation.CommandMapping;
|
|
|
|
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
|
|
|
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
|
|
|
import com.weaver.seconddev.interfaces.prop.ConfigProp;
|
|
|
|
import com.weaver.seconddev.interfaces.prop.ConfigProp;
|
|
|
|
|
|
|
|
import org.apache.axis2.kernel.http.HTTPConstants;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.core.env.Environment;
|
|
|
|
import org.springframework.core.env.Environment;
|
|
|
|
import java.lang.*;
|
|
|
|
import java.lang.*;
|
|
|
@ -34,6 +35,8 @@ public class CallK3CustomerService extends BaseBean {
|
|
|
|
CustomerServiceStub stub = new CustomerServiceStub(url);
|
|
|
|
CustomerServiceStub stub = new CustomerServiceStub(url);
|
|
|
|
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
|
|
|
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
|
|
|
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
|
|
|
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(HTTPConstants.SO_TIMEOUT,300000);
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(HTTPConstants.CONNECTION_TIMEOUT,300000);
|
|
|
|
// HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
|
|
|
// HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
|
|
|
// auth.setUsername(Util.null2String(getPropValue("htportaloaUrl", "po_user")).trim());
|
|
|
|
// auth.setUsername(Util.null2String(getPropValue("htportaloaUrl", "po_user")).trim());
|
|
|
|
// auth.setPassword(Util.null2String(getPropValue("htportaloaUrl", "po_password")).trim());
|
|
|
|
// auth.setPassword(Util.null2String(getPropValue("htportaloaUrl", "po_password")).trim());
|
|
|
@ -62,6 +65,8 @@ public class CallK3CustomerService extends BaseBean {
|
|
|
|
CustomerServiceStub stub = new CustomerServiceStub(url);
|
|
|
|
CustomerServiceStub stub = new CustomerServiceStub(url);
|
|
|
|
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
|
|
|
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
|
|
|
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
|
|
|
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(HTTPConstants.SO_TIMEOUT,300000);
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(HTTPConstants.CONNECTION_TIMEOUT,300000);
|
|
|
|
// HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
|
|
|
// HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
|
|
|
// auth.setUsername(Util.null2String(getPropValue("htportaloaUrl", "po_user")).trim());
|
|
|
|
// auth.setUsername(Util.null2String(getPropValue("htportaloaUrl", "po_user")).trim());
|
|
|
|
// auth.setPassword(Util.null2String(getPropValue("htportaloaUrl", "po_password")).trim());
|
|
|
|
// auth.setPassword(Util.null2String(getPropValue("htportaloaUrl", "po_password")).trim());
|
|
|
@ -91,6 +96,8 @@ public class CallK3CustomerService extends BaseBean {
|
|
|
|
CustomerServiceStub stub = new CustomerServiceStub(url);
|
|
|
|
CustomerServiceStub stub = new CustomerServiceStub(url);
|
|
|
|
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
|
|
|
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
|
|
|
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
|
|
|
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(HTTPConstants.SO_TIMEOUT,300000);
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(HTTPConstants.CONNECTION_TIMEOUT,300000);
|
|
|
|
// HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
|
|
|
// HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
|
|
|
// auth.setUsername(Util.null2String(getPropValue("htportaloaUrl", "po_user")).trim());
|
|
|
|
// auth.setUsername(Util.null2String(getPropValue("htportaloaUrl", "po_user")).trim());
|
|
|
|
// auth.setPassword(Util.null2String(getPropValue("htportaloaUrl", "po_password")).trim());
|
|
|
|
// auth.setPassword(Util.null2String(getPropValue("htportaloaUrl", "po_password")).trim());
|
|
|
|