Commit 7818f9b2 by Anuar

init commit

parents
/.gradle
/build
/gradle
/.idea
\ No newline at end of file
plugins {
id 'java'
id 'war'
}
group 'ServiceIntegration'
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
maven {
url 'http://artifactory.lan.arta.kz/artifactory/synergy-libs/'
}
}
def jacksonVersion = '1.9.2'
dependencies {
compile(group: 'kz.arta', name: 'data-source', version: '3.13')
compile(group: 'kz.arta', name: 'asf-common', version: '3.13')
compile(group: 'kz.arta', name: 'util-common', version: '3.13')
compile(group: 'kz.arta.synergy', name: 'synergy-api-util', version: '1.6')
testCompile group: 'junit', name: 'junit', version: '4.12'
compile(group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.6')
providedCompile "javax:javaee-api:6.0"
compile 'org.apache.httpcomponents:httpclient:4.5'
compile "commons-io:commons-io:2.1"
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
compile "org.codehaus.jackson:jackson-core-asl:$jacksonVersion"
compile group: 'joda-time', name: 'joda-time', version: '2.9.4'
compile group: 'com.google.guava', name: 'guava-gwt', version: '18.0'
// compile group: 'org.apache.cxf', name: 'cxf-rt-frontend-jaxws', version: '3.3.4'
// compile group: 'org.apache.cxf', name: 'cxf-rt-transports-http', version: '3.3.4'
}
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
rootProject.name = 'IntegrationService'
package integration;
import wsdl.consolid.*;
public class ConsolidIntegration {
private final CRM1CPortType crm1CPortType;
private TMessage tMessage;
private TContractInfo tContractInfo;
private TContract tContract;
private TSpec tSpec;
private TCustomer tCustomer;
private TSpecLine specLine;
public ConsolidIntegration() {
CRM1C crm1C = new CRM1C();
crm1CPortType = crm1C.getCRM1CSoap();
}
public String sendRequest(TMessage value) {
return crm1CPortType.putContractInfo(value);
}
}
package models.jsonmodels;
import java.util.List;
public class ExpenseModel {
private String reportDate;
private long branchWarehouse;
private long warehouse;
private List<ExpensesInnerModel> expensesInnerModels;
public String getReportDate() {
return reportDate;
}
public void setReportDate(String reportDate) {
this.reportDate = reportDate;
}
public long getBranchWarehouse() {
return branchWarehouse;
}
public void setBranchWarehouse(long branchWarehouse) {
this.branchWarehouse = branchWarehouse;
}
public long getWarehouse() {
return warehouse;
}
public void setWarehouse(long warehouse) {
this.warehouse = warehouse;
}
public List<ExpensesInnerModel> getExpensesInnerModels() {
return expensesInnerModels;
}
public void setExpensesInnerModels(List<ExpensesInnerModel> expensesInnerModels) {
this.expensesInnerModels = expensesInnerModels;
}
}
package models.jsonmodels;
public class ExpensesInnerModel {
private String code;
private String nameReagent;
private String seriesReagen;
private String termReagent;
private long unitOfChange;
private long researchExpense;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getNameReagent() {
return nameReagent;
}
public void setNameReagent(String nameReagent) {
this.nameReagent = nameReagent;
}
public String getSeriesReagen() {
return seriesReagen;
}
public void setSeriesReagen(String seriesReagen) {
this.seriesReagen = seriesReagen;
}
public String getTermReagent() {
return termReagent;
}
public void setTermReagent(String termReagent) {
this.termReagent = termReagent;
}
public long getUnitOfChange() {
return unitOfChange;
}
public void setUnitOfChange(long unitOfChange) {
this.unitOfChange = unitOfChange;
}
public long getResearchExpense() {
return researchExpense;
}
public void setResearchExpense(long researchExpense) {
this.researchExpense = researchExpense;
}
}
package operation;
import kz.arta.synergy.forms.common.util.rest.operations.ApiOperation;
import org.codehaus.jackson.JsonNode;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpUtils extends ApiOperation {
public HttpUtils(String address, String auth) {
super(address, auth);
}
public JsonNode getDocData(String documentID) throws Exception {
HttpURLConnection connection = this.openGetConnection(new URL(this.address + "/rest/api/docflow/doc/document_info?documentID=" + documentID), this.auth);
return readJsonResult(connection);
}
}
package operation.IntegrationOperation;
import kz.arta.synergy.api.JsonUtils;
import operation.OperationInterfaces.Service;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class AdditionalOnfo implements Service {
@Override
public String exec(String param) throws IOException {
System.out.println(param);
Map<String, String> map = new HashMap<>();
map.put("code", "1");
map.put("message", "success");
return JsonUtils.toJson(map);
}
}
package operation.IntegrationOperation;
import kz.arta.synergy.api.JsonUtils;
import operation.OperationInterfaces.Service;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class ConsolidApp implements Service {
@Override
public String exec(String param) throws IOException {
System.out.println(param);
Map<String, String> map = new HashMap<>();
map.put("code", "1");
map.put("message", "success");
return JsonUtils.toJson(map);
}
}
package operation.IntegrationOperation;
import kz.arta.synergy.api.JsonUtils;
import kz.arta.synergy.forms.common.object.ASFData;
import kz.arta.synergy.forms.common.object.ASFDataWrapperExt;
import kz.arta.synergy.forms.common.util.rest.operations.AsfDataApi;
import models.jsonmodels.ExpenseModel;
import models.jsonmodels.ExpensesInnerModel;
import operation.OperationInterfaces.Service;
import org.apache.commons.codec.binary.Base64;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class Expense implements Service {
@Override
public String exec(String param) throws IOException {
System.out.println("EXPENSE ENTER");
AsfDataApi asfDataApi = new AsfDataApi("http://test-lis.nce.kz/Synergy", "Basic " + Base64.encodeBase64String(("admincrm" + ":" + "Adm1nCRM").getBytes(StandardCharsets.ISO_8859_1)));
ASFDataWrapperExt asfDataWrapperExt = asfDataApi.getAsfData("141752");
System.out.println("DATA IS RECEIVED");
ExpenseModel expenseModel = new ExpenseModel();
String reportDate = null;
List<ASFData.Data> dataList = asfDataWrapperExt.getData("table-a9sbti").getData();
for (ASFData.Data d : dataList) {
if (d.getId().equalsIgnoreCase("report_date-b1")) {
reportDate = DateTime.parse(d.getKey(), DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")).toString("yyyyMMdd");
}
}
expenseModel.setReportDate(Objects.isNull(reportDate) ? "" : reportDate);
long branchWarehouse = Long.parseLong(asfDataWrapperExt.getData("branch_warehouse").getKey());
expenseModel.setBranchWarehouse(branchWarehouse);
long warehouse = Long.parseLong(asfDataWrapperExt.getData("warehouse").getKey());
expenseModel.setWarehouse(warehouse);
dataList = asfDataWrapperExt.getData("table_reagent").getData();
List<ExpensesInnerModel> expensesInnerModels = new ArrayList<>();
if (dataList.size() > 7) {
String lastId = dataList.get(dataList.size() - 1).getId();
int j = Integer.parseInt(lastId.substring(lastId.length() - 1));
for (int i = 1; i <= j; i++) {
ExpensesInnerModel innerModel = new ExpensesInnerModel();
for (ASFData.Data d : dataList) {
if (d.getId().equalsIgnoreCase("code-b" + i)) {
innerModel.setCode(d.getValue());
}
if (d.getId().equalsIgnoreCase("name_reagent-b" + i )) {
innerModel.setNameReagent(d.getValue());
}
if (d.getId().equalsIgnoreCase("series_reagent-b" + i )) {
innerModel.setSeriesReagen(d.getValue());
}
if (d.getId().equalsIgnoreCase("term_reagent-b" + i )) {
String termDate = DateTime.parse(d.getKey(), DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")).toString("yyyyMMdd");
innerModel.setTermReagent(termDate);
}
if (d.getId().equalsIgnoreCase("unit_of_change-b" + i )) {
long unitOfChange = Long.parseLong(d.getKey());
innerModel.setUnitOfChange(unitOfChange);
}
if (d.getId().equalsIgnoreCase("research_expense-b" + i )) {
long research = Long.parseLong(d.getKey());
innerModel.setUnitOfChange(research);
}
}
expensesInnerModels.add(innerModel);
}
}
expenseModel.setExpensesInnerModels(expensesInnerModels);
return JsonUtils.toJson(expenseModel);
}
}
package operation.IntegrationOperation;
import kz.arta.synergy.api.JsonUtils;
import operation.OperationInterfaces.Service;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class FLPayment implements Service {
@Override
public String exec(String param) throws IOException {
System.out.println(param);
Map<String, String> map = new HashMap<>();
map.put("code", "1");
map.put("message", "success");
return JsonUtils.toJson(map);
}
}
package operation.IntegrationOperation;
import kz.arta.synergy.api.JsonUtils;
import operation.OperationInterfaces.Service;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class WareHouseInfo implements Service {
@Override
public String exec(String param) throws IOException {
System.out.println(param);
Map<String, String> map = new HashMap<>();
map.put("code", "1");
map.put("message", "success");
return JsonUtils.toJson(map);
}
}
package operation.OperationInterfaces;
import java.io.IOException;
public interface Service {
String exec(String param) throws IOException;
}
package operation;
import kz.arta.synergy.forms.common.util.rest.operations.ApiOperation;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
public class UnblockOperation extends ApiOperation {
public UnblockOperation(String address, String auth) {
super(address, auth);
}
public void unblock(String executionId, String message, String signal) throws Exception {
HttpURLConnection connection = this.openGetConnection(new URL(this.address + "/rest/api/processes/signal" +
"?signal="+signal+"&param1=resolution&value1=" + URLEncoder.encode(message, "UTF-8") +
"&executionID="+executionId), this.auth);
readResult(connection);
}
}
package processes;
import operation.IntegrationOperation.*;
import operation.OperationInterfaces.Service;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
@WebServlet(urlPatterns = "/merger/*")
public class MergerConnection extends HttpServlet {
Map<String, Service> reestrs = new HashMap<String, Service>() {{
put("reestr_informatsiya_o_raskhody", new Expense());
put("reestr_informatsiya_o_sklade", new WareHouseInfo());
put("reestr_oplata_dlya_fl", new FLPayment());
put("nce_registry_consolidated_application", new ConsolidApp());
put("nce_registry_consolidated_application_add", new AdditionalOnfo());
}};
@Override
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException {
process(httpServletRequest, httpServletResponse);
}
@Override
protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException {
process(httpServletRequest, httpServletResponse);
}
private void process(HttpServletRequest request, HttpServletResponse response) throws IOException {
String baseUri = request.getRequestURI();
String[] uriArray = baseUri.split("/");
if (uriArray.length <= 1) {
return;
}
StringBuilder stringBuilder = new StringBuilder();
try (BufferedReader reader = request.getReader()) {
String line;
while ((line = reader.readLine()) != null) {
stringBuilder.append(line);
}
}
String inOperation = uriArray[uriArray.length - 1];
System.out.println(inOperation);
Service methodOperation = reestrs.get(inOperation);
System.out.println(reestrs.size());
System.out.println(methodOperation);
System.out.println(methodOperation);
String res = methodOperation.exec(stringBuilder.toString());
System.out.println(res);
try (Writer writer = response.getWriter()) {
writer.write(res);
} catch (Exception e) {
e.printStackTrace();
}
}
}
package queue;
public class dd {
}
package wsdl.consolid;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebServiceClient(name = "CRM1C", targetNamespace = "https://nce.kz", wsdlLocation = "http://88.204.163.54:8080/cons/ws/crmContracts.1cws?wsdl")
public class CRM1C
extends Service
{
private final static URL CRM1C_WSDL_LOCATION;
private final static WebServiceException CRM1C_EXCEPTION;
private final static QName CRM1C_QNAME = new QName("https://nce.kz", "CRM1C");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("http://88.204.163.54:8080/cons/ws/crmContracts.1cws?wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
CRM1C_WSDL_LOCATION = url;
CRM1C_EXCEPTION = e;
}
public CRM1C() {
super(__getWsdlLocation(), CRM1C_QNAME);
}
public CRM1C(WebServiceFeature... features) {
super(__getWsdlLocation(), CRM1C_QNAME, features);
}
public CRM1C(URL wsdlLocation) {
super(wsdlLocation, CRM1C_QNAME);
}
public CRM1C(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, CRM1C_QNAME, features);
}
public CRM1C(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public CRM1C(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns CRM1CPortType
*/
@WebEndpoint(name = "CRM1CSoap")
public CRM1CPortType getCRM1CSoap() {
return super.getPort(new QName("https://nce.kz", "CRM1CSoap"), CRM1CPortType.class);
}
/**
*
* @param features
* A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns CRM1CPortType
*/
@WebEndpoint(name = "CRM1CSoap")
public CRM1CPortType getCRM1CSoap(WebServiceFeature... features) {
return super.getPort(new QName("https://nce.kz", "CRM1CSoap"), CRM1CPortType.class, features);
}
private static URL __getWsdlLocation() {
if (CRM1C_EXCEPTION!= null) {
throw CRM1C_EXCEPTION;
}
return CRM1C_WSDL_LOCATION;
}
}
package wsdl.consolid;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebService(name = "CRM1CPortType", targetNamespace = "https://nce.kz")
@XmlSeeAlso({
ObjectFactory.class
})
public interface CRM1CPortType {
/**
*
* @param parMessage
* @return
* returns java.lang.String
*/
@WebMethod(action = "https://nce.kz#CRM1C:putContractInfo")
@WebResult(targetNamespace = "https://nce.kz")
@RequestWrapper(localName = "putContractInfo", targetNamespace = "https://nce.kz", className = "https.nce.PutContractInfo")
@ResponseWrapper(localName = "putContractInfoResponse", targetNamespace = "https://nce.kz", className = "https.nce.PutContractInfoResponse")
public String putContractInfo(
@WebParam(name = "parMessage", targetNamespace = "https://nce.kz")
TMessage parMessage);
/**
*
* @param parIDContract
* @return
* returns https.nce.TListContractNums
*/
@WebMethod(action = "https://nce.kz#CRM1C:getContractNum")
@WebResult(targetNamespace = "https://nce.kz")
@RequestWrapper(localName = "getContractNum", targetNamespace = "https://nce.kz", className = "https.nce.GetContractNum")
@ResponseWrapper(localName = "getContractNumResponse", targetNamespace = "https://nce.kz", className = "https.nce.GetContractNumResponse")
public TListContractNums getContractNum(
@WebParam(name = "parIDContract", targetNamespace = "https://nce.kz")
String parIDContract);
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="parIDContract" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"parIDContract"
})
@XmlRootElement(name = "getContractNum")
public class GetContractNum {
@XmlElement(required = true)
protected String parIDContract;
/**
* Gets the value of the parIDContract property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getParIDContract() {
return parIDContract;
}
/**
* Sets the value of the parIDContract property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setParIDContract(String value) {
this.parIDContract = value;
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="return" type="{https://nce.kz}TListContractNums"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"_return"
})
@XmlRootElement(name = "getContractNumResponse")
public class GetContractNumResponse {
@XmlElement(name = "return", required = true)
protected TListContractNums _return;
/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link TListContractNums }
*
*/
public TListContractNums getReturn() {
return _return;
}
/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link TListContractNums }
*
*/
public void setReturn(TListContractNums value) {
this._return = value;
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the https.nce package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: https.nce
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link PutContractInfo }
*
*/
public PutContractInfo createPutContractInfo() {
return new PutContractInfo();
}
/**
* Create an instance of {@link TMessage }
*
*/
public TMessage createTMessage() {
return new TMessage();
}
/**
* Create an instance of {@link GetContractNumResponse }
*
*/
public GetContractNumResponse createGetContractNumResponse() {
return new GetContractNumResponse();
}
/**
* Create an instance of {@link TListContractNums }
*
*/
public TListContractNums createTListContractNums() {
return new TListContractNums();
}
/**
* Create an instance of {@link GetContractNum }
*
*/
public GetContractNum createGetContractNum() {
return new GetContractNum();
}
/**
* Create an instance of {@link PutContractInfoResponse }
*
*/
public PutContractInfoResponse createPutContractInfoResponse() {
return new PutContractInfoResponse();
}
/**
* Create an instance of {@link TCustomer }
*
*/
public TCustomer createTCustomer() {
return new TCustomer();
}
/**
* Create an instance of {@link TSpecLine }
*
*/
public TSpecLine createTSpecLine() {
return new TSpecLine();
}
/**
* Create an instance of {@link TContract }
*
*/
public TContract createTContract() {
return new TContract();
}
/**
* Create an instance of {@link TSpec }
*
*/
public TSpec createTSpec() {
return new TSpec();
}
/**
* Create an instance of {@link TContractInfo }
*
*/
public TContractInfo createTContractInfo() {
return new TContractInfo();
}
/**
* Create an instance of {@link TRowContract }
*
*/
public TRowContract createTRowContract() {
return new TRowContract();
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="parMessage" type="{https://nce.kz}TMessage"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"parMessage"
})
@XmlRootElement(name = "putContractInfo")
public class PutContractInfo {
@XmlElement(required = true)
protected TMessage parMessage;
/**
* Gets the value of the parMessage property.
*
* @return
* possible object is
* {@link TMessage }
*
*/
public TMessage getParMessage() {
return parMessage;
}
/**
* Sets the value of the parMessage property.
*
* @param value
* allowed object is
* {@link TMessage }
*
*/
public void setParMessage(TMessage value) {
this.parMessage = value;
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"_return"
})
@XmlRootElement(name = "putContractInfoResponse")
public class PutContractInfoResponse {
@XmlElement(name = "return", required = true)
protected String _return;
/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReturn() {
return _return;
}
/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReturn(String value) {
this._return = value;
}
}
package wsdl.consolid;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TContractInfo complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TContractInfo">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="rsIDContractInfo" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsContract" type="{https://nce.kz}TContract" maxOccurs="unbounded"/>
* &lt;element name="rsTypeOperation" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsSpec" type="{https://nce.kz}TSpec" maxOccurs="unbounded"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TContractInfo", propOrder = {
"rsIDContractInfo",
"rsContract",
"rsTypeOperation",
"rsSpec",
"rsReserve"
})
public class TContractInfo {
@XmlElement(required = true)
protected String rsIDContractInfo;
@XmlElement(required = true)
protected List<TContract> rsContract;
@XmlElement(required = true)
protected String rsTypeOperation;
@XmlElement(required = true)
protected List<TSpec> rsSpec;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the rsIDContractInfo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsIDContractInfo() {
return rsIDContractInfo;
}
/**
* Sets the value of the rsIDContractInfo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsIDContractInfo(String value) {
this.rsIDContractInfo = value;
}
/**
* Gets the value of the rsContract property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the rsContract property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRsContract().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TContract }
*
*
*/
public List<TContract> getRsContract() {
if (rsContract == null) {
rsContract = new ArrayList<TContract>();
}
return this.rsContract;
}
/**
* Gets the value of the rsTypeOperation property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsTypeOperation() {
return rsTypeOperation;
}
/**
* Sets the value of the rsTypeOperation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsTypeOperation(String value) {
this.rsTypeOperation = value;
}
/**
* Gets the value of the rsSpec property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the rsSpec property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRsSpec().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TSpec }
*
*
*/
public List<TSpec> getRsSpec() {
if (rsSpec == null) {
rsSpec = new ArrayList<TSpec>();
}
return this.rsSpec;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TCustomer complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TCustomer">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="rsIDCustomer" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsStatus" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsNameCustomer" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsBinCustomer" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsBank" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsBankAccount" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsCurrencyAccount" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsBankCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsCodeBenef" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TCustomer", propOrder = {
"rsIDCustomer",
"rsStatus",
"rsNameCustomer",
"rsBinCustomer",
"rsAddress",
"rsBank",
"rsBankAccount",
"rsCurrencyAccount",
"rsBankCode",
"rsCodeBenef",
"rsReserve"
})
public class TCustomer {
@XmlElement(required = true)
protected String rsIDCustomer;
@XmlElement(required = true)
protected String rsStatus;
@XmlElement(required = true)
protected String rsNameCustomer;
@XmlElement(required = true)
protected String rsBinCustomer;
@XmlElement(required = true)
protected String rsAddress;
@XmlElement(required = true)
protected String rsBank;
@XmlElement(required = true)
protected String rsBankAccount;
@XmlElement(required = true)
protected String rsCurrencyAccount;
@XmlElement(required = true)
protected String rsBankCode;
@XmlElement(required = true)
protected String rsCodeBenef;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the rsIDCustomer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsIDCustomer() {
return rsIDCustomer;
}
/**
* Sets the value of the rsIDCustomer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsIDCustomer(String value) {
this.rsIDCustomer = value;
}
/**
* Gets the value of the rsStatus property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsStatus() {
return rsStatus;
}
/**
* Sets the value of the rsStatus property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsStatus(String value) {
this.rsStatus = value;
}
/**
* Gets the value of the rsNameCustomer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsNameCustomer() {
return rsNameCustomer;
}
/**
* Sets the value of the rsNameCustomer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsNameCustomer(String value) {
this.rsNameCustomer = value;
}
/**
* Gets the value of the rsBinCustomer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsBinCustomer() {
return rsBinCustomer;
}
/**
* Sets the value of the rsBinCustomer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsBinCustomer(String value) {
this.rsBinCustomer = value;
}
/**
* Gets the value of the rsAddress property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsAddress() {
return rsAddress;
}
/**
* Sets the value of the rsAddress property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsAddress(String value) {
this.rsAddress = value;
}
/**
* Gets the value of the rsBank property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsBank() {
return rsBank;
}
/**
* Sets the value of the rsBank property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsBank(String value) {
this.rsBank = value;
}
/**
* Gets the value of the rsBankAccount property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsBankAccount() {
return rsBankAccount;
}
/**
* Sets the value of the rsBankAccount property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsBankAccount(String value) {
this.rsBankAccount = value;
}
/**
* Gets the value of the rsCurrencyAccount property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsCurrencyAccount() {
return rsCurrencyAccount;
}
/**
* Sets the value of the rsCurrencyAccount property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsCurrencyAccount(String value) {
this.rsCurrencyAccount = value;
}
/**
* Gets the value of the rsBankCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsBankCode() {
return rsBankCode;
}
/**
* Sets the value of the rsBankCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsBankCode(String value) {
this.rsBankCode = value;
}
/**
* Gets the value of the rsCodeBenef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsCodeBenef() {
return rsCodeBenef;
}
/**
* Sets the value of the rsCodeBenef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsCodeBenef(String value) {
this.rsCodeBenef = value;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
package wsdl.consolid;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TListContractNums complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TListContractNums">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="tbNumsContracts" type="{https://nce.kz}TRowContract" maxOccurs="unbounded"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TListContractNums", propOrder = {
"tbNumsContracts",
"rsReserve"
})
public class TListContractNums {
@XmlElement(required = true)
protected List<TRowContract> tbNumsContracts;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the tbNumsContracts property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the tbNumsContracts property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTbNumsContracts().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TRowContract }
*
*
*/
public List<TRowContract> getTbNumsContracts() {
if (tbNumsContracts == null) {
tbNumsContracts = new ArrayList<TRowContract>();
}
return this.tbNumsContracts;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
package wsdl.consolid;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TMessage complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TMessage">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="rsIDMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="orsDateStamp" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsCompany" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsSubdivision" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsUser" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="tbContracts" type="{https://nce.kz}TContractInfo" maxOccurs="unbounded"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TMessage", propOrder = {
"rsIDMessage",
"rsDateStamp",
"rsCompany",
"rsSubdivision",
"rsUser",
"tbContracts",
"rsReserve"
})
public class TMessage {
@XmlElement(required = true)
protected String rsIDMessage;
@XmlElement(required = true)
protected String rsDateStamp;
@XmlElement(required = true)
protected String rsCompany;
@XmlElement(required = true)
protected String rsSubdivision;
@XmlElement(required = true)
protected String rsUser;
@XmlElement(required = true)
protected List<TContractInfo> tbContracts;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the rsIDMessage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsIDMessage() {
return rsIDMessage;
}
/**
* Sets the value of the rsIDMessage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsIDMessage(String value) {
this.rsIDMessage = value;
}
/**
* Gets the value of the rsDateStamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsDateStamp() {
return rsDateStamp;
}
/**
* Sets the value of the rsDateStamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsDateStamp(String value) {
this.rsDateStamp = value;
}
/**
* Gets the value of the rsCompany property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsCompany() {
return rsCompany;
}
/**
* Sets the value of the rsCompany property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsCompany(String value) {
this.rsCompany = value;
}
/**
* Gets the value of the rsSubdivision property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsSubdivision() {
return rsSubdivision;
}
/**
* Sets the value of the rsSubdivision property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsSubdivision(String value) {
this.rsSubdivision = value;
}
/**
* Gets the value of the rsUser property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsUser() {
return rsUser;
}
/**
* Sets the value of the rsUser property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsUser(String value) {
this.rsUser = value;
}
/**
* Gets the value of the tbContracts property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the tbContracts property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTbContracts().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TContractInfo }
*
*
*/
public List<TContractInfo> getTbContracts() {
if (tbContracts == null) {
tbContracts = new ArrayList<TContractInfo>();
}
return this.tbContracts;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TRowContract complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TRowContract">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="rsIDContract" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
* &lt;element name="rsNumContract" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TRowContract", propOrder = {
"rsIDContract",
"rsNumContract",
"rsReserve"
})
public class TRowContract {
@XmlElement(required = true)
protected Object rsIDContract;
@XmlElement(required = true)
protected Object rsNumContract;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the rsIDContract property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getRsIDContract() {
return rsIDContract;
}
/**
* Sets the value of the rsIDContract property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setRsIDContract(Object value) {
this.rsIDContract = value;
}
/**
* Gets the value of the rsNumContract property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getRsNumContract() {
return rsNumContract;
}
/**
* Sets the value of the rsNumContract property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setRsNumContract(Object value) {
this.rsNumContract = value;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
package wsdl.consolid;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TSpec complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TSpec">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="rsIDSpec" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsIDContract" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="tbSpecLines" type="{https://nce.kz}TSpecLine" maxOccurs="unbounded"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TSpec", propOrder = {
"rsIDSpec",
"rsIDContract",
"tbSpecLines",
"rsReserve"
})
public class TSpec {
@XmlElement(required = true)
protected String rsIDSpec;
@XmlElement(required = true)
protected String rsIDContract;
@XmlElement(required = true)
protected List<TSpecLine> tbSpecLines;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the rsIDSpec property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsIDSpec() {
return rsIDSpec;
}
/**
* Sets the value of the rsIDSpec property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsIDSpec(String value) {
this.rsIDSpec = value;
}
/**
* Gets the value of the rsIDContract property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsIDContract() {
return rsIDContract;
}
/**
* Sets the value of the rsIDContract property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsIDContract(String value) {
this.rsIDContract = value;
}
/**
* Gets the value of the tbSpecLines property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the tbSpecLines property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTbSpecLines().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TSpecLine }
*
*
*/
public List<TSpecLine> getTbSpecLines() {
if (tbSpecLines == null) {
tbSpecLines = new ArrayList<TSpecLine>();
}
return this.tbSpecLines;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
package wsdl.consolid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TSpecLine complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TSpecLine">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="rsTypeObject" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsNameItem" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsNameUnit" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsTypeService" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsQuantity" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsPrice" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsSum" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="rsReserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TSpecLine", propOrder = {
"rsTypeObject",
"rsNameItem",
"rsNameUnit",
"rsTypeService",
"rsQuantity",
"rsPrice",
"rsSum",
"rsReserve"
})
public class TSpecLine {
@XmlElement(required = true)
protected String rsTypeObject;
@XmlElement(required = true)
protected String rsNameItem;
@XmlElement(required = true)
protected String rsNameUnit;
@XmlElement(required = true)
protected String rsTypeService;
@XmlElement(required = true)
protected String rsQuantity;
@XmlElement(required = true)
protected String rsPrice;
@XmlElement(required = true)
protected String rsSum;
@XmlElement(required = true)
protected String rsReserve;
/**
* Gets the value of the rsTypeObject property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsTypeObject() {
return rsTypeObject;
}
/**
* Sets the value of the rsTypeObject property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsTypeObject(String value) {
this.rsTypeObject = value;
}
/**
* Gets the value of the rsNameItem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsNameItem() {
return rsNameItem;
}
/**
* Sets the value of the rsNameItem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsNameItem(String value) {
this.rsNameItem = value;
}
/**
* Gets the value of the rsNameUnit property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsNameUnit() {
return rsNameUnit;
}
/**
* Sets the value of the rsNameUnit property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsNameUnit(String value) {
this.rsNameUnit = value;
}
/**
* Gets the value of the rsTypeService property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsTypeService() {
return rsTypeService;
}
/**
* Sets the value of the rsTypeService property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsTypeService(String value) {
this.rsTypeService = value;
}
/**
* Gets the value of the rsQuantity property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsQuantity() {
return rsQuantity;
}
/**
* Sets the value of the rsQuantity property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsQuantity(String value) {
this.rsQuantity = value;
}
/**
* Gets the value of the rsPrice property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsPrice() {
return rsPrice;
}
/**
* Sets the value of the rsPrice property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsPrice(String value) {
this.rsPrice = value;
}
/**
* Gets the value of the rsSum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsSum() {
return rsSum;
}
/**
* Sets the value of the rsSum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsSum(String value) {
this.rsSum = value;
}
/**
* Gets the value of the rsReserve property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsReserve() {
return rsReserve;
}
/**
* Sets the value of the rsReserve property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRsReserve(String value) {
this.rsReserve = value;
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "https://nce.kz", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package wsdl.consolid;
<jboss umlns="urn:jboss:1.0">
<jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">
<dependency name="Synergy.ear"/>
</jboss-deployment-dependencies>
</jboss>
\ No newline at end of file
import kz.arta.synergy.api.JsonUtils;
import kz.arta.synergy.forms.common.object.ASFDataWrapperExt;
import kz.arta.synergy.forms.common.util.rest.operations.AsfDataApi;
import models.jsonmodels.ExpenseModel;
import models.jsonmodels.ExpensesInnerModel;
import operation.HttpUtils;
import operation.IntegrationOperation.Expense;
import org.apache.commons.codec.binary.Base64;
import org.codehaus.jackson.JsonNode;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.junit.Test;
import wsdl.consolid.CRM1C;
import wsdl.consolid.CRM1CPortType;
import wsdl.consolid.TMessage;
import java.math.BigDecimal;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class DateTimeTest {
@Test
public void test() throws Exception {
connectTest();
}
private void connectTest() throws Exception {
AsfDataApi asfDataApi = new AsfDataApi("http://lis.nce.kz/Synergy", "Basic " + Base64.encodeBase64String(("admincrm" + ":" + "Adm1nCRM").getBytes(StandardCharsets.ISO_8859_1)));
ASFDataWrapperExt asfDataWrapperExt = asfDataApi.getAsfData("141752");
System.out.println(asfDataWrapperExt.getData("text_number_samples").getValue());
}
private void soapTest() {
CRM1C crm1C = new CRM1C();
CRM1CPortType crm1CPortType = crm1C.getCRM1CSoap();
String r = crm1CPortType.putContractInfo(new TMessage());
System.out.println(r);
}
private void arrayTest() {
HashSet<BigDecimal> bigDecimals = new HashSet<>();
bigDecimals.add(new BigDecimal("1.0"));
bigDecimals.add(new BigDecimal("1.00"));
System.out.println(bigDecimals.size());
TreeSet<BigDecimal> bigDecimals1 = new TreeSet<>();
bigDecimals1.add(new BigDecimal("1.0"));
bigDecimals1.add(new BigDecimal("1.00"));
System.out.println(bigDecimals1.size());
}
private void timeTest() {
System.out.println(DateTime.now().toString("yyyyMMddHHmmss"));
}
private void docDataTest() throws Exception {
HttpUtils utils = new HttpUtils("http://lis.arta.pro/Synergy", "Basic " + Base64.encodeBase64String(("admincrm" + ":" + "Adm1nCRM").getBytes(StandardCharsets.ISO_8859_1)));
JsonNode node = utils.getDocData("783367c8-f2fd-4c5f-b32c-1b5747ff6a9b");
System.out.println(node.get("createDate").asText());
System.out.println(DateTime.parse(node.get("createDate").asText(), DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")).toString("yyyyMMdd"));
}
private void jsonTest() throws Exception {
ExpenseModel expenseModel = new ExpenseModel();
expenseModel.setReportDate("1125366");
expenseModel.setWarehouse(12555);
expenseModel.setBranchWarehouse(458966);
List<ExpensesInnerModel> expensesInnerModels = new ArrayList<>();
ExpensesInnerModel innerModel = new ExpensesInnerModel();
innerModel.setCode("code");
innerModel.setNameReagent("Reagent");
innerModel.setResearchExpense(44558);
innerModel.setSeriesReagen("asdas");
innerModel.setTermReagent("Term");
innerModel.setUnitOfChange(458);
expensesInnerModels.add(innerModel);
expenseModel.setExpensesInnerModels(expensesInnerModels);
System.out.println(JsonUtils.toJson(expenseModel));
}
private void execTest() throws Exception {
Expense expense = new Expense();
System.out.println(expense.exec(""));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment