init
commit
b3aca51605
@ -0,0 +1,12 @@
|
||||
/.gradle/
|
||||
/.idea/
|
||||
/buildSrc/
|
||||
/devLib/
|
||||
/gradle/
|
||||
/secDevLib/
|
||||
/secondev-demo-test/
|
||||
/secondev-history-action/build/
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/README.md
|
||||
/settings.gradle
|
@ -0,0 +1,86 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.weaver.ecode.gradle.plugin.BuildArchPlugin'
|
||||
}
|
||||
|
||||
group 'com.weaver.secondev'
|
||||
version '1.0.0'
|
||||
description ''
|
||||
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
// maven { url 'https://maven.aliyun.com/repository/public/' } // 可以连互联网 可放开此行注释
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
def ignoredProjectNames = []
|
||||
|
||||
|
||||
configure(allprojects) { project ->
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'com.weaver.ecode.gradle.plugin.BuildArchPlugin'
|
||||
|
||||
compileJava {
|
||||
options.encoding = 'UTF-8'
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
jar {
|
||||
from sourceSets.main.allJava
|
||||
manifest {
|
||||
attributes 'weaver-ecode-seconddev-id': rootProject.group + '-' + rootProject.name,
|
||||
'Implementation-Version': rootProject.version,
|
||||
'Implementation-Vendor-Id': rootProject.group,
|
||||
'Implementation-Title': rootProject.name
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main{
|
||||
java {
|
||||
//只打包一下目录
|
||||
include 'com/weaver/**'
|
||||
|
||||
// //排除一下目录
|
||||
// exclude 'com/weaver/seconddev/action/**'
|
||||
// exclude 'com/weaver/seconddev/cache/**'
|
||||
// exclude 'com/weaver/seconddev/controller/**'
|
||||
// exclude 'com/weaver/seconddev/dao/**'
|
||||
// exclude 'com/weaver/seconddev/demo/**'
|
||||
// exclude 'com/weaver/seconddev/entity/**'
|
||||
// exclude 'com/weaver/seconddev/escheduler/**'
|
||||
// exclude 'com/weaver/seconddev/mq/**'
|
||||
// exclude 'com/weaver/seconddev/prop/**'
|
||||
// exclude 'com/weaver/seconddev/secdev/**'
|
||||
// exclude 'com/weaver/seconddev/service/**'
|
||||
// exclude 'com/weaver/seconddev/sync/**'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!ignoredProjectNames.contains(project.name)) {
|
||||
dependencies {
|
||||
// implementation group: 'junit', name: 'junit', version: '4.12'
|
||||
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.20'
|
||||
// implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
|
||||
|
||||
// 添加二开服务拉取的清单依赖
|
||||
def includeType = ['**/*.jar', '**/*.class']
|
||||
//服务器class文件依赖
|
||||
implementation files(rootProject.projectDir.getPath() + '/secDevClasses')
|
||||
//服务器jar包依赖
|
||||
implementation fileTree(dir: rootProject.projectDir.getPath() + '/secDevLib', includes: includeType)
|
||||
// 项目二开自定义依赖
|
||||
implementation fileTree(dir: rootProject.projectDir.getPath() + "/devLib", includes: includeType)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,8 @@
|
||||
plugins{
|
||||
id 'war'
|
||||
}
|
||||
description = ""
|
||||
|
||||
dependencies {
|
||||
// 子项目私有依赖添加
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.weaver.custom.configcenter;
|
||||
|
||||
import com.weaver.framework.client.annotation.WeaverConfigCenter;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
@Data
|
||||
@Component
|
||||
@WeaverConfigCenter(sources = {
|
||||
@WeaverConfigCenter.ConfigProperty(
|
||||
dataId = "weaver-secondev-htsysjcmt.properties",
|
||||
group = "DEFAULT_GROUP",
|
||||
refresh = "true")
|
||||
})
|
||||
public class htsysjcmtConfig {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.interfaces.crmoa;
|
||||
|
||||
import com.weaver.seconddev.interfaces.prop.ConfigProp;
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import com.weaver.seconddev.interfaces.crmoa.SI_HTCRMBlistTempLifting_OUTServiceStub.*;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
|
||||
public class CRM_SyncTempUnfreeze extends BaseBean {
|
||||
|
||||
@Autowired
|
||||
private ConfigProp configProp;
|
||||
|
||||
private static final org.slf4j.Logger logger_8493e3b4 = LoggerFactory.getLogger(CRM_SyncTempUnfreeze.class);
|
||||
|
||||
public CRM_TEMPUNFREEZE_RETURN[] call(CRM_TEMPUNFREEZE_HEAD[] param) throws Exception {
|
||||
// String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htcrmoasync.TempUnfreeze")).trim();
|
||||
String url = configProp.getTempUnfreeze();
|
||||
SI_HTCRMBlistTempLifting_OUTServiceStub stub = new SI_HTCRMBlistTempLifting_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_user")).trim());
|
||||
auth.setPassword(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_password")).trim());
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
CRM_OA_SyncTempUnfreezeList req = new CRM_OA_SyncTempUnfreezeList();
|
||||
ArrayOfCRM_TEMPUNFREEZE_HEAD array = new ArrayOfCRM_TEMPUNFREEZE_HEAD();
|
||||
array.setCRM_TEMPUNFREEZE_HEAD(param);
|
||||
req.setTempUnfreezeList(array);
|
||||
CRM_OA_SyncTempUnfreezeListResponse res = stub.sI_HTCRMBlistTempLifting_OUT(req);
|
||||
ArrayOfCRM_TEMPUNFREEZE_RETURN ret = res.getCRM_OA_SyncTempUnfreezeListResult();
|
||||
CRM_TEMPUNFREEZE_RETURN[] data = ret.getCRM_TEMPUNFREEZE_RETURN();
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* CRM_SyncUnFreezeTimesCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.1 Built on : Oct 19, 2009 (10:59:00 EDT)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.crmoa;
|
||||
|
||||
/**
|
||||
* CRM_SyncUnFreezeTimesCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class CRM_SyncUnFreezeTimesCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public CRM_SyncUnFreezeTimesCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public CRM_SyncUnFreezeTimesCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for cRM_OA_SyncUnFreezeTimes method
|
||||
* override this method for handling normal response from cRM_OA_SyncUnFreezeTimes operation
|
||||
*/
|
||||
public void receiveResultcRM_OA_SyncUnFreezeTimes(
|
||||
CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimesResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from cRM_OA_SyncUnFreezeTimes operation
|
||||
*/
|
||||
public void receiveErrorcRM_OA_SyncUnFreezeTimes(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
// Source File Name: ZOA_MM_AFNAM_SYNC.java
|
||||
package com.weaver.seconddev.interfaces.crmoa;
|
||||
|
||||
import org.apache.axis2.AxisFault;
|
||||
import java.rmi.RemoteException;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class CRM_syncUnFreezeTimes extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_38dddf66 = LoggerFactory.getLogger(CRM_syncUnFreezeTimes.class);
|
||||
|
||||
private CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimes time;
|
||||
|
||||
public CRM_syncUnFreezeTimes() {
|
||||
time = null;
|
||||
}
|
||||
|
||||
public void setOainputvendor(CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimes times) {
|
||||
time = times;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
String[] as = new String[3];
|
||||
try {
|
||||
BaseBean basebean = new BaseBean();
|
||||
logger_38dddf66.info(String.valueOf("------- do webservice CRM_syncUnFreezeTimes start -------"));
|
||||
CRM_SyncUnFreezeTimesStub stub = null;
|
||||
// String s2= "http://10.6.6.77:8070/CRM_SyncUnFreezeTimes.asmx";
|
||||
String s2 = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htcrmoasync.times")).trim();
|
||||
stub = new CRM_SyncUnFreezeTimesStub(s2);
|
||||
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
||||
// 设置超时时间
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(120000);
|
||||
CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimesResponse response = stub.cRM_OA_SyncUnFreezeTimes(time);
|
||||
CRM_SyncUnFreezeTimesStub.ArrayOfCRM_UNFREEZETIMES_RETURN crm_return_list = response.getCRM_OA_SyncUnFreezeTimesResult();
|
||||
CRM_SyncUnFreezeTimesStub.CRM_UNFREEZETIMES_RETURN[] returnArray = crm_return_list.getCRM_UNFREEZETIMES_RETURN();
|
||||
for (CRM_SyncUnFreezeTimesStub.CRM_UNFREEZETIMES_RETURN returnStr : returnArray) {
|
||||
as[0] = returnStr.getISTAT();
|
||||
as[1] = returnStr.getMESSAGE();
|
||||
}
|
||||
logger_38dddf66.info(String.valueOf("------- do webservice CRM_syncUnFreezeTimes END -------"));
|
||||
} catch (AxisFault e) {
|
||||
e.printStackTrace();
|
||||
} catch (RemoteException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return as;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_HTCRMBlistTempLifting_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.crmoa;
|
||||
|
||||
/**
|
||||
* SI_HTCRMBlistTempLifting_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_HTCRMBlistTempLifting_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_HTCRMBlistTempLifting_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_HTCRMBlistTempLifting_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_HTCRMBlistTempLifting_OUT method
|
||||
* override this method for handling normal response from sI_HTCRMBlistTempLifting_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_HTCRMBlistTempLifting_OUT(
|
||||
SI_HTCRMBlistTempLifting_OUTServiceStub.CRM_OA_SyncTempUnfreezeListResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_HTCRMBlistTempLifting_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_HTCRMBlistTempLifting_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,44 @@
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import java.rmi.RemoteException;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.file.Prop;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
|
||||
public class CallTravelApplyService {
|
||||
|
||||
private static final org.slf4j.Logger logger_ec0d40fa = LoggerFactory.getLogger(CallTravelApplyService.class);
|
||||
|
||||
private SI_BusinessTripApplicationSync_OUTServiceStub.SyncTravelApplyService input = null;
|
||||
|
||||
public void setInput(SI_BusinessTripApplicationSync_OUTServiceStub.SyncTravelApplyService resultIn) {
|
||||
this.input = resultIn;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
String[] result = new String[5];
|
||||
// String url = "http://10.6.2.35:7001/easws/services/syncTravelApplyService?wsdl";
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("hteasoasync.TravelApply")).trim();
|
||||
// String url = "http://sappod.hengtong.com:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_OA&receiverParty=&receiverService=&interface=SI_BusinessTripApplicationSync_OUT&interfaceNamespace=http://hengtong.com/OA/BusinessTripApplicationSync";
|
||||
SI_BusinessTripApplicationSync_OUTServiceStub stub = new SI_BusinessTripApplicationSync_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername("pouser");
|
||||
auth.setPassword("654321");
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
SI_BusinessTripApplicationSync_OUTServiceStub.SyncTravelApplyServiceResponse response = stub.sI_BusinessTripApplicationSync_OUT(input);
|
||||
SI_BusinessTripApplicationSync_OUTServiceStub.ResultInfo resultInfo = response.get_return();
|
||||
SI_BusinessTripApplicationSync_OUTServiceStub.SyncTravelApplyReturn[] Infos = resultInfo.getReturnInfos();
|
||||
result[0] = resultInfo.getISTAT();
|
||||
result[1] = resultInfo.getMESSAGE();
|
||||
result[2] = resultInfo.getITFID();
|
||||
result[3] = resultInfo.getSENDID();
|
||||
result[4] = resultInfo.getSYSID();
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
import com.weaver.seconddev.interfaces.easoa.DelayDateSyncServiceStub.DelayDateSyncService;
|
||||
import com.weaver.seconddev.interfaces.easoa.DelayDateSyncServiceStub.DelayDateSyncServiceResponse;
|
||||
import com.weaver.seconddev.interfaces.easoa.DelayDateSyncServiceStub.SyncDelayDateInfo;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class DelayDateService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_cf6b843f = LoggerFactory.getLogger(DelayDateService.class);
|
||||
|
||||
public String[] callService(SyncDelayDateInfo param) {
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("hteasoasync.DelayDateSync")).trim();
|
||||
String[] str = new String[2];
|
||||
try {
|
||||
logger_cf6b843f.info(String.valueOf("DelayDateService--start"));
|
||||
DelayDateSyncServiceStub stub = new DelayDateSyncServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
DelayDateSyncService req = new DelayDateSyncService();
|
||||
req.setSyncDelayDateInfo(param);
|
||||
DelayDateSyncServiceResponse res = stub.delayDateSyncService(req);
|
||||
DelayDateSyncServiceStub.ResultInfo resultInfo = res.get_return();
|
||||
str[0] = resultInfo.getIstat();
|
||||
str[1] = resultInfo.getSrmsage();
|
||||
logger_cf6b843f.info(String.valueOf("DelayDateService--end--" + str[0] + "|" + str[1]));
|
||||
} catch (Exception e) {
|
||||
str[0] = "E";
|
||||
str[1] = e.toString();
|
||||
logger_cf6b843f.info(String.valueOf("DelayDateService--error:" + e.toString()));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
|
||||
/**
|
||||
* DelayDateSyncServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* DelayDateSyncServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class DelayDateSyncServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public DelayDateSyncServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public DelayDateSyncServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for delayDateSyncService method
|
||||
* override this method for handling normal response from delayDateSyncService operation
|
||||
*/
|
||||
public void receiveResultdelayDateSyncService(
|
||||
DelayDateSyncServiceStub.DelayDateSyncServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from delayDateSyncService operation
|
||||
*/
|
||||
public void receiveErrordelayDateSyncService(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for getpayControlBusiness method
|
||||
* override this method for handling normal response from getpayControlBusiness operation
|
||||
*/
|
||||
public void receiveResultgetpayControlBusiness(
|
||||
DelayDateSyncServiceStub.GetpayControlBusinessResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from getpayControlBusiness operation
|
||||
*/
|
||||
public void receiveErrorgetpayControlBusiness(Exception e) {
|
||||
}
|
||||
|
||||
// No methods generated for meps other than in-out
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for delayDateSyncService method
|
||||
* override this method for handling normal response from delayDateSyncService operation
|
||||
*/
|
||||
public void receiveResultdelayDateSyncService(
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from delayDateSyncService operation
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,54 @@
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_FiAgncyAssetApplicationSync_OUTServiceStub.*;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class EASIntermediarySyncService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_cd0192cf = LoggerFactory.getLogger(EASIntermediarySyncService.class);
|
||||
|
||||
public String[] call(IntermediaryApplication info) {
|
||||
String[] str = new String[2];
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("hteasoasync.intermediarysync")).trim();
|
||||
try {
|
||||
logger_cd0192cf.info(String.valueOf("调用报账系统中介同步接口开始"));
|
||||
SI_FiAgncyAssetApplicationSync_OUTServiceStub stub = new SI_FiAgncyAssetApplicationSync_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_user")).trim());
|
||||
auth.setPassword(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_password")).trim());
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
IntermediaryService req = new IntermediaryService();
|
||||
IntermediaryApplicationSynchronization param = new IntermediaryApplicationSynchronization();
|
||||
IntermediaryApplication[] arr = new IntermediaryApplication[1];
|
||||
arr[0] = info;
|
||||
param.setITFID("HT01BZ025");
|
||||
param.setSENDID("");
|
||||
param.setSYSID("SYS006");
|
||||
param.setIntermediaryApplication(arr);
|
||||
req.setIntermediaryApplicationSynchronization(param);
|
||||
IntermediaryServiceResponse res = stub.sI_FiAgncyAssetApplicationSync_OUT(req);
|
||||
str[0] = res.get_return().getISTAT();
|
||||
if ("1".equals(str[0])) {
|
||||
str[1] = res.get_return().getMESSAGE();
|
||||
} else {
|
||||
ResultInfoLines[] lines = res.get_return().getResultInfoLinesArr();
|
||||
str[1] = lines[0].getMESSAGE();
|
||||
}
|
||||
logger_cd0192cf.info(String.valueOf("调用报账系统中介同步接口结束"));
|
||||
} catch (Exception e) {
|
||||
str[0] = "0";
|
||||
str[1] = e.toString();
|
||||
logger_cd0192cf.info(String.valueOf("调用报账系统中介同步接口出错:" + e.toString()));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_FeeApplicationSync_OUTServiceStub.CostStandardHead;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_FeeApplicationSync_OUTServiceStub.CostStandardSynchronization;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_FeeApplicationSync_OUTServiceStub.CostStandardSynchronizationService;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_FeeApplicationSync_OUTServiceStub.CostStandardSynchronizationServiceResponse;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class FeeApplicationService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_2817d3b0 = LoggerFactory.getLogger(FeeApplicationService.class);
|
||||
|
||||
public CostStandardSynchronizationServiceResponse call(CostStandardHead param) throws Exception {
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("hteasoasync.FeeApplication")).trim();
|
||||
logger_2817d3b0.info(String.valueOf("调用报账系统话费交通费接口开始"));
|
||||
SI_FeeApplicationSync_OUTServiceStub stub = new SI_FeeApplicationSync_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_user")).trim());
|
||||
auth.setPassword(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_password")).trim());
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
CostStandardSynchronizationService req = new CostStandardSynchronizationService();
|
||||
CostStandardSynchronization info = new CostStandardSynchronization();
|
||||
CostStandardHead[] arr = new CostStandardHead[1];
|
||||
arr[0] = param;
|
||||
info.setITFID("HT01BZ024");
|
||||
info.setSENDID("");
|
||||
info.setSYSID("SYS006");
|
||||
info.setCostStandardHead(arr);
|
||||
req.setCostStandardSynchronization(info);
|
||||
CostStandardSynchronizationServiceResponse res = stub.sI_FeeApplicationSync_OUT(req);
|
||||
logger_2817d3b0.info(String.valueOf("调用报账系统话费交通费接口接口结束"));
|
||||
return res;
|
||||
}
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_InterLoanApplicationSync_OUTServiceStub.InternalBorrowing;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_InterLoanApplicationSync_OUTServiceStub.InternalBorrowingService;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_InterLoanApplicationSync_OUTServiceStub.InternalBorrowingSynchronization;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_InterLoanApplicationSync_OUTServiceStub.ResultInfo;
|
||||
import com.weaver.seconddev.interfaces.easoa.SI_InterLoanApplicationSync_OUTServiceStub.ResultInfoLines;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class InterLoanService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_9c1a93c4 = LoggerFactory.getLogger(InterLoanService.class);
|
||||
|
||||
public String[] call(InternalBorrowing[] info) {
|
||||
String[] str = new String[2];
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("hteasoasync.InterLoan")).trim();
|
||||
try {
|
||||
logger_9c1a93c4.info(String.valueOf("调用报账系统内部借款接口开始"));
|
||||
SI_InterLoanApplicationSync_OUTServiceStub stub = new SI_InterLoanApplicationSync_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_user")).trim());
|
||||
auth.setPassword(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_password")).trim());
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
InternalBorrowingService res = new InternalBorrowingService();
|
||||
InternalBorrowingSynchronization param = new InternalBorrowingSynchronization();
|
||||
param.setITFID("HT01BZ023");
|
||||
param.setSENDID("");
|
||||
param.setSYSID("SYS006");
|
||||
param.setInternalBorrowing(info);
|
||||
res.setInternalBorrowingSynchronization(param);
|
||||
SI_InterLoanApplicationSync_OUTServiceStub.InternalBorrowingServiceResponse rep = stub.sI_InterLoanApplicationSync_OUT(res);
|
||||
ResultInfo result = rep.get_return();
|
||||
str[0] = result.getISTAT();
|
||||
if ("1".equals(str[0])) {
|
||||
str[1] = result.getMESSAGE();
|
||||
} else {
|
||||
ResultInfoLines[] lines = rep.get_return().getResultInfoLinesArr();
|
||||
str[1] = lines[0].getMESSAGE();
|
||||
}
|
||||
logger_9c1a93c4.info(String.valueOf("调用报账系统内部借款接口返回结果:" + str[0] + "--" + str[1]));
|
||||
logger_9c1a93c4.info(String.valueOf("调用报账系统内部借款接口结束"));
|
||||
} catch (Exception e) {
|
||||
str[0] = "0";
|
||||
str[1] = e.toString();
|
||||
logger_9c1a93c4.info(String.valueOf("调用报账系统内部借款接口出错:" + e.toString()));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_BusinessTripApplicationSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SI_BusinessTripApplicationSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_BusinessTripApplicationSync_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_BusinessTripApplicationSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_BusinessTripApplicationSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_BusinessTripApplicationSync_OUT method
|
||||
* override this method for handling normal response from sI_BusinessTripApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_BusinessTripApplicationSync_OUT(
|
||||
SI_BusinessTripApplicationSync_OUTServiceStub.SyncTravelApplyServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_BusinessTripApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_BusinessTripApplicationSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_FeeApplicationSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SI_FeeApplicationSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_FeeApplicationSync_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_FeeApplicationSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_FeeApplicationSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_FeeApplicationSync_OUT method
|
||||
* override this method for handling normal response from sI_FeeApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_FeeApplicationSync_OUT(
|
||||
SI_FeeApplicationSync_OUTServiceStub.CostStandardSynchronizationServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_FeeApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_FeeApplicationSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_FiAgncyAssetApplicationSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SI_FiAgncyAssetApplicationSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_FiAgncyAssetApplicationSync_OUTServiceCallbackHandler {
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_FiAgncyAssetApplicationSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_FiAgncyAssetApplicationSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_FiAgncyAssetApplicationSync_OUT method
|
||||
* override this method for handling normal response from sI_FiAgncyAssetApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_FiAgncyAssetApplicationSync_OUT(
|
||||
com.weaver.seconddev.interfaces.easoa.SI_FiAgncyAssetApplicationSync_OUTServiceStub.IntermediaryServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_FiAgncyAssetApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_FiAgncyAssetApplicationSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,130 @@
|
||||
|
||||
/**
|
||||
* SI_HTOAPayControl_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SI_HTOAPayControl_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_HTOAPayControl_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_HTOAPayControl_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_HTOAPayControl_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for do method
|
||||
* override this method for handling normal response from do operation
|
||||
*/
|
||||
public void receiveResultdo(
|
||||
SI_HTOAPayControl_OUTServiceStub.DoPayControlResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from do operation
|
||||
*/
|
||||
public void receiveErrordo(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for status method
|
||||
* override this method for handling normal response from status operation
|
||||
*/
|
||||
public void receiveResultstatus(
|
||||
SI_HTOAPayControl_OUTServiceStub.QueryPayControlStatusResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from status operation
|
||||
*/
|
||||
public void receiveErrorstatus(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for company method
|
||||
* override this method for handling normal response from company operation
|
||||
*/
|
||||
public void receiveResultcompany(
|
||||
SI_HTOAPayControl_OUTServiceStub.QueryOnlineCompanyListResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from company operation
|
||||
*/
|
||||
public void receiveErrorcompany(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for vendor method
|
||||
* override this method for handling normal response from vendor operation
|
||||
*/
|
||||
public void receiveResultvendor(
|
||||
SI_HTOAPayControl_OUTServiceStub.QueryVendorInfoListResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from vendor operation
|
||||
*/
|
||||
public void receiveErrorvendor(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for bOE method
|
||||
* override this method for handling normal response from bOE operation
|
||||
*/
|
||||
public void receiveResultbOE(
|
||||
SI_HTOAPayControl_OUTServiceStub.QuerySourceBoeNumResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from bOE operation
|
||||
*/
|
||||
public void receiveErrorbOE(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_InterLoanApplicationSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SI_InterLoanApplicationSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_InterLoanApplicationSync_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_InterLoanApplicationSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_InterLoanApplicationSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_InterLoanApplicationSync_OUT method
|
||||
* override this method for handling normal response from sI_InterLoanApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_InterLoanApplicationSync_OUT(
|
||||
SI_InterLoanApplicationSync_OUTServiceStub.InternalBorrowingServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_InterLoanApplicationSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_InterLoanApplicationSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_WhitelistSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SI_WhitelistSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_WhitelistSync_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_WhitelistSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_WhitelistSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_WhitelistSync_OUT method
|
||||
* override this method for handling normal response from sI_WhitelistSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_WhitelistSync_OUT(
|
||||
SI_WhitelistSync_OUTServiceStub.SyncWhiteListServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_WhitelistSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_WhitelistSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,84 @@
|
||||
|
||||
/**
|
||||
* SieOaVoucherServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.easoa;
|
||||
|
||||
/**
|
||||
* SieOaVoucherServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SieOaVoucherServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SieOaVoucherServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SieOaVoucherServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for getBoeBusiness method
|
||||
* override this method for handling normal response from getBoeBusiness operation
|
||||
*/
|
||||
public void receiveResultgetBoeBusiness(
|
||||
SieOaVoucherServiceStub.GetBoeBusinessResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from getBoeBusiness operation
|
||||
*/
|
||||
public void receiveErrorgetBoeBusiness(Exception e) {
|
||||
}
|
||||
|
||||
// No methods generated for meps other than in-out
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sieOaVoucherService method
|
||||
* override this method for handling normal response from sieOaVoucherService operation
|
||||
*/
|
||||
public void receiveResultsieOaVoucherService(
|
||||
SieOaVoucherServiceStub.SieOaVoucherServiceResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sieOaVoucherService operation
|
||||
*/
|
||||
public void receiveErrorsieOaVoucherService(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,42 @@
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import com.weaver.seconddev.interfaces.eipoa.SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
public class AccountService extends BaseBean {
|
||||
|
||||
private static final Logger logger_18cc50ce = LoggerFactory.getLogger(AccountService.class);
|
||||
|
||||
public String[] account(String sendid, UserSyncInfo[] arr) {
|
||||
String[] array = new String[2];
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.accountUrl")).trim();
|
||||
try {
|
||||
logger_18cc50ce.info(String.valueOf("开始调用批量开户销户接口"));
|
||||
SI_HTPortalUAMGMT2_OUTServiceStub stub = new SI_HTPortalUAMGMT2_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_user")).trim());
|
||||
auth.setPassword(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_password")).trim());
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
SI_HTPortalUAMGMT2_OUTServiceStub.UserAccount request = new SI_HTPortalUAMGMT2_OUTServiceStub.UserAccount();
|
||||
request.setSendid(sendid);
|
||||
request.setUser(arr);
|
||||
SI_HTPortalUAMGMT2_OUTServiceStub.UserAccountResponse response = stub.sI_HTPortalUAMGMT2_OUT(request);
|
||||
array[0] = "S";
|
||||
array[1] = response.getUserAccountReturn();
|
||||
logger_18cc50ce.info(String.valueOf("调用批量开户销户接口成功"));
|
||||
} catch (Exception e) {
|
||||
logger_18cc50ce.info(String.valueOf("调用批量开户销户接口失败:" + e.toString()));
|
||||
array[0] = "E";
|
||||
array[1] = e.toString();
|
||||
}
|
||||
return array;
|
||||
}
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class DidiApprovalOperate extends BaseBean {
|
||||
|
||||
private static final Logger logger_d3de7351 = LoggerFactory.getLogger(DidiApprovalOperate.class);
|
||||
|
||||
public String operteAppr(JSONObject object, String type) {
|
||||
HttpPost post = null;
|
||||
String result = "E";
|
||||
try {
|
||||
logger_d3de7351.info(String.valueOf("开始调用滴滴接口"));
|
||||
HttpClient client = new SSLClient();
|
||||
String url = Util.null2String(getPropValue("htportaloaUrl", type)).trim();
|
||||
post = new HttpPost(url);
|
||||
post.setHeader(HTTP.CONTENT_TYPE, "application/json; charset=UTF-8");
|
||||
post.setHeader("Accept", "application/json; charset=UTF-8");
|
||||
writeLog(object.toString());
|
||||
StringEntity entity = new StringEntity(object.toString(), "UTF-8");
|
||||
entity.setContentType("application/json");
|
||||
post.setEntity(entity);
|
||||
HttpResponse response = client.execute(post);
|
||||
int rspCode = response.getStatusLine().getStatusCode();
|
||||
logger_d3de7351.info(String.valueOf("DidiApprovalOperate-rspCode:" + rspCode));
|
||||
if (rspCode == 200) {
|
||||
result = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
}
|
||||
logger_d3de7351.info(String.valueOf(rspCode));
|
||||
logger_d3de7351.info(String.valueOf("调用滴滴接口结束"));
|
||||
} catch (Exception e) {
|
||||
logger_d3de7351.info(String.valueOf("调用门户滴滴接口出错" + e.toString()));
|
||||
} finally {
|
||||
if (post != null) {
|
||||
post.releaseConnection();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.DefaultHttpClient;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
public class GetSystemList extends BaseBean {
|
||||
|
||||
private static final Logger logger_a4ce8d9d = LoggerFactory.getLogger(GetSystemList.class);
|
||||
|
||||
public String getList(String uid) {
|
||||
HttpPost post = null;
|
||||
String result = "E";
|
||||
try {
|
||||
HttpClient client = new DefaultHttpClient();
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.getSystemListUrl")).trim();
|
||||
post = new HttpPost(url);
|
||||
post.setHeader(HTTP.CONTENT_TYPE, "application/json; charset=UTF-8");
|
||||
post.setHeader("Accept", "application/json; charset=UTF-8");
|
||||
post.setHeader("Authorization", Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.url_password")).trim());
|
||||
JSONObject returnJson = new JSONObject();
|
||||
returnJson.put("doAction", "listSystem");
|
||||
returnJson.put("uid", uid);
|
||||
StringEntity entity = new StringEntity(returnJson.toString(), "UTF-8");
|
||||
post.setEntity(entity);
|
||||
HttpResponse response = client.execute(post);
|
||||
int rspCode = response.getStatusLine().getStatusCode();
|
||||
if (rspCode == 200) {
|
||||
result = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger_a4ce8d9d.info(String.valueOf("调用门户查询已开户系统接口出错" + e.toString()));
|
||||
} finally {
|
||||
if (post != null) {
|
||||
post.releaseConnection();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import com.weaver.seconddev.interfaces.eipoa.SI_HTPortalPlan_OUTServiceStub.*;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
import org.apache.axis2.transport.http.HttpTransportProperties;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
public class PortalPlanService extends BaseBean {
|
||||
|
||||
private static final Logger logger_c9c5c87a = LoggerFactory.getLogger(PortalPlanService.class);
|
||||
|
||||
public String[] insertPlan(InsertPlan insertData) {
|
||||
String[] insertReturn = new String[2];
|
||||
try {
|
||||
InsertPlanResponse insertRes = getStub().cREATE(insertData);
|
||||
insertReturn[0] = "S";
|
||||
insertReturn[1] = insertRes.getInsertPlanReturn();
|
||||
} catch (Exception e) {
|
||||
logger_c9c5c87a.info(String.valueOf("往门户推送待办出错:" + e.toString()));
|
||||
insertReturn[0] = "E";
|
||||
insertReturn[1] = e.toString();
|
||||
}
|
||||
return insertReturn;
|
||||
}
|
||||
|
||||
public String[] updatePlan(UpdatePlan updateData) {
|
||||
String[] updateReturn = new String[2];
|
||||
try {
|
||||
UpdatePlanResponse updateRes = getStub().uPDATE(updateData);
|
||||
updateReturn[0] = "S";
|
||||
updateReturn[1] = updateRes.getUpdatePlanReturn();
|
||||
} catch (Exception e) {
|
||||
logger_c9c5c87a.info(String.valueOf("往门户更新待办状态出错:" + e.toString()));
|
||||
updateReturn[0] = "E";
|
||||
updateReturn[1] = e.toString();
|
||||
}
|
||||
return updateReturn;
|
||||
}
|
||||
|
||||
public String[] editPlan(EditPlan editData) {
|
||||
String[] editreturn = new String[2];
|
||||
try {
|
||||
EditPlanResponse editRes = getStub().eDIT(editData);
|
||||
editreturn[0] = "S";
|
||||
editreturn[1] = editRes.getEditPlanReturn();
|
||||
} catch (Exception e) {
|
||||
logger_c9c5c87a.info(String.valueOf("往门户更新待办内容出错:" + e.toString()));
|
||||
editreturn[0] = "E";
|
||||
editreturn[1] = e.toString();
|
||||
}
|
||||
return editreturn;
|
||||
}
|
||||
|
||||
public SI_HTPortalPlan_OUTServiceStub getStub() throws Exception {
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.plan_url")).trim();
|
||||
SI_HTPortalPlan_OUTServiceStub stub = new SI_HTPortalPlan_OUTServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
|
||||
auth.setUsername(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_user")).trim());
|
||||
auth.setPassword(Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.po_password")).trim());
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);
|
||||
return stub;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_HTPortalFuncSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
/**
|
||||
* SI_HTPortalFuncSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_HTPortalFuncSync_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_HTPortalFuncSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_HTPortalFuncSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_HTPortalFuncSync_OUT method
|
||||
* override this method for handling normal response from sI_HTPortalFuncSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_HTPortalFuncSync_OUT(
|
||||
SI_HTPortalFuncSync_OUTServiceStub.UserOaAccountResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_HTPortalFuncSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_HTPortalFuncSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,98 @@
|
||||
|
||||
/**
|
||||
* SI_HTPortalPlan_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
/**
|
||||
* SI_HTPortalPlan_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_HTPortalPlan_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_HTPortalPlan_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_HTPortalPlan_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for uPDATE method
|
||||
* override this method for handling normal response from uPDATE operation
|
||||
*/
|
||||
public void receiveResultuPDATE(
|
||||
SI_HTPortalPlan_OUTServiceStub.UpdatePlanResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from uPDATE operation
|
||||
*/
|
||||
public void receiveErroruPDATE(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for eDIT method
|
||||
* override this method for handling normal response from eDIT operation
|
||||
*/
|
||||
public void receiveResulteDIT(
|
||||
SI_HTPortalPlan_OUTServiceStub.EditPlanResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from eDIT operation
|
||||
*/
|
||||
public void receiveErroreDIT(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for cREATE method
|
||||
* override this method for handling normal response from cREATE operation
|
||||
*/
|
||||
public void receiveResultcREATE(
|
||||
SI_HTPortalPlan_OUTServiceStub.InsertPlanResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from cREATE operation
|
||||
*/
|
||||
public void receiveErrorcREATE(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_HTPortalUAMGMT2_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
/**
|
||||
* SI_HTPortalUAMGMT2_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_HTPortalUAMGMT2_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_HTPortalUAMGMT2_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_HTPortalUAMGMT2_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_HTPortalUAMGMT2_OUT method
|
||||
* override this method for handling normal response from sI_HTPortalUAMGMT2_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_HTPortalUAMGMT2_OUT(
|
||||
SI_HTPortalUAMGMT2_OUTServiceStub.UserAccountResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_HTPortalUAMGMT2_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_HTPortalUAMGMT2_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
||||
package com.weaver.seconddev.interfaces.eipoa;
|
||||
|
||||
import org.apache.http.conn.ClientConnectionManager;
|
||||
import org.apache.http.conn.scheme.Scheme;
|
||||
import org.apache.http.conn.scheme.SchemeRegistry;
|
||||
import org.apache.http.conn.ssl.SSLSocketFactory;
|
||||
import org.apache.http.impl.client.DefaultHttpClient;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.X509Certificate;
|
||||
|
||||
public class SSLClient extends DefaultHttpClient {
|
||||
|
||||
private static final Logger logger_f024fc31 = LoggerFactory.getLogger(SSLClient.class);
|
||||
|
||||
public SSLClient() throws Exception {
|
||||
super();
|
||||
SSLContext ctx = SSLContext.getInstance("TLS");
|
||||
X509TrustManager tm = new X509TrustManager() {
|
||||
|
||||
@Override
|
||||
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public X509Certificate[] getAcceptedIssuers() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
ctx.init(null, new TrustManager[] { tm }, null);
|
||||
SSLSocketFactory ssf = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
|
||||
ClientConnectionManager ccm = this.getConnectionManager();
|
||||
SchemeRegistry sr = ccm.getSchemeRegistry();
|
||||
sr.register(new Scheme("https", 443, ssf));
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package com.weaver.seconddev.interfaces.gdwmsoa;
|
||||
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class ZMES_OA_SUBMIT_SERVICE extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_b6665baf = LoggerFactory.getLogger(ZMES_OA_SUBMIT_SERVICE.class);
|
||||
|
||||
public String[] call(ZMES_OA_SUBMIT_SERVICEStub.ArrayOfZMES_OA_SUBMIT_ITEM_TYPE param, String requestid, String cfxt) {
|
||||
String[] str = new String[2];
|
||||
try {
|
||||
String url = "";
|
||||
if ("1".equals(cfxt)) {
|
||||
url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htwmsoasync.wllynmg_url")).trim();
|
||||
} else {
|
||||
url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htwmsoasync.wlly_url")).trim();
|
||||
}
|
||||
logger_b6665baf.info(String.valueOf(requestid + " url:" + url));
|
||||
ZMES_OA_SUBMIT_SERVICEStub stub = new ZMES_OA_SUBMIT_SERVICEStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMIT req = new ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMIT();
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMIT_HEADER_TYPE header = new ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMIT_HEADER_TYPE();
|
||||
header.setITFID("");
|
||||
header.setSENDID("");
|
||||
header.setSYSID("SYS013");
|
||||
header.setDATAS(param);
|
||||
req.setHeader(header);
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMITResponse res = stub.zMES_OA_SUBMIT(req);
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMIT_RETURN_TYPE returntype = res.getZMES_OA_SUBMITResult();
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ArrayOfZMES_OA_SUBMIT_RETURNITEM_TYPE ret = returntype.getRETURN();
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMIT_RETURNITEM_TYPE[] result = ret.getZMES_OA_SUBMIT_RETURNITEM_TYPE();
|
||||
if (result.length > 0) {
|
||||
str[0] = result[0].getIstat();
|
||||
str[1] = result[0].getMessage();
|
||||
logger_b6665baf.info(String.valueOf(requestid + "调用光导物料领用返回审批结果接口返回值:" + str[0] + "-" + str[1]));
|
||||
} else {
|
||||
str[0] = "E";
|
||||
str[1] = "调用光导物料领用返回审批结果接口出错,请联系管理员。";
|
||||
logger_b6665baf.info(String.valueOf(requestid + "调用光导物料领用返回审批结果接口出错,请联系管理员。"));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
str[0] = "E";
|
||||
str[1] = e.toString();
|
||||
logger_b6665baf.info(String.valueOf(e));
|
||||
logger_b6665baf.info(String.valueOf(requestid + "调用光导物料领用返回审批结果接口出错:" + e.toString()));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* ZMES_OA_SUBMIT_SERVICECallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.gdwmsoa;
|
||||
|
||||
/**
|
||||
* ZMES_OA_SUBMIT_SERVICECallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class ZMES_OA_SUBMIT_SERVICECallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public ZMES_OA_SUBMIT_SERVICECallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public ZMES_OA_SUBMIT_SERVICECallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for zMES_OA_SUBMIT method
|
||||
* override this method for handling normal response from zMES_OA_SUBMIT operation
|
||||
*/
|
||||
public void receiveResultzMES_OA_SUBMIT(
|
||||
ZMES_OA_SUBMIT_SERVICEStub.ZMES_OA_SUBMITResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from zMES_OA_SUBMIT operation
|
||||
*/
|
||||
public void receiveErrorzMES_OA_SUBMIT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@
|
||||
package com.weaver.seconddev.interfaces.htjt.util;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* ClassName TrustAllTrustManager
|
||||
* Author
|
||||
* Date 2023/8/15 13:13
|
||||
* Description TrustAllTrustManager
|
||||
* Version 1.0
|
||||
*/
|
||||
public class TrustAllTrustManager implements javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager {
|
||||
|
||||
private static final org.slf4j.Logger logger_dd78b88 = LoggerFactory.getLogger(TrustAllTrustManager.class);
|
||||
|
||||
@Override
|
||||
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) throws java.security.cert.CertificateException {
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) throws java.security.cert.CertificateException {
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,431 @@
|
||||
package com.weaver.seconddev.interfaces.htjt.util;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import okhttp3.*;
|
||||
import org.apache.axis.encoding.Base64;
|
||||
import javax.net.ssl.*;
|
||||
import java.io.*;
|
||||
import java.net.ConnectException;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
public class WebApi {
|
||||
|
||||
private static final org.slf4j.Logger logger_728f7230 = LoggerFactory.getLogger(WebApi.class);
|
||||
|
||||
public static String postConnection(String url, String param, String type) throws Exception {
|
||||
PrintWriter printWriter = null;
|
||||
BufferedReader bufferedReader = null;
|
||||
HttpURLConnection httpURLConnection = null;
|
||||
StringBuffer responseResult = new StringBuffer();
|
||||
try {
|
||||
URL realUrl = new URL(url);
|
||||
// 打开和URL之间的连接
|
||||
httpURLConnection = (HttpURLConnection) realUrl.openConnection();
|
||||
httpURLConnection.setConnectTimeout(30000);
|
||||
httpURLConnection.setReadTimeout(30000);
|
||||
// 设置通用的请求属性
|
||||
httpURLConnection.setRequestProperty("accept", "*/*");
|
||||
httpURLConnection.setRequestProperty("connection", "Keep-Alive");
|
||||
httpURLConnection.setRequestProperty("Content-Length", String.valueOf(param.length()));
|
||||
httpURLConnection.setRequestProperty("Charset", "UTF-8");
|
||||
httpURLConnection.setRequestProperty("Content-type", "application/json;charset=UTF-8");
|
||||
// httpURLConnection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
|
||||
// 发送POST请求必须设置如下两行
|
||||
httpURLConnection.setDoOutput(true);
|
||||
httpURLConnection.setDoInput(true);
|
||||
httpURLConnection.setRequestMethod(type);
|
||||
// 获取URLConnection对象对应的输出流
|
||||
// printWriter = new PrintWriter(httpURLConnection.getOutputStream());
|
||||
if ("POST".equals(type)) {
|
||||
DataOutputStream out = new DataOutputStream(httpURLConnection.getOutputStream());
|
||||
out.write(param.toString().getBytes("UTF-8"));
|
||||
// 发送请求参数
|
||||
// printWriter.write(new String(param.toString().getBytes(), "UTF-8"));
|
||||
// flush输出流的缓冲
|
||||
out.flush();
|
||||
out.close();
|
||||
}
|
||||
// 根据ResponseCode判断连接是否成功
|
||||
int responseCode = httpURLConnection.getResponseCode();
|
||||
// System.out.println("responseCode:"+responseCode);
|
||||
if (responseCode == httpURLConnection.HTTP_OK) {
|
||||
// 定义BufferedReader输入流来读取URL的ResponseData
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
return responseResult.toString();
|
||||
} else {
|
||||
if (httpURLConnection != null && httpURLConnection.getErrorStream() != null) {
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getErrorStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
logger_728f7230.info(String.valueOf("apierror:" + responseResult.toString()));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} catch (ConnectException e) {
|
||||
throw new Exception(e);
|
||||
} catch (MalformedURLException e) {
|
||||
throw new Exception(e);
|
||||
} catch (IOException e) {
|
||||
throw new Exception(e);
|
||||
} catch (Exception e) {
|
||||
throw new Exception(e);
|
||||
} finally {
|
||||
httpURLConnection.disconnect();
|
||||
try {
|
||||
if (printWriter != null) {
|
||||
printWriter.close();
|
||||
}
|
||||
if (bufferedReader != null) {
|
||||
bufferedReader.close();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static String postConnectionFormData(String url, String type, Map<String, String> datamap) throws Exception {
|
||||
OkHttpClient client = new OkHttpClient().newBuilder().build();
|
||||
MediaType mediaType = MediaType.parse("text/plain");
|
||||
MultipartBody.Builder builder = new MultipartBody.Builder().setType(MultipartBody.FORM);
|
||||
Iterator it = datamap.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
String key = (String) it.next();
|
||||
String value = datamap.get(key);
|
||||
builder.addFormDataPart(key, value);
|
||||
}
|
||||
RequestBody body = builder.build();
|
||||
Request request = new Request.Builder().url(url).method(type, body).build();
|
||||
try {
|
||||
Response response = client.newCall(request).execute();
|
||||
String result = response.body().string();
|
||||
return result;
|
||||
} catch (IOException e) {
|
||||
logger_728f7230.info(String.valueOf("apierror:" + e.getMessage()));
|
||||
logger_728f7230.info(String.valueOf(e));
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String postConnectionSSL(String url, String param, String type) throws Exception {
|
||||
PrintWriter printWriter = null;
|
||||
BufferedReader bufferedReader = null;
|
||||
HttpsURLConnection httpURLConnection = null;
|
||||
StringBuffer responseResult = new StringBuffer();
|
||||
try {
|
||||
HostnameVerifier hv = new HostnameVerifier() {
|
||||
|
||||
@Override
|
||||
public boolean verify(String urlHostName, SSLSession session) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
TrustManager[] trustAllCerts = { new TrustAllTrustManager() };
|
||||
SSLContext sc = SSLContext.getInstance("SSL");
|
||||
SSLSessionContext sslsc = sc.getServerSessionContext();
|
||||
sslsc.setSessionTimeout(0);
|
||||
sc.init(null, trustAllCerts, null);
|
||||
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
|
||||
URL realUrl = new URL(url);
|
||||
String soapActionString = "PostMidStoreOut";
|
||||
// 激活主机认证
|
||||
HttpsURLConnection.setDefaultHostnameVerifier(hv);
|
||||
// 打开和URL之间的连接
|
||||
httpURLConnection = (HttpsURLConnection) realUrl.openConnection();
|
||||
httpURLConnection.setConnectTimeout(30000);
|
||||
httpURLConnection.setReadTimeout(30000);
|
||||
// 设置通用的请求属性
|
||||
httpURLConnection.setRequestProperty("accept", "*/*");
|
||||
httpURLConnection.setRequestProperty("connection", "Keep-Alive");
|
||||
httpURLConnection.setRequestProperty("Content-Length", String.valueOf(param.length()));
|
||||
httpURLConnection.setRequestProperty("Charset", "UTF-8");
|
||||
httpURLConnection.setRequestProperty("Content-type", "application/json;charset=UTF-8");
|
||||
// httpURLConnection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
|
||||
// 发送POST请求必须设置如下两行
|
||||
httpURLConnection.setDoOutput(true);
|
||||
httpURLConnection.setDoInput(true);
|
||||
httpURLConnection.setRequestMethod(type);
|
||||
// 获取URLConnection对象对应的输出流
|
||||
// printWriter = new PrintWriter(httpURLConnection.getOutputStream());
|
||||
if ("POST".equals(type)) {
|
||||
DataOutputStream out = new DataOutputStream(httpURLConnection.getOutputStream());
|
||||
out.write(param.toString().getBytes("UTF-8"));
|
||||
// 发送请求参数
|
||||
// printWriter.write(new String(param.toString().getBytes(), "UTF-8"));
|
||||
// flush输出流的缓冲
|
||||
out.flush();
|
||||
out.close();
|
||||
}
|
||||
// 根据ResponseCode判断连接是否成功
|
||||
int responseCode = httpURLConnection.getResponseCode();
|
||||
// System.out.println("responseCode:"+responseCode);
|
||||
if (responseCode == httpURLConnection.HTTP_OK) {
|
||||
// 定义BufferedReader输入流来读取URL的ResponseData
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
return responseResult.toString();
|
||||
} else {
|
||||
if (httpURLConnection != null && httpURLConnection.getErrorStream() != null) {
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getErrorStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
logger_728f7230.info(String.valueOf("apierror:" + responseResult.toString()));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} catch (ConnectException e) {
|
||||
throw new Exception(e);
|
||||
} catch (MalformedURLException e) {
|
||||
throw new Exception(e);
|
||||
} catch (IOException e) {
|
||||
throw new Exception(e);
|
||||
} catch (Exception e) {
|
||||
throw new Exception(e);
|
||||
} finally {
|
||||
httpURLConnection.disconnect();
|
||||
try {
|
||||
if (printWriter != null) {
|
||||
printWriter.close();
|
||||
}
|
||||
if (bufferedReader != null) {
|
||||
bufferedReader.close();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static String postConnectionByBasicAuth(String url, String param, String type, String username, String password) throws Exception {
|
||||
PrintWriter printWriter = null;
|
||||
BufferedReader bufferedReader = null;
|
||||
HttpURLConnection httpURLConnection = null;
|
||||
StringBuffer responseResult = new StringBuffer();
|
||||
String token = Base64.encode((username + ":" + password).getBytes());
|
||||
try {
|
||||
URL realUrl = new URL(url);
|
||||
// 打开和URL之间的连接
|
||||
httpURLConnection = (HttpURLConnection) realUrl.openConnection();
|
||||
httpURLConnection.setConnectTimeout(30000);
|
||||
httpURLConnection.setReadTimeout(30000);
|
||||
// 设置通用的请求属性
|
||||
httpURLConnection.setRequestProperty("Authorization", "Basic " + token);
|
||||
httpURLConnection.setRequestProperty("accept", "*/*");
|
||||
httpURLConnection.setRequestProperty("connection", "Keep-Alive");
|
||||
httpURLConnection.setRequestProperty("Content-Length", String.valueOf(param.length()));
|
||||
httpURLConnection.setRequestProperty("Charset", "UTF-8");
|
||||
httpURLConnection.setRequestProperty("Content-type", "application/json;charset=UTF-8");
|
||||
// 发送POST请求必须设置如下两行
|
||||
httpURLConnection.setDoOutput(true);
|
||||
httpURLConnection.setDoInput(true);
|
||||
httpURLConnection.setRequestMethod(type);
|
||||
// 获取URLConnection对象对应的输出流
|
||||
// printWriter = new PrintWriter(httpURLConnection.getOutputStream());
|
||||
if ("POST".equals(type)) {
|
||||
DataOutputStream out = new DataOutputStream(httpURLConnection.getOutputStream());
|
||||
out.write(param.toString().getBytes("UTF-8"));
|
||||
// 发送请求参数
|
||||
// printWriter.write(new String(param.toString().getBytes(), "UTF-8"));
|
||||
// flush输出流的缓冲
|
||||
out.flush();
|
||||
out.close();
|
||||
}
|
||||
// 根据ResponseCode判断连接是否成功
|
||||
int responseCode = httpURLConnection.getResponseCode();
|
||||
// System.out.println("responseCode:"+responseCode);
|
||||
if (responseCode == httpURLConnection.HTTP_OK) {
|
||||
// 定义BufferedReader输入流来读取URL的ResponseData
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
return responseResult.toString();
|
||||
} else {
|
||||
if (httpURLConnection != null && httpURLConnection.getErrorStream() != null) {
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getErrorStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
logger_728f7230.info(String.valueOf("apierror:" + responseResult.toString()));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} catch (ConnectException e) {
|
||||
throw new Exception(e);
|
||||
} catch (MalformedURLException e) {
|
||||
throw new Exception(e);
|
||||
} catch (IOException e) {
|
||||
throw new Exception(e);
|
||||
} catch (Exception e) {
|
||||
throw new Exception(e);
|
||||
} finally {
|
||||
httpURLConnection.disconnect();
|
||||
try {
|
||||
if (printWriter != null) {
|
||||
printWriter.close();
|
||||
}
|
||||
if (bufferedReader != null) {
|
||||
bufferedReader.close();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static String postConnectionByAuthorization(String url, String param, String type, String Authorization) throws Exception {
|
||||
PrintWriter printWriter = null;
|
||||
BufferedReader bufferedReader = null;
|
||||
HttpURLConnection httpURLConnection = null;
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("status", "E");
|
||||
StringBuffer responseResult = new StringBuffer();
|
||||
try {
|
||||
URL realUrl = new URL(url);
|
||||
// 打开和URL之间的连接
|
||||
httpURLConnection = (HttpURLConnection) realUrl.openConnection();
|
||||
httpURLConnection.setConnectTimeout(30000);
|
||||
httpURLConnection.setReadTimeout(30000);
|
||||
// 设置通用的请求属性
|
||||
httpURLConnection.setRequestProperty("Authorization", Authorization);
|
||||
httpURLConnection.setRequestProperty("accept", "*/*");
|
||||
httpURLConnection.setRequestProperty("connection", "Keep-Alive");
|
||||
httpURLConnection.setRequestProperty("Content-Length", String.valueOf(param.length()));
|
||||
httpURLConnection.setRequestProperty("Charset", "UTF-8");
|
||||
httpURLConnection.setRequestProperty("Content-type", "application/json;charset=UTF-8");
|
||||
// 发送POST请求必须设置如下两行
|
||||
httpURLConnection.setDoOutput(true);
|
||||
httpURLConnection.setDoInput(true);
|
||||
httpURLConnection.setRequestMethod(type);
|
||||
// 获取URLConnection对象对应的输出流
|
||||
// printWriter = new PrintWriter(httpURLConnection.getOutputStream());
|
||||
if ("POST".equals(type)) {
|
||||
DataOutputStream out = new DataOutputStream(httpURLConnection.getOutputStream());
|
||||
out.write(param.toString().getBytes("UTF-8"));
|
||||
// 发送请求参数
|
||||
// printWriter.write(new String(param.toString().getBytes(), "UTF-8"));
|
||||
// flush输出流的缓冲
|
||||
out.flush();
|
||||
out.close();
|
||||
}
|
||||
// 根据ResponseCode判断连接是否成功
|
||||
int responseCode = httpURLConnection.getResponseCode();
|
||||
// System.out.println("responseCode:"+responseCode);
|
||||
if (responseCode == httpURLConnection.HTTP_OK) {
|
||||
// 定义BufferedReader输入流来读取URL的ResponseData
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
result.put("status", "S");
|
||||
result.put("result", responseResult.toString());
|
||||
return result.toJSONString();
|
||||
} else {
|
||||
if (httpURLConnection != null && httpURLConnection.getErrorStream() != null) {
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getErrorStream(), "UTF-8"));
|
||||
String line;
|
||||
while ((line = bufferedReader.readLine()) != null) {
|
||||
responseResult.append(line);
|
||||
}
|
||||
logger_728f7230.info(String.valueOf("apierror:" + responseResult.toString()));
|
||||
result.put("result", responseResult.toString());
|
||||
return result.toJSONString();
|
||||
}
|
||||
}
|
||||
result.put("result", "接口异常");
|
||||
return result.toJSONString();
|
||||
} catch (ConnectException e) {
|
||||
throw new Exception(e);
|
||||
} catch (MalformedURLException e) {
|
||||
throw new Exception(e);
|
||||
} catch (IOException e) {
|
||||
throw new Exception(e);
|
||||
} catch (Exception e) {
|
||||
throw new Exception(e);
|
||||
} finally {
|
||||
httpURLConnection.disconnect();
|
||||
try {
|
||||
if (printWriter != null) {
|
||||
printWriter.close();
|
||||
}
|
||||
if (bufferedReader != null) {
|
||||
bufferedReader.close();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
// Map<String,String> map = new HashMap<>();
|
||||
// map.put("grant_type","client_credentials");
|
||||
// map.put("client_id","mes@cxist_lims11");
|
||||
// map.put("client_secret","52179a00-bbdd-4ada-8323-cc1dad4212e3");
|
||||
// map.put("tenant_id","439795053355905024");
|
||||
// String result = WebApi.postConnectionFormData("http://222.71.165.171:8855/ids/connect/token","POST",map);
|
||||
// JSONObject tokenJson = JSON.parseObject(result);
|
||||
// if(tokenJson.containsKey("access_token")){
|
||||
// System.out.println(tokenJson.getString("access_token"));
|
||||
// }else{
|
||||
// System.out.println(result);
|
||||
// }
|
||||
// String result = WebApi.postConnectionByAuthorization("http://222.71.165.171:8855/lims/open/htoa/rollback","{\"requestId\":\"2601900\"}","POST","Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiI0Mzk3OTUwNTMzNTU5MDUwMjQiLCJzY29wZSI6WyJhbGwiXSwiZXhwIjoxNjk2Nzk0NzA4LCJqdGkiOiJkYzhhZGQwMS1hZWMyLTQ3M2UtYWVlZC01NjE1ZDgyYjcwNjIiLCJjbGllbnRfaWQiOiJtZXNAY3hpc3RfbGltcyJ9.Ta8DIdT_dkVruWYuupC6XP8l5cru6V9761T0EMx9KdMnI2p9p9bvPIOpdV33ulMYZEEZy4a9klPl4Htq9g5Mgr0sQofz_dA3Rxb0RzfUzcV2uzPsHzIPjqIBfml4qjiB6RcYjWVLg2mp8xvhUgvB02V6wMQXJwjJ_TZu7Wx1Bdznu-JtoMMbDIjlgn--zMLtmhIVZGIK-6KSwGmp5-xRfsv98g4a-taLKDTQACGEptiWbvbCjXt2ehJBLyKQw7B-LomYNZ7gFvihfOCdAMEgtZiaiF6vFmUhw0qK3W-Yxwckh6UPDfdhHuXaZXKNz3yHqCLZKsViDdng2IvQ_O3p6g");
|
||||
// System.out.println(result);
|
||||
// String aaa = "{\n" +
|
||||
// " \"disposalResult\": 1,\n" +
|
||||
// " \"oaResult\":\"aaa\",\n" +
|
||||
// " \"flowId\": \"1686217803279446018\",\n" +
|
||||
// " \"processStatus\": 1,\n" +
|
||||
// " \"writeBack\":\"{}\",\n" +
|
||||
// " \"remarks\": [\n" +
|
||||
// " {\n" +
|
||||
// " \"conclusion\": \"同意\",\n" +
|
||||
// " \"name\": \"刘经理审核\",\n" +
|
||||
// " \"reviewedBy\": \"刘经理\",\n" +
|
||||
// " \"reviewedDate\": \"2023-08-01 23:34:34\",\n" +
|
||||
// " \"reviewedStatus\": 0\n" +
|
||||
// " }\n" +
|
||||
// " ]\n" +
|
||||
// "}\n";
|
||||
// String sr = postConnectionSSL("https://10.6.24.122:82/oem/data/mss1/api/framework/v1/admin/oa/flow/examine",aaa,"POST");
|
||||
// System.out.println(sr);
|
||||
// String sr = postConnection("http://127.0.0.1:7000/api/peixun/ryxx/getlastname2?workcode=test123","","POST");
|
||||
// String usernasme = "API@opplelig01T1";
|
||||
// String password = "Ople*APi9";
|
||||
// String sr = postConnectionByBasicAuth("https://api15.sapsf.cn/odata/v2/TodoEntryV2/$count?$filter=status eq '2' and userId eq '00057664'&$format=json","","GET",usernasme,password);
|
||||
// JSONObject ticketparam = new JSONObject();
|
||||
// ticketparam.put("appKey","obk_htgd");
|
||||
// ticketparam.put("appSecurity","obk_htgd");
|
||||
// String ticketUrl="https://ct.ctrip.com/SwitchAPI/Order/Ticket";
|
||||
// String result = postConnection(ticketUrl,ticketparam.toString(),"POST");
|
||||
// System.out.println(result);
|
||||
// JSONObject ticket = new JSONObject(result);
|
||||
// if(ticket.has("Ticket") && ticket.getJSONObject("Status").getBoolean("Success")){
|
||||
// String tickettoken = ticket.getString("Ticket");
|
||||
// System.out.println("tickettoken:"+tickettoken);
|
||||
// }
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.weaver.seconddev.interfaces.iuroa;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.DefaultHttpClient;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
|
||||
public class SyncDataService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_4014b7c4 = LoggerFactory.getLogger(SyncDataService.class);
|
||||
|
||||
public String[] call(JSONObject data, String link) {
|
||||
HttpPost post = null;
|
||||
String[] str = new String[2];
|
||||
try {
|
||||
HttpClient client = new DefaultHttpClient();
|
||||
String url = Util.null2String(getPropValue("htiuroasync", link)).trim();
|
||||
post = new HttpPost(url);
|
||||
post.setHeader(HTTP.CONTENT_TYPE, "application/json; charset=UTF-8");
|
||||
StringEntity entity = new StringEntity(data.toString(), "UTF-8");
|
||||
post.setEntity(entity);
|
||||
HttpResponse response = client.execute(post);
|
||||
int rspCode = response.getStatusLine().getStatusCode();
|
||||
logger_4014b7c4.info(String.valueOf("调用产学研平台接口返回状态码:" + rspCode));
|
||||
if (rspCode == 200) {
|
||||
String result = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
JSONObject obj = JSONObject.parseObject(result);
|
||||
str[0] = "200".equals(obj.getString("code")) ? "S" : "E";
|
||||
str[1] = obj.getString("message");
|
||||
} else {
|
||||
str[0] = "E";
|
||||
str[1] = "同步失败状态码:" + rspCode;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
str[0] = "E";
|
||||
str[1] = e.toString();
|
||||
logger_4014b7c4.info(String.valueOf("调用产学研平台接口出错" + e.toString()));
|
||||
} finally {
|
||||
if (post != null) {
|
||||
post.releaseConnection();
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
|
||||
/**
|
||||
* CustomerServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.k3;
|
||||
|
||||
/**
|
||||
* CustomerServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class CustomerServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public CustomerServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public CustomerServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for geCustMsg method
|
||||
* override this method for handling normal response from geCustMsg operation
|
||||
*/
|
||||
public void receiveResultgeCustMsg(
|
||||
CustomerServiceStub.GeCustMsgResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from geCustMsg operation
|
||||
*/
|
||||
public void receiveErrorgeCustMsg(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for buildCustomer method
|
||||
* override this method for handling normal response from buildCustomer operation
|
||||
*/
|
||||
public void receiveResultbuildCustomer(
|
||||
CustomerServiceStub.BuildCustomerResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from buildCustomer operation
|
||||
*/
|
||||
public void receiveErrorbuildCustomer(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for getCustomer method
|
||||
* override this method for handling normal response from getCustomer operation
|
||||
*/
|
||||
public void receiveResultgetCustomer(
|
||||
CustomerServiceStub.GetCustomerResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from getCustomer operation
|
||||
*/
|
||||
public void receiveErrorgetCustomer(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,53 @@
|
||||
package com.weaver.seconddev.interfaces.k3;
|
||||
|
||||
import com.weaver.seconddev.interfaces.k3.GiftQtyServiceStub.*;
|
||||
import java.lang.String;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class GiftQtyService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_a44d19bf = LoggerFactory.getLogger(GiftQtyService.class);
|
||||
|
||||
public Map<String, String> call(ArrayOfGiftStockDt param) {
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htk3oasync.lplysl_url")).trim();
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
try {
|
||||
logger_a44d19bf.info(String.valueOf("GiftQtyService--start"));
|
||||
GiftQtyServiceStub stub = new GiftQtyServiceStub(url);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(300000);
|
||||
GiftStockReq req = new GiftStockReq();
|
||||
req.setUser("oa");
|
||||
req.setPwd("k3cloud_htgd");
|
||||
req.setFCompanyNumber("Z010");
|
||||
req.setGifts(param);
|
||||
GetGiftQty getQty = new GetGiftQty();
|
||||
getQty.setObj(req);
|
||||
GetGiftQtyResponse res = stub.getGiftQty(getQty);
|
||||
GiftStockRes result = res.getGetGiftQtyResult();
|
||||
if ("1".equals(result.getCode())) {
|
||||
ArrayOfGiftStockDt returnGifts = result.getReturnGifts();
|
||||
GiftStockDt[] giftStockDt = returnGifts.getGiftStockDt();
|
||||
for (int i = 0; i < giftStockDt.length; i++) {
|
||||
map.put(giftStockDt[i].getFNumber(), giftStockDt[i].getFQty());
|
||||
writeLog("GiftQtyService--result-[" + giftStockDt[i].getFNumber() + "-" + giftStockDt[i].getFQty() + "]");
|
||||
}
|
||||
}
|
||||
map.put("code", result.getCode());
|
||||
map.put("msg", result.getMessage());
|
||||
} catch (Exception e) {
|
||||
map.put("code", "0");
|
||||
map.put("msg", e.toString());
|
||||
logger_a44d19bf.info(String.valueOf("GiftQtyService--error:" + e.toString()));
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
|
||||
/**
|
||||
* GiftQtyServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.k3;
|
||||
|
||||
/**
|
||||
* GiftQtyServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class GiftQtyServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public GiftQtyServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public GiftQtyServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for doWork method
|
||||
* override this method for handling normal response from doWork operation
|
||||
*/
|
||||
public void receiveResultdoWork(
|
||||
com.weaver.seconddev.interfaces.k3.GiftQtyServiceStub.DoWorkResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from doWork operation
|
||||
*/
|
||||
public void receiveErrordoWork(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for getGiftQty method
|
||||
* override this method for handling normal response from getGiftQty operation
|
||||
*/
|
||||
public void receiveResultgetGiftQty(
|
||||
com.weaver.seconddev.interfaces.k3.GiftQtyServiceStub.GetGiftQtyResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from getGiftQty operation
|
||||
*/
|
||||
public void receiveErrorgetGiftQty(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* SI_HTOAPurreqAPPROSync_OUTServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.k3;
|
||||
|
||||
/**
|
||||
* SI_HTOAPurreqAPPROSync_OUTServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SI_HTOAPurreqAPPROSync_OUTServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SI_HTOAPurreqAPPROSync_OUTServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SI_HTOAPurreqAPPROSync_OUTServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sI_HTOAPurreqAPPROSync_OUT method
|
||||
* override this method for handling normal response from sI_HTOAPurreqAPPROSync_OUT operation
|
||||
*/
|
||||
public void receiveResultsI_HTOAPurreqAPPROSync_OUT(
|
||||
SI_HTOAPurreqAPPROSync_OUTServiceStub.Oa2K3PurchaseRequestResultResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sI_HTOAPurreqAPPROSync_OUT operation
|
||||
*/
|
||||
public void receiveErrorsI_HTOAPurreqAPPROSync_OUT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,98 @@
|
||||
|
||||
/**
|
||||
* SupplierServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.k3;
|
||||
|
||||
/**
|
||||
* SupplierServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class SupplierServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public SupplierServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public SupplierServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for getSupMsg method
|
||||
* override this method for handling normal response from getSupMsg operation
|
||||
*/
|
||||
public void receiveResultgetSupMsg(
|
||||
SupplierServiceStub.GetSupMsgResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from getSupMsg operation
|
||||
*/
|
||||
public void receiveErrorgetSupMsg(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for getSupplier method
|
||||
* override this method for handling normal response from getSupplier operation
|
||||
*/
|
||||
public void receiveResultgetSupplier(
|
||||
SupplierServiceStub.GetSupplierResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from getSupplier operation
|
||||
*/
|
||||
public void receiveErrorgetSupplier(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for buildSupplier method
|
||||
* override this method for handling normal response from buildSupplier operation
|
||||
*/
|
||||
public void receiveResultbuildSupplier(
|
||||
SupplierServiceStub.BuildSupplierResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from buildSupplier operation
|
||||
*/
|
||||
public void receiveErrorbuildSupplier(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,82 @@
|
||||
|
||||
/**
|
||||
* TransferBillServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.k3;
|
||||
|
||||
/**
|
||||
* TransferBillServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class TransferBillServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public TransferBillServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public TransferBillServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for doWork method
|
||||
* override this method for handling normal response from doWork operation
|
||||
*/
|
||||
public void receiveResultdoWork(
|
||||
TransferBillServiceStub.DoWorkResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from doWork operation
|
||||
*/
|
||||
public void receiveErrordoWork(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for buildTransferBill method
|
||||
* override this method for handling normal response from buildTransferBill operation
|
||||
*/
|
||||
public void receiveResultbuildTransferBill(
|
||||
TransferBillServiceStub.BuildTransferBillResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from buildTransferBill operation
|
||||
*/
|
||||
public void receiveErrorbuildTransferBill(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,41 @@
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
public class CallMesChuMenZhengService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_742486d = LoggerFactory.getLogger(CallMesChuMenZhengService.class);
|
||||
|
||||
private OA_CMZ_SERVICEStub.OA_CMZ_MSG resultIn = null;
|
||||
|
||||
public void setOainput(OA_CMZ_SERVICEStub.OA_CMZ_MSG oames) {
|
||||
this.resultIn = oames;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_742486d.info(String.valueOf("调用接口------------------------开始"));
|
||||
OA_CMZ_SERVICEStub stub = null;
|
||||
String wsdlLocation = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("MesInterfaceAddr.WsdlLocation")).trim();
|
||||
stub = new OA_CMZ_SERVICEStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
logger_742486d.info(String.valueOf("已获取wsdl"));
|
||||
OA_CMZ_SERVICEStub.OA_CMZ_MSGResponse response = stub.oA_CMZ_MSG(resultIn);
|
||||
OA_CMZ_SERVICEStub.ArrayOfOA_CMZ_RETURN_TYPE response_result = response.getOA_CMZ_MSGResult();
|
||||
OA_CMZ_SERVICEStub.OA_CMZ_RETURN_TYPE[] results = response_result.getOA_CMZ_RETURN_TYPE();
|
||||
logger_742486d.info(String.valueOf("调用接口------------------------完成"));
|
||||
OA_CMZ_SERVICEStub.OA_CMZ_RETURN_TYPE result = results[0];
|
||||
// 封装返回信息
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = result.getISTAT();
|
||||
rtInfo[1] = result.getMESSAGE();
|
||||
rtInfo[2] = result.getVBELN();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
public class CallMesKeSuService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_8c7d5757 = LoggerFactory.getLogger(CallMesKeSuService.class);
|
||||
|
||||
private OA_KSJXCL_SERVICEStub.OA_KSJTHHLC resultin = null;
|
||||
|
||||
public void setOainput(OA_KSJXCL_SERVICEStub.OA_KSJTHHLC oames) {
|
||||
this.resultin = oames;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_8c7d5757.info(String.valueOf("调用接口------------------------开始"));
|
||||
OA_KSJXCL_SERVICEStub stub = null;
|
||||
String wsdlLocation = "http://10.7.6.67:7280/OA_KSJXCL_SERVICE.svc?wsdl";
|
||||
stub = new OA_KSJXCL_SERVICEStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJTHHLCResponse response = stub.oA_KSJTHHLC(resultin);
|
||||
OA_KSJXCL_SERVICEStub.ArrayOfOA_KSJXCL_RETURN_TYPE response_result = response.getOA_KSJTHHLCResult();
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE[] results = response_result.getOA_KSJXCL_RETURN_TYPE();
|
||||
logger_8c7d5757.info(String.valueOf("调用接口------------------------完成"));
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE result = results[0];
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = result.getVBELN();
|
||||
rtInfo[1] = result.getISTAT();
|
||||
rtInfo[2] = result.getMESSAGE();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
/*HTGD-JS06-新材料小批量认证总结报告
|
||||
|
||||
*/
|
||||
public class CallMesNewMaterialCertificationService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_65e8d8c0 = LoggerFactory.getLogger(CallMesNewMaterialCertificationService.class);
|
||||
|
||||
private OA_KSJXCL_SERVICEStub.OA_XCLRZZJBGLC resultin = null;
|
||||
|
||||
public void setOainput(OA_KSJXCL_SERVICEStub.OA_XCLRZZJBGLC oames) {
|
||||
this.resultin = oames;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_65e8d8c0.info(String.valueOf("调用接口------------------------开始"));
|
||||
OA_KSJXCL_SERVICEStub stub = null;
|
||||
String wsdlLocation = "http://10.7.6.67:7280/OA_KSJXCL_SERVICE.svc?wsdl";
|
||||
stub = new OA_KSJXCL_SERVICEStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLRZZJBGLCResponse response = stub.oA_XCLRZZJBGLC(resultin);
|
||||
OA_KSJXCL_SERVICEStub.ArrayOfOA_KSJXCL_RETURN_TYPE response_result = response.getOA_XCLRZZJBGLCResult();
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE[] results = response_result.getOA_KSJXCL_RETURN_TYPE();
|
||||
logger_65e8d8c0.info(String.valueOf("调用接口------------------------完成"));
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE result = results[0];
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = result.getVBELN();
|
||||
rtInfo[1] = result.getISTAT();
|
||||
rtInfo[2] = result.getMESSAGE();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
/**
|
||||
* HTGD-JS04新材料立项流程
|
||||
*/
|
||||
public class CallMesNewMaterialProjectService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_5b2c0941 = LoggerFactory.getLogger(CallMesNewMaterialProjectService.class);
|
||||
|
||||
private OA_KSJXCL_SERVICEStub.OA_XCLLXSQ resultin = null;
|
||||
|
||||
public void setOainput(OA_KSJXCL_SERVICEStub.OA_XCLLXSQ oames) {
|
||||
this.resultin = oames;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_5b2c0941.info(String.valueOf("调用接口------------------------开始"));
|
||||
OA_KSJXCL_SERVICEStub stub = null;
|
||||
String wsdlLocation = "http://10.7.6.67:7280/OA_KSJXCL_SERVICE.svc?wsdl";
|
||||
stub = new OA_KSJXCL_SERVICEStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLLXSQResponse response = stub.oA_XCLLXSQ(resultin);
|
||||
OA_KSJXCL_SERVICEStub.ArrayOfOA_KSJXCL_RETURN_TYPE response_result = response.getOA_XCLLXSQResult();
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE[] results = response_result.getOA_KSJXCL_RETURN_TYPE();
|
||||
logger_5b2c0941.info(String.valueOf("调用接口------------------------完成"));
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE result = results[0];
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = result.getVBELN();
|
||||
rtInfo[1] = result.getISTAT();
|
||||
rtInfo[2] = result.getMESSAGE();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
/**
|
||||
* HTGD-JS05-新材料调试报告
|
||||
*/
|
||||
public class CallMesNewMaterialTSBGSerivce extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_9c008166 = LoggerFactory.getLogger(CallMesNewMaterialTSBGSerivce.class);
|
||||
|
||||
private OA_KSJXCL_SERVICEStub.OA_XCLSTBG resultin = null;
|
||||
|
||||
public void setOainput(OA_KSJXCL_SERVICEStub.OA_XCLSTBG oames) {
|
||||
this.resultin = oames;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_9c008166.info(String.valueOf("调用接口------------------------开始"));
|
||||
OA_KSJXCL_SERVICEStub stub = null;
|
||||
String wsdlLocation = "http://10.7.6.67:7280/OA_KSJXCL_SERVICE.svc?wsdl";
|
||||
stub = new OA_KSJXCL_SERVICEStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLSTBGResponse response = stub.oA_XCLSTBG(resultin);
|
||||
OA_KSJXCL_SERVICEStub.ArrayOfOA_KSJXCL_RETURN_TYPE response_result = response.getOA_XCLSTBGResult();
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE[] results = response_result.getOA_KSJXCL_RETURN_TYPE();
|
||||
logger_9c008166.info(String.valueOf("调用接口------------------------完成"));
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE result = results[0];
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = result.getVBELN();
|
||||
rtInfo[1] = result.getISTAT();
|
||||
rtInfo[2] = result.getMESSAGE();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
/**
|
||||
* HTGD-GY101-(新)新材料试用
|
||||
*/
|
||||
public class CallMesNewMaterialTestService extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_6cde4ffe = LoggerFactory.getLogger(CallMesNewMaterialTestService.class);
|
||||
|
||||
private OA_KSJXCL_SERVICEStub.OA_XCLSYSQLC resultin = null;
|
||||
|
||||
public void setOainput(OA_KSJXCL_SERVICEStub.OA_XCLSYSQLC oames) {
|
||||
this.resultin = oames;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_6cde4ffe.info(String.valueOf("调用接口------------------------开始"));
|
||||
OA_KSJXCL_SERVICEStub stub = null;
|
||||
String wsdlLocation = "http://10.7.6.67:7280/OA_KSJXCL_SERVICE.svc?wsdl";
|
||||
stub = new OA_KSJXCL_SERVICEStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLSYSQLCResponse response = stub.oA_XCLSYSQLC(resultin);
|
||||
OA_KSJXCL_SERVICEStub.ArrayOfOA_KSJXCL_RETURN_TYPE response_result = response.getOA_XCLSYSQLCResult();
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE[] results = response_result.getOA_KSJXCL_RETURN_TYPE();
|
||||
logger_6cde4ffe.info(String.valueOf("调用接口------------------------完成"));
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE result = results[0];
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = result.getVBELN();
|
||||
rtInfo[1] = result.getISTAT();
|
||||
rtInfo[2] = result.getMESSAGE();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* OA_CMZ_SERVICECallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
/**
|
||||
* OA_CMZ_SERVICECallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class OA_CMZ_SERVICECallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public OA_CMZ_SERVICECallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public OA_CMZ_SERVICECallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for oA_CMZ_MSG method
|
||||
* override this method for handling normal response from oA_CMZ_MSG operation
|
||||
*/
|
||||
public void receiveResultoA_CMZ_MSG(
|
||||
OA_CMZ_SERVICEStub.OA_CMZ_MSGResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from oA_CMZ_MSG operation
|
||||
*/
|
||||
public void receiveErroroA_CMZ_MSG(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,130 @@
|
||||
|
||||
/**
|
||||
* OA_KSJXCL_SERVICECallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.1 Built on : Oct 19, 2009 (10:59:00 EDT)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.oames;
|
||||
|
||||
/**
|
||||
* OA_KSJXCL_SERVICECallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class OA_KSJXCL_SERVICECallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public OA_KSJXCL_SERVICECallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public OA_KSJXCL_SERVICECallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for oA_KSJTHHLC method
|
||||
* override this method for handling normal response from oA_KSJTHHLC operation
|
||||
*/
|
||||
public void receiveResultoA_KSJTHHLC(
|
||||
OA_KSJXCL_SERVICEStub.OA_KSJTHHLCResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from oA_KSJTHHLC operation
|
||||
*/
|
||||
public void receiveErroroA_KSJTHHLC(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for oA_XCLSTBG method
|
||||
* override this method for handling normal response from oA_XCLSTBG operation
|
||||
*/
|
||||
public void receiveResultoA_XCLSTBG(
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLSTBGResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from oA_XCLSTBG operation
|
||||
*/
|
||||
public void receiveErroroA_XCLSTBG(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for oA_XCLRZZJBGLC method
|
||||
* override this method for handling normal response from oA_XCLRZZJBGLC operation
|
||||
*/
|
||||
public void receiveResultoA_XCLRZZJBGLC(
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLRZZJBGLCResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from oA_XCLRZZJBGLC operation
|
||||
*/
|
||||
public void receiveErroroA_XCLRZZJBGLC(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for oA_XCLSYSQLC method
|
||||
* override this method for handling normal response from oA_XCLSYSQLC operation
|
||||
*/
|
||||
public void receiveResultoA_XCLSYSQLC(
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLSYSQLCResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from oA_XCLSYSQLC operation
|
||||
*/
|
||||
public void receiveErroroA_XCLSYSQLC(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for oA_XCLLXSQ method
|
||||
* override this method for handling normal response from oA_XCLLXSQ operation
|
||||
*/
|
||||
public void receiveResultoA_XCLLXSQ(
|
||||
OA_KSJXCL_SERVICEStub.OA_XCLLXSQResponse result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from oA_XCLLXSQ operation
|
||||
*/
|
||||
public void receiveErroroA_XCLLXSQ(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,54 @@
|
||||
package com.weaver.seconddev.interfaces.prop;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Data
|
||||
@Configuration
|
||||
@RefreshScope
|
||||
public class ConfigProp {
|
||||
|
||||
@Value("${srmbacklisturl}")
|
||||
private String srmbacklisturl;
|
||||
|
||||
@Value("${accountUrl}")
|
||||
private String accountUrl;
|
||||
|
||||
|
||||
/**
|
||||
* crmoa
|
||||
*/
|
||||
//CRM_SyncTempUnfreeze
|
||||
@Value("${TempUnfreeze}")
|
||||
private String TempUnfreeze;
|
||||
|
||||
// @Value("${TempUnfreeze}")
|
||||
// private String TempUnfreeze;
|
||||
|
||||
|
||||
|
||||
|
||||
//OaSrmVendorPropmtionServiceServiceStub
|
||||
@Value("${gyszznew}")
|
||||
private String gyszznew;
|
||||
|
||||
//VdDlvApplyHandlerServiceServiceStub
|
||||
@Value("${gysxznew}")
|
||||
private String gysxznew;
|
||||
|
||||
|
||||
//VenMatExtHandlerServiceServiceStub
|
||||
@Value("${SrmVenMatExtnew}")
|
||||
private String SrmVenMatExtnew;
|
||||
|
||||
|
||||
//VenMatExtsHandlerServiceServiceStub
|
||||
@Value("${htsrm_oa_venmatsextnew}")
|
||||
private String htsrm_oa_venmatsextnew;
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.weaver.seconddev.interfaces.scfoa;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.DefaultHttpClient;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
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;
|
||||
|
||||
/**
|
||||
* oa审批结果返回 oa->scf
|
||||
*/
|
||||
public class GetApproveResult extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_8692c990 = LoggerFactory.getLogger(GetApproveResult.class);
|
||||
|
||||
public String getApproveResult(JSONObject returnJson) {
|
||||
HttpPost post = null;
|
||||
String result = "E";
|
||||
try {
|
||||
HttpClient client = new DefaultHttpClient();
|
||||
String url = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htscfoasync.approvalResult")).trim();
|
||||
post = new HttpPost(url);
|
||||
post.setHeader(HTTP.CONTENT_TYPE, "application/json; charset=UTF-8");
|
||||
post.setHeader("Accept", "application/json; charset=UTF-8");
|
||||
post.setHeader("Authorization", Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htportaloaUrl.url_password")).trim());
|
||||
StringEntity entity = new StringEntity(returnJson.toString(), "UTF-8");
|
||||
post.setEntity(entity);
|
||||
HttpResponse response = client.execute(post);
|
||||
int rspCode = response.getStatusLine().getStatusCode();
|
||||
logger_8692c990.info(String.valueOf("getApproveResult:" + rspCode));
|
||||
if (rspCode == 200) {
|
||||
result = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger_8692c990.info(String.valueOf("调用供应链金融系统返回审批结果接口出错" + e.toString()));
|
||||
} finally {
|
||||
if (post != null) {
|
||||
post.releaseConnection();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
import org.apache.axis2.AxisFault;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.rmi.RemoteException;
|
||||
import java.security.MessageDigest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import org.springframework.core.env.Environment;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
public class CallSrmCheckMallServices extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_a0ca618e = LoggerFactory.getLogger(CallSrmCheckMallServices.class);
|
||||
|
||||
private MallPurReqChkServiceServiceStub.MallPurReqIN resultin = null;
|
||||
|
||||
public void setOainput(MallPurReqChkServiceServiceStub.MallPurReqIN oasrm) {
|
||||
this.resultin = oasrm;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_a0ca618e.info(String.valueOf("调用接口------------------------开始"));
|
||||
MallPurReqChkServiceServiceStub stub = null;
|
||||
String wsdlLocation = "";
|
||||
// wsdlLocation = "http://10.6.6.151:8088/srm/services/OaSrmCheckPriceService?wsdl";
|
||||
wsdlLocation = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htsrmoasync.htshop")).trim();
|
||||
stub = new MallPurReqChkServiceServiceStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
// 设置传入参数
|
||||
MallPurReqChkServiceServiceStub.MALL_OA_PUR_REQ_CHK_RESULTE createRequest = new MallPurReqChkServiceServiceStub.MALL_OA_PUR_REQ_CHK_RESULTE();
|
||||
MallPurReqChkServiceServiceStub.MALL_OA_PUR_REQ_CHK_RESULT oasrmresult = new MallPurReqChkServiceServiceStub.MALL_OA_PUR_REQ_CHK_RESULT();
|
||||
oasrmresult.setInputTab(resultin);
|
||||
createRequest.setMALL_OA_PUR_REQ_CHK_RESULT(oasrmresult);
|
||||
MallPurReqChkServiceServiceStub.MALL_OA_PUR_REQ_CHK_RESULTResponseE resp = null;
|
||||
resp = stub.mALL_OA_PUR_REQ_CHK_RESULT(createRequest);
|
||||
logger_a0ca618e.info(String.valueOf("调用接口------------------------完成"));
|
||||
MallPurReqChkServiceServiceStub.MallPurReqOUT resultout = resp.getMALL_OA_PUR_REQ_CHK_RESULTResponse().getOutputTab();
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = resultout.getPrNo();
|
||||
rtInfo[1] = resultout.getIstat();
|
||||
rtInfo[2] = resultout.getSrmsage();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
import org.apache.axis2.AxisFault;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.rmi.RemoteException;
|
||||
import java.security.MessageDigest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
||||
import org.springframework.core.env.Environment;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.Util;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
public class CallSrmCheckPriceServices extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_dac3f14b = LoggerFactory.getLogger(CallSrmCheckPriceServices.class);
|
||||
|
||||
private RfqCheckPriceHandlerServiceServiceStub.CheckPriceResultIn resultin = null;
|
||||
|
||||
public void setOainput(RfqCheckPriceHandlerServiceServiceStub.CheckPriceResultIn oasrm) {
|
||||
this.resultin = oasrm;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_dac3f14b.info(String.valueOf("调用接口------------------------开始"));
|
||||
RfqCheckPriceHandlerServiceServiceStub stub = null;
|
||||
String wsdlLocation = "";
|
||||
// wsdlLocation = "http://10.6.6.151:8088/srm/services/OaSrmCheckPriceService?wsdl";
|
||||
wsdlLocation = Util.null2String(I18nContextUtil.getBean(Environment.class).getProperty("htsrmoasync.bjdsp")).trim();
|
||||
stub = new RfqCheckPriceHandlerServiceServiceStub(wsdlLocation);
|
||||
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
|
||||
// 设置传入参数
|
||||
RfqCheckPriceHandlerServiceServiceStub.SRM_OA_CHECK_PRICE_RESULTE createRequest = new RfqCheckPriceHandlerServiceServiceStub.SRM_OA_CHECK_PRICE_RESULTE();
|
||||
RfqCheckPriceHandlerServiceServiceStub.SRM_OA_CHECK_PRICE_RESULT oasrmresult = new RfqCheckPriceHandlerServiceServiceStub.SRM_OA_CHECK_PRICE_RESULT();
|
||||
oasrmresult.setInputTab(resultin);
|
||||
createRequest.setSRM_OA_CHECK_PRICE_RESULT(oasrmresult);
|
||||
RfqCheckPriceHandlerServiceServiceStub.SRM_OA_CHECK_PRICE_RESULTResponseE resp = null;
|
||||
resp = stub.sRM_OA_CHECK_PRICE_RESULT(createRequest);
|
||||
logger_dac3f14b.info(String.valueOf("调用接口------------------------完成"));
|
||||
RfqCheckPriceHandlerServiceServiceStub.CheckPriceResulOut resultout = resp.getSRM_OA_CHECK_PRICE_RESULTResponse().getOutputTab();
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = resultout.getEnquiryNo();
|
||||
rtInfo[1] = resultout.getIstat();
|
||||
rtInfo[2] = resultout.getSrmsage();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
public class CallSrmServices extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_a535240a = LoggerFactory.getLogger(CallSrmServices.class);
|
||||
|
||||
private OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oainputvendor = null;
|
||||
|
||||
public void setOainputvendor(OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oasrm) {
|
||||
this.oainputvendor = oasrm;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_a535240a.info(String.valueOf("调用接口------------------------开始"));
|
||||
OaSrmVendorPropmtionServiceServiceStub stub = new OaSrmVendorPropmtionServiceServiceStub();
|
||||
// 设置传入参数
|
||||
OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE createRequest = new OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE();
|
||||
OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTION oasrmvendor = new OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTION();
|
||||
oasrmvendor.setInputTab(oainputvendor);
|
||||
createRequest.setOA_SRM_VENDOR_PROPMTION(oasrmvendor);
|
||||
OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONResponseE resp = null;
|
||||
resp = stub.OA_SRM_VENDOR_PROPMTION(createRequest);
|
||||
logger_a535240a.info(String.valueOf("调用接口------------------------完成"));
|
||||
OaSrmVendorPropmtionServiceServiceStub.OaOutputVendor oaoutvendor = resp.getOA_SRM_VENDOR_PROPMTIONResponse().getOutputTab();
|
||||
// 封装返回
|
||||
writeLog(oainputvendor.getRequestId() + " result:" + oaoutvendor.getIstat() + " " + oaoutvendor.getSrmsage());
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = oaoutvendor.getRequestId();
|
||||
rtInfo[1] = oaoutvendor.getIstat();
|
||||
rtInfo[2] = oaoutvendor.getSrmsage();
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
/**
|
||||
* 供应商新货源扩充接口
|
||||
*/
|
||||
public class CallSrmVenMatExtsSevices extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_8da144ad = LoggerFactory.getLogger(CallSrmVenMatExtsSevices.class);
|
||||
|
||||
public String[] call(VenMatExtsHandlerServiceServiceStub.VenMatExtsRusultIn param, String requestid) throws Exception {
|
||||
logger_8da144ad.info(String.valueOf(requestid + " 调用接口------------------------开始"));
|
||||
VenMatExtsHandlerServiceServiceStub stub = new VenMatExtsHandlerServiceServiceStub();
|
||||
VenMatExtsHandlerServiceServiceStub.SRM_OA_VENMATEXTS_RESULTE res = new VenMatExtsHandlerServiceServiceStub.SRM_OA_VENMATEXTS_RESULTE();
|
||||
VenMatExtsHandlerServiceServiceStub.SRM_OA_VENMATEXTS_RESULT sovr = new VenMatExtsHandlerServiceServiceStub.SRM_OA_VENMATEXTS_RESULT();
|
||||
sovr.setInputTab(param);
|
||||
res.setSRM_OA_VENMATEXTS_RESULT(sovr);
|
||||
VenMatExtsHandlerServiceServiceStub.SRM_OA_VENMATEXTS_RESULTResponseE resp = stub.SRM_OA_VENMATEXTS_RESULT(res);
|
||||
logger_8da144ad.info(String.valueOf(requestid + " 调用接口------------------------完成"));
|
||||
VenMatExtsHandlerServiceServiceStub.VenMatExtsResultOut resultout = resp.getSRM_OA_VENMATEXTS_RESULTResponse().getOutputTab();
|
||||
// 封装返回
|
||||
String[] rtInfo = new String[3];
|
||||
rtInfo[0] = resultout.getRequestId();
|
||||
rtInfo[1] = resultout.getIstat();
|
||||
rtInfo[2] = resultout.getMsg();
|
||||
logger_8da144ad.info(String.valueOf(requestid + " RequestId:" + rtInfo[0] + " Istat:" + rtInfo[1] + " Msg:" + rtInfo[2]));
|
||||
return rtInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
// Source File Name: CallSrmServices.java
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.lang.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.weaver.verupgrade.general.BaseBean;
|
||||
|
||||
// Referenced classes of package com.weaver.seconddev.interfaces.srmoa:
|
||||
// OaSrmVendorPropmtionServiceServiceStub
|
||||
public class CallVdDlvApplyServices extends BaseBean {
|
||||
|
||||
private static final org.slf4j.Logger logger_5d55910e = LoggerFactory.getLogger(CallVdDlvApplyServices.class);
|
||||
|
||||
private VdDlvApplyHandlerServiceServiceStub.DlvApplyIn dlvapplyin;
|
||||
|
||||
public CallVdDlvApplyServices() {
|
||||
dlvapplyin = null;
|
||||
}
|
||||
|
||||
public void setOainputvendor(VdDlvApplyHandlerServiceServiceStub.DlvApplyIn oainputvendor1) {
|
||||
dlvapplyin = oainputvendor1;
|
||||
}
|
||||
|
||||
public String[] call() throws RemoteException {
|
||||
logger_5d55910e.info(String.valueOf("调用CallVdDlvApplyServices webservice start ......"));
|
||||
VdDlvApplyHandlerServiceServiceStub stub = new VdDlvApplyHandlerServiceServiceStub();
|
||||
VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLY oa_srm_vd_dlv_apply = new VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLY();
|
||||
VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYE oa_srm_vd_dlv_applye = new VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYE();
|
||||
oa_srm_vd_dlv_apply.setInputTab(dlvapplyin);
|
||||
oa_srm_vd_dlv_applye.setOA_SRM_VD_DLV_APPLY(oa_srm_vd_dlv_apply);
|
||||
VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYResponseE oa_srm_vd_dlv_applyresponsee = stub.OA_SRM_VD_DLV_APPLY(oa_srm_vd_dlv_applye);
|
||||
VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYResponse response = oa_srm_vd_dlv_applyresponsee.getOA_SRM_VD_DLV_APPLYResponse();
|
||||
VdDlvApplyHandlerServiceServiceStub.DlvApplyOut oaoutputvendor = response.getOutputTab();
|
||||
logger_5d55910e.info(String.valueOf("调用CallVdDlvApplyServices webservice success ......"));
|
||||
writeLog(dlvapplyin.getRequestId() + " result:" + oaoutputvendor.getIstat() + " " + oaoutputvendor.getMsg());
|
||||
String[] as = new String[2];
|
||||
as[0] = oaoutputvendor.getIstat();
|
||||
as[1] = oaoutputvendor.getMsg();
|
||||
return as;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* MallPurReqChkServiceServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.1 Built on : Oct 19, 2009 (10:59:00 EDT)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
/**
|
||||
* MallPurReqChkServiceServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class MallPurReqChkServiceServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public MallPurReqChkServiceServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public MallPurReqChkServiceServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for mALL_OA_PUR_REQ_CHK_RESULT method
|
||||
* override this method for handling normal response from mALL_OA_PUR_REQ_CHK_RESULT operation
|
||||
*/
|
||||
public void receiveResultmALL_OA_PUR_REQ_CHK_RESULT(
|
||||
MallPurReqChkServiceServiceStub.MALL_OA_PUR_REQ_CHK_RESULTResponseE result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from mALL_OA_PUR_REQ_CHK_RESULT operation
|
||||
*/
|
||||
public void receiveErrormALL_OA_PUR_REQ_CHK_RESULT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
|
||||
/**
|
||||
* RfqCheckPriceHandlerServiceServiceCallbackHandler.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.1 Built on : Oct 19, 2009 (10:59:00 EDT)
|
||||
*/
|
||||
|
||||
package com.weaver.seconddev.interfaces.srmoa;
|
||||
|
||||
/**
|
||||
* RfqCheckPriceHandlerServiceServiceCallbackHandler Callback class, Users can extend this class and implement
|
||||
* their own receiveResult and receiveError methods.
|
||||
*/
|
||||
public abstract class RfqCheckPriceHandlerServiceServiceCallbackHandler{
|
||||
|
||||
|
||||
|
||||
protected Object clientData;
|
||||
|
||||
/**
|
||||
* User can pass in any object that needs to be accessed once the NonBlocking
|
||||
* Web service call is finished and appropriate method of this CallBack is called.
|
||||
* @param clientData Object mechanism by which the user can pass in user data
|
||||
* that will be avilable at the time this callback is called.
|
||||
*/
|
||||
public RfqCheckPriceHandlerServiceServiceCallbackHandler(Object clientData){
|
||||
this.clientData = clientData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use this constructor if you don't want to set any clientData
|
||||
*/
|
||||
public RfqCheckPriceHandlerServiceServiceCallbackHandler(){
|
||||
this.clientData = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client data
|
||||
*/
|
||||
|
||||
public Object getClientData() {
|
||||
return clientData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* auto generated Axis2 call back method for sRM_OA_CHECK_PRICE_RESULT method
|
||||
* override this method for handling normal response from sRM_OA_CHECK_PRICE_RESULT operation
|
||||
*/
|
||||
public void receiveResultsRM_OA_CHECK_PRICE_RESULT(
|
||||
RfqCheckPriceHandlerServiceServiceStub.SRM_OA_CHECK_PRICE_RESULTResponseE result
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* auto generated Axis2 Error handler
|
||||
* override this method for handling error response from sRM_OA_CHECK_PRICE_RESULT operation
|
||||
*/
|
||||
public void receiveErrorsRM_OA_CHECK_PRICE_RESULT(Exception e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue