Primer commit

parent d4cbbeaa
Pipeline #69 failed with stages
**/target/
/target/
*/target/*
.classpath
.project
.settings
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
syntax: glob
# Ignore all targets
target
**/*.class
# Ignore IntelliJ Stuff
.idea/
*.iml
**/*.iml
*.ipr
*.iws
# Ignore eclipse stuff
.settings/
.classpath
.project
.metadata/
test-output/
.springBeans
.pydevproject
.tern-project
*-testng-*
orbtrc.*.txt
Servers/*
# Ignore ActiveMQ stuff
activemq-data/
# Ignore Hibernate stuff
.hibernateSynchronizer3/
# Ignore derby stuff
core-data/
**/derby.log
# Ignore Miscellaneous stuff
**/*.log
changes.txt
reminders.txt
# Ignore netbeans stuff
nbactions.xml
# Mac OSX temporal files
*.DS_Store
**/*.orig
*.ipr
*.iws
# se ignora asi mismo
#.hgignore
# Dependencias binarias de proyectos externos
lib/*.jar
# **/classes/**
**/target/classes/**
**/WEB-INF/classes/**
# Archivos temporales swap de python
*.swp
# Ignore MANIFEST
*.MF
# Ignore Bin
*bin
# checkstyle
*checkstyle
# Python files
*.pyc
# Archivo de status de patches
status
# Archivos bak
*.bak
glob:.hgtags.bak
# Se quitan archivos del eclipse ultima version
META-INF/maven
# Ignoramos el package para linux-max
package.sh
*.jasper
# Archivos de configuración de NetBeans.
nb-configuration.xml
classes/
#ignore sonar files
**/altStageDir/**
altStageDir
#Ignorar los Jasper
*.jasper
#Se quitan los temporales del word
~$*
#Se quitan archivos que terminan en tilde
**/*~
4fcf9eae003d875010d2b9ece5f856ca4bc09ccc INTEGRACION_INICIAL_NO_MAVEN
# sap-integration
integracion de sap
\ No newline at end of file
Integracion de SAP para derechos de Autor
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.mx.dla</groupId>
<artifactId>sap-integration</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<packaging>war</packaging>
<artifactId>ddaCatalogosWS</artifactId>
<properties>
<spring-core.version>3.1.0.RELEASE</spring-core.version>
<myBatiz.version>3.2.2</myBatiz.version>
<myBatiz.spring.version>1.2.0</myBatiz.spring.version>
<servlet.api>3.0.1</servlet.api>
<jackson.version>1.9.13</jackson.version>
<sl4f.version>1.7.7</sl4f.version>
<cxf.version>2.7.6</cxf.version>
</properties>
<dependencies>
<!-- Dependencias Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring-core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring-core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring-core.version}</version>
</dependency>
<!-- Dependencias Ibatiz -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${myBatiz.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${myBatiz.spring.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet.api}</version>
</dependency>
<!-- Dependencias jackson -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- Dependencias logs-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${sl4f.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${sl4f.version}</version>
</dependency>
<!-- CXF -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- otras -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.2.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>development</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<p.resources.dir>${project.basedir}/profiles/development/resources</p.resources.dir>
<p.resources>${project.basedir}/src/main/resources</p.resources>
</properties>
<build>
<finalName>ddaCatalogosWS</finalName>
<resources>
<resource>
<directory>${p.resources.dir}</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${p.resources}</directory>
<filtering>false</filtering>
</resource>
</resources>
</build>
</profile>
<profile>
<id>qa</id>
<properties>
<p.resources.dir>${project.basedir}/profiles/qa/resources</p.resources.dir>
<p.resources>${project.basedir}/src/main/resources</p.resources>
</properties>
<build>
<finalName>ddaCatalogosWS</finalName>
<resources>
<resource>
<directory>${p.resources.dir}</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${p.resources}</directory>
<filtering>false</filtering>
</resource>
</resources>
</build>
</profile>
<profile>
<id>production</id>
<properties>
<p.resources.dir>${project.basedir}/profiles/production/resources</p.resources.dir>
<p.resources>${project.basedir}/src/main/resources</p.resources>
</properties>
<build>
<finalName>ddaCatalogosWS</finalName>
<resources>
<resource>
<directory>${p.resources.dir}</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${p.resources}</directory>
<filtering>false</filtering>
</resource>
</resources>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>${server.url}</url>
<server>${server.id}</server>
<path>/${project.build.finalName}</path>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
##-- Variables config generales
database.jndi=jdbc/DBDLA
##-- Variables config generales
database.jndi=jdbc/DBDLA
##-- Variables config generales
database.jndi=jdbc/DBDLA
package com.mx.dla.dda.catalogo.estudio.bos;
import java.sql.SQLException;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import com.mx.dla.dda.catalogo.estudio.daos.EstudioDAO;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioCollectionDTO;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioDTO;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioI2DTO;
import com.mx.dla.dda.catalogo.estudio.trans.TransformaSAPToDDA;
import com.mx.dla.dda.catalogo.generales.dtos.RespuestaDTO;
import java.util.HashMap;
public class EstudioBO {
@Autowired
private EstudioDAO estudioDAO;
private static Logger log = Logger.getLogger(EstudioBO.class);
public RespuestaDTO agregaEstudioBO(EstudioCollectionDTO estudios) {
RespuestaDTO respuesta = null;
EstudioI2DTO estudioI2DTO = null;
Long idEstudio = null;
boolean valido=true;
for (EstudioDTO estudio : estudios.getEstudios()) {
log.info(" <<<< Datos del estudio >>>" );
log.info( estudio.toString() );
log.info(" Inicio de la validacion del estudio:" + estudio.getCodigoProveedor() );
respuesta = validaEstudio(estudio);
log.info(" Fin de la validacion del estudio:" + estudio.getCodigoProveedor() + " con resultado: " + respuesta.getEstatus() );
if( !respuesta.getEstatus().equals( "OK" ) ) {
valido=false;
log.info("Detalle de error: "+respuesta.getDescripcion());
respuesta.setEstatus("ERROR");
break;
}
}
try {
for (EstudioDTO estudio : estudios.getEstudios()) {
if(valido){
estudioI2DTO = TransformaSAPToDDA.getEstudioI2DTO(estudio);
estudioI2DTO.setDescripcion(respuesta.getDescripcion());
estudioI2DTO.setEstatus(respuesta.getEstatus());
estudioI2DTO.setSigla(null);
estudioI2DTO.setIdGrupo("1");
log.info(" Inicio de la busqueda el ID del estudio:" + estudio.getNombreProveedor() );
idEstudio = estudioDAO.obtenerIdEstudio(estudioI2DTO.getCodigoProveedor());
log.info(" Fin de la busqueda ID del estudio:" + idEstudio );
HashMap<String, Object> params = new HashMap<String, Object>();
String mensajeError;
if(idEstudio == null){
log.info(" Inicio de la insercion del estudio:" + idEstudio );
estudioDAO.agregaEstudio(estudioI2DTO);
estudioDAO.actualizarSiglasEstudios(params);
mensajeError = (String) params.get("mensajeError");
log.info(mensajeError);
log.info(" Fin de la insercion del estudio:" + idEstudio );
}else {
log.info(" Inicio de la actualizacion del estudio:" + idEstudio );
estudioI2DTO.setIdEstudio(idEstudio);
estudioDAO.actualizaEstudio(estudioI2DTO);
estudioDAO.actualizarSiglasEstudios(params);
mensajeError = (String) params.get("mensajeError");
log.info(mensajeError);
log.info(" Fin de la actualizacion del estudio:" + idEstudio );
}
}
}
} catch (SQLException e) {
log.info("Ocurrio un error en agregaEstudioBO");
log.info(e.getMessage());
}
return respuesta;
}
private RespuestaDTO validaEstudio(EstudioDTO estudio){
RespuestaDTO respuesta = new RespuestaDTO();
respuesta.setEstatus("OK");
respuesta.setDescripcion("Datos registrados correctamente");
if(estudio.getCodigoPais() == null || estudio.getCodigoPais().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parámetro codigo país");
}else if(estudio.getCodigoPais().length() > 3){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parámetro [CodigoPais] excede tamaño");
estudio.setCodigoPais(estudio.getCodigoPais().substring(0, 2));
}
if(estudio.getCodigoProveedor() == null || estudio.getCodigoProveedor().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parámetro codigo proveedor");
}else if(estudio.getCodigoProveedor().length() > 10){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parámetro [CodigoProveedor] excede tamaño");
estudio.setCodigoProveedor(estudio.getCodigoProveedor().substring(0, 10));
}
if(estudio.getMoneda() == null || estudio.getMoneda().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parámetro moneda");
}else if(estudio.getMoneda().length() > 3){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parámetro [moneda] excede tamaño");
estudio.setMoneda(estudio.getMoneda().substring(0, 3));
}
if(estudio.getNombrePais() == null || estudio.getNombrePais().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parámetro nombre pais");
}else if(estudio.getNombrePais().length() > 20){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parámetro [NombrePais] excede tamaño");
estudio.setNombrePais(estudio.getNombrePais().substring(0, 20));
}
if(estudio.getNombreProveedor() == null || estudio.getNombreProveedor().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parámetro nombre proveedor");
}else if(estudio.getNombreProveedor().length() > 50){
estudio.setNombreProveedor(estudio.getNombreProveedor().substring(0, 50));
}
if(estudio.getSociedad() == null || estudio.getSociedad().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parámetro sociedad");
}else if(estudio.getSociedad().length() > 4){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parámetro [sociedad] excede tamaño");
estudio.setSociedad(estudio.getSociedad().substring(0, 4));
}
return respuesta;
}
}
package com.mx.dla.dda.catalogo.estudio.daos;
import java.sql.SQLException;
import org.apache.ibatis.annotations.Param;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioI2DTO;
import java.util.Map;
public interface EstudioDAO {
public void agregaEstudio(EstudioI2DTO estudio) throws SQLException;
public Long obtenerIdEstudio(@Param("codigoSap") String codigoSap) throws SQLException;
public void actualizaEstudio(EstudioI2DTO estudio) throws SQLException;
public void actualizarSiglasEstudios(Map<String,Object> params);
}
package com.mx.dla.dda.catalogo.estudio.dtos;
import java.io.Serializable;
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.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class EstudioCollectionDTO implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(required = true)
private List<EstudioDTO> estudios;
public List<EstudioDTO> getEstudios() {
return estudios;
}
public void setEstudios(List<EstudioDTO> estudios) {
this.estudios = estudios;
}
}
package com.mx.dla.dda.catalogo.estudio.dtos;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class EstudioDTO implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(required=true)
private String codigoProveedor;
@XmlElement(required=true)
private String nombreProveedor;
@XmlElement(required=true)
private String moneda;
@XmlElement(required=true)
private String codigoPais;
@XmlElement(required=true)
private String nombrePais;
@XmlElement(required=true)
private String sociedad;
public String getCodigoProveedor() {
return codigoProveedor;
}
public void setCodigoProveedor(String codigoProveedor) {
this.codigoProveedor = codigoProveedor;
}
public String getNombreProveedor() {
return nombreProveedor;
}
public void setNombreProveedor(String nombreProveedor) {
this.nombreProveedor = nombreProveedor;
}
public String getMoneda() {
return moneda;
}
public void setMoneda(String moneda) {
this.moneda = moneda;
}
public String getCodigoPais() {
return codigoPais;
}
public void setCodigoPais(String codigoPais) {
this.codigoPais = codigoPais;
}
public String getNombrePais() {
return nombrePais;
}
public void setNombrePais(String nombrePais) {
this.nombrePais = nombrePais;
}
public String getSociedad() {
return sociedad;
}
public void setSociedad(String sociedad) {
this.sociedad = sociedad;
}
@Override
public String toString() {
return "EstudioDTO [codigoProveedor=" + codigoProveedor
+ ", nombreProveedor=" + nombreProveedor + ", moneda=" + moneda
+ ", codigoPais=" + codigoPais + ", nombrePais=" + nombrePais
+ ", sociedad=" + sociedad + "]";
}
}
package com.mx.dla.dda.catalogo.estudio.dtos;
public class EstudioI2DTO {
private Long idEstudio;
private String codigoProveedor;
private String nombreProveedor;
private String moneda;
private String codigoPais;
private String nombrePais;
private String sociedad;
private String estatus;
private String descripcion;
private String sigla;
private String idGrupo;
public Long getIdEstudio() {
return idEstudio;
}
public void setIdEstudio(Long idEstudio) {
this.idEstudio = idEstudio;
}
public String getCodigoProveedor() {
return codigoProveedor;
}
public void setCodigoProveedor(String codigoProveedor) {
this.codigoProveedor = codigoProveedor;
}
public String getNombreProveedor() {
return nombreProveedor;
}
public void setNombreProveedor(String nombreProveedor) {
this.nombreProveedor = nombreProveedor;
}
public String getMoneda() {
return moneda;
}
public void setMoneda(String moneda) {
this.moneda = moneda;
}
public String getCodigoPais() {
return codigoPais;
}
public void setCodigoPais(String codigoPais) {
this.codigoPais = codigoPais;
}
public String getNombrePais() {
return nombrePais;
}
public void setNombrePais(String nombrePais) {
this.nombrePais = nombrePais;
}
public String getSociedad() {
return sociedad;
}
public void setSociedad(String sociedad) {
this.sociedad = sociedad;
}
public String getEstatus() {
return estatus;
}
public void setEstatus(String estatus) {
this.estatus = estatus;
}
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
public String getSigla() {
return sigla;
}
public void setSigla(String sigla) {
this.sigla = sigla;
}
public String getIdGrupo() {
return idGrupo;
}
public void setIdGrupo(String idGrupo) {
this.idGrupo = idGrupo;
}
}
package com.mx.dla.dda.catalogo.estudio.trans;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioDTO;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioI2DTO;
public class TransformaSAPToDDA {
public static EstudioI2DTO getEstudioI2DTO(EstudioDTO estudio){
EstudioI2DTO estudioI2DTO = new EstudioI2DTO();
estudioI2DTO.setCodigoPais(estudio.getCodigoPais());
estudioI2DTO.setCodigoProveedor(estudio.getCodigoProveedor());
estudioI2DTO.setMoneda(estudio.getMoneda());
estudioI2DTO.setNombrePais(estudio.getNombrePais());
estudioI2DTO.setNombreProveedor(estudio.getNombreProveedor());
estudioI2DTO.setSociedad(estudio.getSociedad());
if(estudio.getNombreProveedor().length() > 3){
estudioI2DTO.setSigla(estudio.getNombreProveedor().substring(0, 3));
}else {
estudioI2DTO.setSigla(estudio.getNombreProveedor());
}
return estudioI2DTO;
}
}
package com.mx.dla.dda.catalogo.estudio.ws;
import javax.jws.WebService;
import javax.ws.rs.Path;
import org.apache.log4j.Logger;
import com.mx.dla.dda.catalogo.estudio.bos.EstudioBO;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioCollectionDTO;
import com.mx.dla.dda.catalogo.generales.dtos.RespuestaDTO;
@WebService(endpointInterface = "com.mx.dla.dda.catalogo.estudio.ws.IEstudioWS", serviceName = "idabmlEstudio")
public class EstudioWS implements IEstudioWS {
private static Logger log = Logger.getLogger(EstudioWS.class);
private EstudioBO estudioBO;
@Override
@Path("/agregarEstudios")
public RespuestaDTO agregarEstudios(EstudioCollectionDTO parametro) {
RespuestaDTO respuesta = new RespuestaDTO();
respuesta.setEstatus("ERROR");
try {
log.info("------- Inicio de WS de carga de Estudios -------");
respuesta = estudioBO.agregaEstudioBO(parametro);
if(!respuesta.getEstatus().equals("OK")) respuesta.setEstatus("ERROR");
log.info("------- Fin de WS de carga de Estudios -------");
} catch (Exception exc) {
log.info("Ocurrio un error en agregarEstudios");
log.info(exc.getMessage());
}
return respuesta;
}
public EstudioBO getEstudioBO() {
return estudioBO;
}
public void setEstudioBO(EstudioBO estudiosBO) {
this.estudioBO = estudiosBO;
}
}
package com.mx.dla.dda.catalogo.estudio.ws;
import javax.jws.WebResult;
import javax.jws.WebService;
import com.mx.dla.dda.catalogo.estudio.dtos.EstudioCollectionDTO;
import com.mx.dla.dda.catalogo.generales.dtos.RespuestaDTO;
@WebService(targetNamespace = "http://ws.estudio.catalogo.dda.dla.mx.com")
public interface IEstudioWS {
@WebResult(name = "agregarEstudios")
public RespuestaDTO agregarEstudios(EstudioCollectionDTO estudios);
}
package com.mx.dla.dda.catalogo.generales.dtos;
import java.io.Serializable;
public class RespuestaDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String estatus;
private String descripcion;
public String getEstatus() {
return estatus;
}
public void setEstatus(String estatus) {
this.estatus = estatus;
}
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
/* @Override
public String toString() {
return "RespuestaDTO [estatus=" + estatus + ", descripcion="
+ descripcion + "]";
}*/
}
package com.mx.dla.dda.catalogo.material.bos;
import java.sql.SQLException;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import com.mx.dla.dda.catalogo.generales.dtos.RespuestaDTO;
import com.mx.dla.dda.catalogo.material.daos.MaterialDAO;
import com.mx.dla.dda.catalogo.material.dtos.MaterialCollectionDTO;
import com.mx.dla.dda.catalogo.material.dtos.MaterialDTO;
import com.mx.dla.dda.catalogo.material.dtos.MaterialI1DTO;
import com.mx.dla.dda.catalogo.material.trans.TransformaSAPToDDA;
public class MaterialBO {
@Autowired
private MaterialDAO materialDAO;
private static Logger log = Logger.getLogger(MaterialBO.class);
public RespuestaDTO agregaMaterialBO(MaterialCollectionDTO materiales) {
RespuestaDTO respuesta = null;
MaterialI1DTO materialI1DTO = null;
Long idMaterial = null;
boolean valido=true;
for (MaterialDTO material : materiales.getMateriales()) {
log.info(" <<<< Datos del material >>>" );
log.info( material.toString() );
log.info(" Inicio de la validacion del material:" + material.getCodigo() );
respuesta = validaMaterial(material);
log.info(" Fin de la validacion del material:" + material.getCodigo() + " con resultado: " + respuesta.getEstatus() );
if( !respuesta.getEstatus().equals( "OK" ) ) {
valido=false;
log.info("Detalle de error: "+respuesta.getDescripcion());
respuesta.setEstatus("ERROR");
break;
}
}
try {
for (MaterialDTO material : materiales.getMateriales()) {
if( valido ) {
materialI1DTO = TransformaSAPToDDA.getMaterialI1DTO(material);
materialI1DTO.setDescripcion(respuesta.getDescripcion());
materialI1DTO.setEstatus(respuesta.getEstatus());
log.info(" Inicio de la busqueda el ID del material:" + material.getNombre() );
idMaterial = materialDAO.obtenerIdMaterial(materialI1DTO.getCodigo());
log.info(" Fin de la busqueda ID del material:" + idMaterial );
if(idMaterial == null){
log.info(" Inicio de la insercion del material:" + idMaterial );
materialDAO.agregarMaterial(materialI1DTO);
log.info(" Fin de la insercion del material:" + idMaterial );
}else{
log.info(" Inicio de la actualizacion del material:" + idMaterial );
materialI1DTO.setIdMaterial(idMaterial);
materialDAO.actualizaMaterial(materialI1DTO);
log.info(" Fin de la actualizacion del material:" + idMaterial );
}
}
}
} catch (SQLException e) {
log.info("Ocurrio un error en agregaMaterialBO");
log.info(e.getMessage());
}
return respuesta;
}
private RespuestaDTO validaMaterial(MaterialDTO material){
RespuestaDTO respuesta = new RespuestaDTO();
respuesta.setEstatus("OK");
respuesta.setDescripcion("Datos registrados correctamente");
if(material.getCodigo() == null || material.getCodigo().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parmetro codigo");
}else if(material.getCodigo().length() > 18){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parmetro [codigo] excede tamao");
material.setCodigo(material.getCodigo().substring(0, 18));
}
if(material.getIso() == null || material.getIso().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parmetro iso");
}else if(material.getIso().length() > 3){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parmetro [iso] excede tamao");
material.setIso(material.getIso().substring(0, 3));
}
if( material.getnMaterialAntiguo() != null && !material.getnMaterialAntiguo().equals("") && material.getnMaterialAntiguo().length() > 18){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parmetro materialAntiguo excede tamao");
material.setnMaterialAntiguo(material.getnMaterialAntiguo().substring(0, 18));
}
if(material.getNombre() == null || material.getNombre().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parmetro nombre");
}else if(material.getNombre().length() > 40){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parmetro [nombre] excede tamao");
material.setNombre(material.getNombre().substring(0, 40));
}
if(material.getUnidad() == null || material.getUnidad().equals("")){
respuesta.setEstatus("DDA-201");
respuesta.setDescripcion("Falta parmetro unidad");
}else if(material.getUnidad().length() > 3){
respuesta.setEstatus("DDA-202");
respuesta.setDescripcion("El parmetro [unidad] excede tamao");
material.setUnidad(material.getUnidad().substring(0, 3));
}
return respuesta;
}
}
package com.mx.dla.dda.catalogo.material.daos;
import java.sql.SQLException;
import org.apache.ibatis.annotations.Param;
import com.mx.dla.dda.catalogo.material.dtos.MaterialI1DTO;
public interface MaterialDAO {
public void agregarMaterial(MaterialI1DTO material) throws SQLException;
public Long obtenerIdMaterial(@Param("codigoSap") String codigoSap) throws SQLException;
public void actualizaMaterial(MaterialI1DTO material) throws SQLException;
}
package com.mx.dla.dda.catalogo.material.dtos;
import java.io.Serializable;
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.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class MaterialCollectionDTO implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(required = true)
private List<MaterialDTO> materiales;
public List<MaterialDTO> getMateriales() {
return materiales;
}
public void setMateriales(List<MaterialDTO> materiales) {
this.materiales = materiales;
}
}
package com.mx.dla.dda.catalogo.material.dtos;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class MaterialDTO implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(required = true)
private String codigo;
@XmlElement(required = true)
private String nombre;
@XmlElement(required = true)
private String unidad;
@XmlElement(required = true)
private String iso;
@XmlElement(required = true)
private String nMaterialAntiguo;
public String getCodigo() {
return codigo;
}
public void setCodigo(String codigo) {
this.codigo = codigo;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getUnidad() {
return unidad;
}
public void setUnidad(String unidad) {
this.unidad = unidad;
}
public String getIso() {
return iso;
}
public void setIso(String iso) {
this.iso = iso;
}
public String getnMaterialAntiguo() {
return nMaterialAntiguo;
}
public void setnMaterialAntiguo(String nMaterialAntiguo) {
this.nMaterialAntiguo = nMaterialAntiguo;
}
@Override
public String toString() {
return "MaterialDTO [codigo=" + codigo
+ ", nombre=" + nombre
+ ", unidad=" + unidad
+ ", iso=" + iso
+ ", nMaterialAntiguo=" + nMaterialAntiguo + "]";
}
}
package com.mx.dla.dda.catalogo.material.dtos;
public class MaterialI1DTO {
private Long idMaterial;
private String codigo;
private String nombre;
private String unidad;
private String iso;
private String nMaterialAntiguo;
private String estatus;
private String descripcion;
public Long getIdMaterial() {
return idMaterial;
}
public void setIdMaterial(Long idMaterial) {
this.idMaterial = idMaterial;
}
public String getCodigo() {
return codigo;
}
public void setCodigo(String codigo) {
this.codigo = codigo;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getUnidad() {
return unidad;
}
public void setUnidad(String unidad) {
this.unidad = unidad;
}
public String getIso() {
return iso;
}
public void setIso(String iso) {
this.iso = iso;
}
public String getnMaterialAntiguo() {
return nMaterialAntiguo;
}
public void setnMaterialAntiguo(String nMaterialAntiguo) {
this.nMaterialAntiguo = nMaterialAntiguo;
}
public String getEstatus() {
return estatus;
}
public void setEstatus(String estatus) {
this.estatus = estatus;
}
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
}
package com.mx.dla.dda.catalogo.material.trans;
import com.mx.dla.dda.catalogo.material.dtos.MaterialDTO;
import com.mx.dla.dda.catalogo.material.dtos.MaterialI1DTO;
public class TransformaSAPToDDA {
public static MaterialI1DTO getMaterialI1DTO(MaterialDTO material){
MaterialI1DTO materialI1DTO = new MaterialI1DTO();
materialI1DTO.setCodigo(material.getCodigo());
materialI1DTO.setIso(material.getIso());
materialI1DTO.setnMaterialAntiguo(material.getnMaterialAntiguo());
materialI1DTO.setNombre(material.getNombre());
materialI1DTO.setUnidad(material.getUnidad());
return materialI1DTO;
}
}
package com.mx.dla.dda.catalogo.material.ws;
import javax.jws.WebResult;
import javax.jws.WebService;
import com.mx.dla.dda.catalogo.generales.dtos.RespuestaDTO;
import com.mx.dla.dda.catalogo.material.dtos.MaterialCollectionDTO;
@WebService(targetNamespace = "http://ws.material.catalogo.dda.dla.mx.com")
public interface IMaterialWS {
@WebResult(name = "agregarMateriales")
public RespuestaDTO agregarMateriales(MaterialCollectionDTO parametro);
}
package com.mx.dla.dda.catalogo.material.ws;
import javax.jws.WebService;
import javax.ws.rs.Path;
import org.apache.log4j.Logger;
import com.mx.dla.dda.catalogo.generales.dtos.RespuestaDTO;
import com.mx.dla.dda.catalogo.material.bos.MaterialBO;
import com.mx.dla.dda.catalogo.material.dtos.MaterialCollectionDTO;
/**
*
* @author lunai
*@see para desplegarlo hay que seguir el patron: http://ipAddress:port/projectName/services/
* ejemplo: http://localhost:8088/ddaCatalogosWS/services/abmlMaterial?wsdl
*
*/
@WebService(endpointInterface = "com.mx.dla.dda.catalogo.material.ws.IMaterialWS", serviceName = "idabmlMaterial")
public class MaterialWS implements IMaterialWS {
private static Logger log = Logger.getLogger(MaterialWS.class);
private MaterialBO materialBO;
@Override
@Path("/agregarMateriales")
public RespuestaDTO agregarMateriales(MaterialCollectionDTO parametro) {
RespuestaDTO respuesta = new RespuestaDTO();
respuesta.setEstatus("ERROR");
try {
log.info("------- Inicio de WS de carga de Materiales -------");
respuesta = materialBO.agregaMaterialBO(parametro);
if(!respuesta.getEstatus().equals("OK")) respuesta.setEstatus("ERROR");
log.info("------- Fin de WS de carga de Materiales -------");
} catch (Exception exc) {
log.info("Ocurrio un error en agregarMateriales");
log.info(exc.getMessage());
}
return respuesta;
}
public MaterialBO getMaterialBO() {
return materialBO;
}
public void setMaterialBO(MaterialBO materialBO) {
this.materialBO = materialBO;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="com.mx.dla.dda.catalogo" />
<context:property-placeholder location="classpath:general.properties" />
<import resource="classpath:applicationContextDB.xml"/>
<import resource="classpath:applicationContextWS.xml"/>
<bean id="idMaterialBO" class="com.mx.dla.dda.catalogo.material.bos.MaterialBO" />
<bean id="idEstudioBO" class="com.mx.dla.dda.catalogo.estudio.bos.EstudioBO" />
<!-- log4j setting -->
<!-- <bean id="log4jInitialization"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="org.springframework.util.Log4jConfigurer" />
<property name="targetMethod" value="initLogging" />
<property name="arguments">
<list>
<value>classpath:log4j.local.properties</value>
</list>
</property>
</bean> -->
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:p="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
<tx:annotation-driven transaction-manager="transactionManager" />
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
p:dataSource-ref="dataSource" />
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="configLocation" value="classpath:mybatis-config.xml" />
<property name="mapperLocations" value="classpath:mappers/*.xml" />
</bean>
<!-- Tomar en cuenta los diferentes lugares donde se colocarán los daos -->
<bean id="myBatisScanner" class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.mx.dla.dda.catalogo" />
</bean>
<jee:jndi-lookup id="dataSource" jndi-name="${database.jndi}"
resource-ref="true" />
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="ISO-8859-1"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<jaxws:endpoint id="idabmlMaterial" address="/abmlMaterial">
<jaxws:implementor>
<ref bean="idMaterialWS" />
</jaxws:implementor>
</jaxws:endpoint>
<jaxws:endpoint id="idabmlEstudio" address="/abmlEstudio">
<jaxws:implementor>
<ref bean="idEstudioWS" />
</jaxws:implementor>
</jaxws:endpoint>
<bean id="idMaterialWS" class="com.mx.dla.dda.catalogo.material.ws.MaterialWS">
<property name="materialBO" ref="idMaterialBO" />
</bean>
<bean id="idEstudioWS" class="com.mx.dla.dda.catalogo.estudio.ws.EstudioWS">
<property name="estudioBO" ref="idEstudioBO" />
</bean>
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true"
xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" />
</layout>
</appender>
<appender name="file" class="org.apache.log4j.RollingFileAppender">
<param name="append" value="false" />
<param name="maxFileSize" value="10MB" />
<param name="maxBackupIndex" value="10" />
<param name="file" value="/opt/apache-tomcat-7.0.99/bin/logs/interfacesWS/ddaCatalogosWS.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" />
</layout>
</appender>
<root>
<level value="INFO" />
<!-- <appender-ref ref="console" /> -->
<appender-ref ref="file" />
</root>
</log4j:configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mx.dla.dda.catalogo.estudio.daos.EstudioDAO">
<resultMap id="result" type="EstudioI2DTO">
<id property="idEstudio" column="ID_ESTUDIO" />
<result property="codigoProveedor" column="ID_SAP"/>
<result property="nombreProveedor" column="DESC_ESTUDIO"/>
<result property="moneda" column="MONEDA"/>
<result property="codigoPais" column="CODIGO_PAIS"/>
<result property="nombrePais" column="NOMBRE_PAIS"/>
<result property="sociedad" column="SOCIEDAD"/>
<result property="estatus" column="ESTATUS"/>
<result property="descripcion" column="DESCRIPCION"/>
<result property="sigla" column="SIGLA_DDA"/>
</resultMap>
<select id="obtenerIdEstudio" resultType="Long">
SELECT ID_ESTUDIO FROM DDA_C_ESTUDIO WHERE ID_SAP=#{codigoSap ,javaType=String, jdbcType=VARCHAR}
</select>
<insert id="agregaEstudio" parameterType="EstudioI2DTO" useGeneratedKeys="true" keyProperty="idEstudio">
<selectKey keyProperty="idEstudio" resultType="long" order="BEFORE">
SELECT DDA_SQC_ESTUDIO.nextVal FROM DUAL
</selectKey>
INSERT INTO DDA_C_ESTUDIO (ID_ESTUDIO, ID_SAP, DESC_ESTUDIO, MONEDA, CODIGO_PAIS, NOMBRE_PAIS, SOCIEDAD, SIGLA_DDA,ID_GRUPO)
VALUES (#{idEstudio, javaType=long, jdbcType=NUMERIC},
#{codigoProveedor, javaType=String, jdbcType=VARCHAR},
#{nombreProveedor, javaType=String, jdbcType=VARCHAR},
#{moneda, javaType=String, jdbcType=VARCHAR},
#{codigoPais, javaType=String, jdbcType=VARCHAR},
#{nombrePais, javaType=String, jdbcType=VARCHAR},
#{sociedad, javaType=String, jdbcType=VARCHAR},
#{sigla,javaType=String, jdbcType=VARCHAR},
#{idGrupo,javaType=String, jdbcType=VARCHAR})
</insert>
<update id="actualizaEstudio" parameterType="EstudioI2DTO">
UPDATE DDA_C_ESTUDIO
SET ID_SAP=#{codigoProveedor, javaType=String, jdbcType=VARCHAR},
DESC_ESTUDIO=#{nombreProveedor, javaType=String, jdbcType=VARCHAR},
MONEDA=#{moneda, javaType=String, jdbcType=VARCHAR},
CODIGO_PAIS=#{codigoPais, javaType=String, jdbcType=VARCHAR},
NOMBRE_PAIS=#{nombrePais, javaType=String, jdbcType=VARCHAR},
SOCIEDAD=#{sociedad, javaType=String, jdbcType=VARCHAR}
WHERE ID_ESTUDIO=#{idEstudio, javaType=long, jdbcType=NUMERIC}
</update>
<update id="actualizarSiglasEstudios" parameterType="map" statementType="CALLABLE">
{ CALL DDA_ESTUIO_SIGLA(#{mensajeError, mode=OUT, jdbcType=VARCHAR}) }
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mx.dla.dda.catalogo.material.daos.MaterialDAO">
<resultMap id="result" type="MaterialI1DTO">
<id property="idMaterial" column="ID_MATERIAL" />
<result property="codigo" column="CODIGO_SAP"/>
<result property="nombre" column="DESC_MATERIAL"/>
<result property="unidad" column="UNIDAD_MEDIDA"/>
<result property="iso" column="CODIGO_ISO_MEDIDA"/>
<result property="nMaterialAntiguo" column="MATERIAL_ANTIGUO"/>
<result property="estatus" column="ESTATUS"/>
<result property="descripcion" column="DESCRIPCION"/>
</resultMap>
<select id="obtenerIdMaterial" resultType="Long">
SELECT ID_MATERIAL FROM DDA_C_MATERIAL WHERE CODIGO_SAP=#{codigoSap ,javaType=String, jdbcType=VARCHAR}
</select>
<insert id="agregarMaterial" parameterType="MaterialI1DTO" useGeneratedKeys="true" keyProperty="idMaterial">
<selectKey keyProperty="idMaterial" resultType="long" order="BEFORE">
SELECT DDA_SQC_MATERIAL.nextVal FROM DUAL
</selectKey>
INSERT INTO DDA_C_MATERIAL (ID_MATERIAL, CODIGO_SAP, DESC_MATERIAL, UNIDAD_MEDIDA, CODIGO_ISO_MEDIDA, MATERIAL_ANTIGUO)
VALUES (#{idMaterial, javaType=long, jdbcType=NUMERIC},
#{codigo, javaType=String, jdbcType=VARCHAR},
#{nombre, javaType=String, jdbcType=VARCHAR},
#{unidad, javaType=String, jdbcType=VARCHAR},
#{iso, javaType=String, jdbcType=VARCHAR},
#{nMaterialAntiguo, javaType=String, jdbcType=VARCHAR})
</insert>
<update id="actualizaMaterial" parameterType="MaterialI1DTO">
UPDATE DDA_C_MATERIAL
SET CODIGO_SAP=#{codigo, javaType=String, jdbcType=VARCHAR},
DESC_MATERIAL=#{nombre, javaType=String, jdbcType=VARCHAR},
UNIDAD_MEDIDA=#{unidad, javaType=String, jdbcType=VARCHAR},
CODIGO_ISO_MEDIDA=#{iso, javaType=String, jdbcType=VARCHAR},
MATERIAL_ANTIGUO=#{nMaterialAntiguo, javaType=String, jdbcType=VARCHAR}
WHERE ID_MATERIAL=#{idMaterial, javaType=long, jdbcType=NUMERIC}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<properties>
</properties>
<typeAliases>
<package name="com.mx.dla.dda.catalogo.material.dtos" />
<package name="com.mx.dla.dda.catalogo.estudio.dtos" />
</typeAliases>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/ddaCatalogosWS"/>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>ddaCatalogosWS</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Documentar los siguientes dos elementos que tiene que ver con CXF -->
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
</web-app>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<center>
<h3>DDA Catlogos Web Services.</h3>
</center>
</body>
</html>
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.mx.dla</groupId>
<artifactId>sap-integration</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<packaging>war</packaging>
<artifactId>ddaContratoCWS</artifactId>
<properties>
<spring-core.version>3.1.2.RELEASE</spring-core.version>
<myBatiz.version>3.2.2</myBatiz.version>
<myBatiz.spring.version>1.2.0</myBatiz.spring.version>
<servlet.api>3.0.1</servlet.api>
<sl4f.version>1.7.7</sl4f.version>
<jackson.version>1.9.13</jackson.version>
</properties>
<dependencies>
<!-- Dependencias Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring-core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring-core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring-core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring-core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>2.1.2.RELEASE</version>
</dependency>
<!-- Dependencias Ibatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${myBatiz.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${myBatiz.spring.version}</version>
</dependency>
<!-- Dependencias logs -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${sl4f.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${sl4f.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<!-- Dependencias jee -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet.api}</version>
</dependency>
<!-- Dependencias para bytecode -->
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.3.1</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2</version>
</dependency>
<!-- dependencias para manipular xml -->
<dependency>
<groupId>org.apache.ws.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.0.3</version>
</dependency>
<!-- dependencias para jackson -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>development</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<p.resources.dir>${project.basedir}/profiles/development/resources</p.resources.dir>
<p.resources>${project.basedir}/src/main/resources</p.resources>
</properties>
<build>
<finalName>ddaContratoCWS</finalName>
<resources>
<resource>
<directory>${p.resources.dir}</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${p.resources}</directory>
<filtering>false</filtering>
</resource>
</resources>
</build>
</profile>
<profile>
<id>production</id>
<properties>
<p.resources.dir>${project.basedir}/profiles/production/resources</p.resources.dir>
<p.resources>${project.basedir}/src/main/resources</p.resources>
</properties>
<build>
<finalName>ddaContratoCWS</finalName>
<resources>
<resource>
<directory>${p.resources.dir}</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${p.resources}</directory>
<filtering>false</filtering>
</resource>
</resources>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
##-- Variables config generales
database.jndi=jdbc/DBDLA
login.service.credenciales=ZAMC_DDA:FJ12y$.43
servidor.sap.ws=amcopocipr-1.amxcontenido.local
puerto.sap.ws =50000
ambiente =desarrollo
ddaContratoCWS.clientws.wsdlLocation.i8 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i8}
ddaContratoCWS.clientws.wsdlLocation.i10 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i10}
ddaContratoCWS.clientws.wsdlLocation.i12 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i12}
ddaContratoCWS.clientws.wsdlLocation.i19 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i19}
ddaContratoCWS.clientws.wsdlLocation.i20 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i20}
ddaContratoCWS.clientws.wsdlLocation.i25 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i25}
ddaContratoCWS.clientws.wsdlLocation.i27 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i27}
ddaContratoCWS.clientws.wsdlLocation.i29 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i29}
ddaContratoCWS.clientws.wsdlLocation.i30 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i30}
ddaContratoCWS.clientws.wsdlLocation.i31 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i31}
ddaContratoCWS.clientws.wsdlLocation.i32 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i32}
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i8 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_PedidoCompra_Out&interfaceNamespace=http://americamovil.com/DDA/1/M/EnviaPedidoCompra
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i10 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverPaty=&receiverService=&interface=SI_ActivoFijo_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaActivoFijo
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i12 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverPaty=&receiverService=&interface=SI_Contenido_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaContenido
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i19 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_CapitalizaContenido_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaPostcapitalizaContenido
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i20 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_NombreActivoF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaNombreActivoF
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i25 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_ActivoFijo_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaActivoFijo
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i27 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i29 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i30 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i31 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
desarrollo.ddaContratoCWS.clientws.wsdlLocation.i32 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_DEV&receiverParty=&receiverService=&interface=SI_EntradaMercancia_Out&interfaceNamespace=http://americamovil.com/DDA/1/EnviaEntradaMercancia
##-- Variables config generales
database.jndi=jdbc/DBDLA
login.service.credenciales=ZAMC_DDA:FJ12y$.43
servidor.sap.ws=amcopocipr-1.amxcontenido.local
puerto.sap.ws =50000
ambiente =preproduccion
ddaContratoCWS.clientws.wsdlLocation.i8 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i8}
ddaContratoCWS.clientws.wsdlLocation.i10 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i10}
ddaContratoCWS.clientws.wsdlLocation.i12 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i12}
ddaContratoCWS.clientws.wsdlLocation.i19 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i19}
ddaContratoCWS.clientws.wsdlLocation.i20 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i20}
ddaContratoCWS.clientws.wsdlLocation.i25 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i25}
ddaContratoCWS.clientws.wsdlLocation.i27 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i27}
ddaContratoCWS.clientws.wsdlLocation.i29 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i29}
ddaContratoCWS.clientws.wsdlLocation.i30 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i30}
ddaContratoCWS.clientws.wsdlLocation.i31 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i31}
ddaContratoCWS.clientws.wsdlLocation.i32 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i32}
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i8 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_PedidoCompra_Out&interfaceNamespace=http://americamovil.com/DDA/1/M/EnviaPedidoCompra
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i10 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverPaty=&receiverService=&interface=SI_ActivoFijo_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i12 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverPaty=&receiverService=&interface=SI_Contenido_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaContenido
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i19 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_CapitalizaContenido_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaPostcapitalizaContenido
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i20 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_NombreActivoF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaNombreActivoF
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i25 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ActivoFijo_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i27 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i29 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i30 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i31 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i32 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_PRD&receiverParty=&receiverService=&interface=SI_EntradaMercancia_Out&interfaceNamespace=http://americamovil.com/DDA/1/EnviaEntradaMercancia
##-- Variables config generales
database.jndi=jdbc/DBDLA
login.service.credenciales=ZAMC_DDA:FJ12y$.43
servidor.sap.ws=amcopocipr-1.amxcontenido.local
puerto.sap.ws =50000
ambiente =preproduccion
ddaContratoCWS.clientws.wsdlLocation.i8 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i8}
ddaContratoCWS.clientws.wsdlLocation.i10 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i10}
ddaContratoCWS.clientws.wsdlLocation.i12 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i12}
ddaContratoCWS.clientws.wsdlLocation.i19 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i19}
ddaContratoCWS.clientws.wsdlLocation.i20 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i20}
ddaContratoCWS.clientws.wsdlLocation.i25 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i25}
ddaContratoCWS.clientws.wsdlLocation.i27 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i27}
ddaContratoCWS.clientws.wsdlLocation.i29 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i29}
ddaContratoCWS.clientws.wsdlLocation.i30 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i30}
ddaContratoCWS.clientws.wsdlLocation.i31 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i31}
ddaContratoCWS.clientws.wsdlLocation.i32 =${${ambiente}.ddaContratoCWS.clientws.wsdlLocation.i32}
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i8 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_PedidoCompra_Out&interfaceNamespace=http://americamovil.com/DDA/1/M/EnviaPedidoCompra
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i10 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverPaty=&receiverService=&interface=SI_ActivoFijo_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i12 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverPaty=&receiverService=&interface=SI_Contenido_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaContenido
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i19 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_CapitalizaContenido_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaPostcapitalizaContenido
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i20 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_NombreActivoF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaNombreActivoF
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i25 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ActivoFijo_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i27 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i29 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i30 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i31 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_QA&receiverParty=&receiverService=&interface=SI_ModificaAF_Out&interfaceNamespace=http://americamovil.com/DDA/1/F/EnviaModifActivoFijo
preproduccion.ddaContratoCWS.clientws.wsdlLocation.i32 =http://${servidor.sap.ws}:${puerto.sap.ws}/XISOAPAdapter/MessageServlet?senderParty=&senderService=SYS_AM_1_DDA_PRD&receiverParty=&receiverService=&interface=SI_EntradaMercancia_Out&interfaceNamespace=http://americamovil.com/DDA/1/EnviaEntradaMercancia
package com.americamovil.dda.enviaactivofijo;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Estructura de datos para la creaci�n en ECC de activos fijos
*
* <p>Clase Java para DT_ActivoFijo complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_ActivoFijo">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Registro" maxOccurs="unbounded">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="OrdenCompra">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Proveedor">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Descripcion">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="45"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="CodigoDDA">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="CentroCoste">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_ActivoFijo" , namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_ActivoFijo", propOrder = {
"registro"
})
public class DTActivoFijo {
@XmlElement(name = "Registro", required = true)
protected List<DTActivoFijo.Registro> registro;
/**
* Gets the value of the registro 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 registro property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRegistro().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DTActivoFijo.Registro }
*
*
*/
public List<DTActivoFijo.Registro> getRegistro() {
if (registro == null) {
registro = new ArrayList<DTActivoFijo.Registro>();
}
return this.registro;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="OrdenCompra">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Proveedor">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Descripcion">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="45"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="CodigoDDA">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="CentroCoste">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ordenCompra",
"proveedor",
"descripcion",
"codigoDDA",
"centroCoste"
})
public static class Registro {
@XmlElement(name = "OrdenCompra", required = true)
protected String ordenCompra;
@XmlElement(name = "Proveedor", required = true)
protected String proveedor;
@XmlElement(name = "Descripcion", required = true)
protected String descripcion;
@XmlElement(name = "CodigoDDA", required = true)
protected String codigoDDA;
@XmlElement(name = "CentroCoste", required = true)
protected String centroCoste;
/**
* Obtiene el valor de la propiedad ordenCompra.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrdenCompra() {
return ordenCompra;
}
/**
* Define el valor de la propiedad ordenCompra.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrdenCompra(String value) {
this.ordenCompra = value;
}
/**
* Obtiene el valor de la propiedad proveedor.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProveedor() {
return proveedor;
}
/**
* Define el valor de la propiedad proveedor.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProveedor(String value) {
this.proveedor = value;
}
/**
* Obtiene el valor de la propiedad descripcion.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescripcion() {
return descripcion;
}
/**
* Define el valor de la propiedad descripcion.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescripcion(String value) {
this.descripcion = value;
}
/**
* Obtiene el valor de la propiedad codigoDDA.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoDDA() {
return codigoDDA;
}
/**
* Define el valor de la propiedad codigoDDA.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoDDA(String value) {
this.codigoDDA = value;
}
/**
* Obtiene el valor de la propiedad centroCoste.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCentroCoste() {
return centroCoste;
}
/**
* Define el valor de la propiedad centroCoste.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCentroCoste(String value) {
this.centroCoste = value;
}
}
}
package com.americamovil.dda.enviaactivofijo;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Estructura de datos para la respuesta de creaci�n de activo fijo
*
* <p>Clase Java para DT_ActivoFijo_res complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_ActivoFijo_res">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Respuesta" maxOccurs="unbounded">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ID_SAP">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="12"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="ID_DDA">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Excepcion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_ActivoFijo_res" , namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_ActivoFijo_res", propOrder = {
"respuesta"
})
public class DTActivoFijoRes {
@XmlElement(name = "Respuesta", required = true)
protected List<DTActivoFijoRes.Respuesta> respuesta;
/**
* Gets the value of the respuesta 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 respuesta property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRespuesta().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DTActivoFijoRes.Respuesta }
*
*
*/
public List<DTActivoFijoRes.Respuesta> getRespuesta() {
if (respuesta == null) {
respuesta = new ArrayList<DTActivoFijoRes.Respuesta>();
}
return this.respuesta;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ID_SAP">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="12"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="ID_DDA">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Excepcion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"idsap",
"iddda",
"excepcion"
})
public static class Respuesta {
@XmlElement(name = "ID_SAP", required = true)
protected String idsap;
@XmlElement(name = "ID_DDA", required = true)
protected String iddda;
@XmlElement(name = "Excepcion")
protected String excepcion;
/**
* Obtiene el valor de la propiedad idsap.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIDSAP() {
return idsap;
}
/**
* Define el valor de la propiedad idsap.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIDSAP(String value) {
this.idsap = value;
}
/**
* Obtiene el valor de la propiedad iddda.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIDDDA() {
return iddda;
}
/**
* Define el valor de la propiedad iddda.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIDDDA(String value) {
this.iddda = value;
}
/**
* Obtiene el valor de la propiedad excepcion.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExcepcion() {
return excepcion;
}
/**
* Define el valor de la propiedad excepcion.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExcepcion(String value) {
this.excepcion = value;
}
}
}
package com.americamovil.dda.enviaactivofijo;
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;
/**
* Estructura de datos para el traslado de activo fijo - cambio de titulo por mismo valor
*
* <p>Clase Java para DT_TituloMismoValor complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_TituloMismoValor">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="CodigoSAPAnt">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="12"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="DescActNuevo">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="45"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="CodigoDDANuevo">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_TituloMismoValor" , namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_TituloMismoValor", propOrder = {
"codigoSAPAnt",
"descActNuevo",
"codigoDDANuevo"
})
public class DTTituloMismoValor {
@XmlElement(name = "CodigoSAPAnt", required = true)
protected String codigoSAPAnt;
@XmlElement(name = "DescActNuevo", required = true)
protected String descActNuevo;
@XmlElement(name = "CodigoDDANuevo", required = true)
protected String codigoDDANuevo;
/**
* Obtiene el valor de la propiedad codigoSAPAnt.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoSAPAnt() {
return codigoSAPAnt;
}
/**
* Define el valor de la propiedad codigoSAPAnt.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoSAPAnt(String value) {
this.codigoSAPAnt = value;
}
/**
* Obtiene el valor de la propiedad descActNuevo.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescActNuevo() {
return descActNuevo;
}
/**
* Define el valor de la propiedad descActNuevo.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescActNuevo(String value) {
this.descActNuevo = value;
}
/**
* Obtiene el valor de la propiedad codigoDDANuevo.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoDDANuevo() {
return codigoDDANuevo;
}
/**
* Define el valor de la propiedad codigoDDANuevo.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoDDANuevo(String value) {
this.codigoDDANuevo = value;
}
}
package com.americamovil.dda.enviaactivofijo;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.americamovil.dda._1.f.enviaactivofijo 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 {
private final static QName _MTActivoFijo_QNAME = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "MT_ActivoFijo");
private final static QName _MTActivoFijoRes_QNAME = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "MT_ActivoFijo_res");
private final static QName _MTTituloMismoValor_QNAME = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "MT_TituloMismoValor");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.americamovil.dda._1.f.enviaactivofijo
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DTActivoFijo }
*
*/
public DTActivoFijo createDTActivoFijo() {
return new DTActivoFijo();
}
/**
* Create an instance of {@link DTActivoFijoRes }
*
*/
public DTActivoFijoRes createDTActivoFijoRes() {
return new DTActivoFijoRes();
}
/**
* Create an instance of {@link DTTituloMismoValor }
*
*/
public DTTituloMismoValor createDTTituloMismoValor() {
return new DTTituloMismoValor();
}
/**
* Create an instance of {@link DTActivoFijo.Registro }
*
*/
public DTActivoFijo.Registro createDTActivoFijoRegistro() {
return new DTActivoFijo.Registro();
}
/**
* Create an instance of {@link DTActivoFijoRes.Respuesta }
*
*/
public DTActivoFijoRes.Respuesta createDTActivoFijoResRespuesta() {
return new DTActivoFijoRes.Respuesta();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTActivoFijo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo", name = "MT_ActivoFijo")
public JAXBElement<DTActivoFijo> createMTActivoFijo(DTActivoFijo value) {
return new JAXBElement<DTActivoFijo>(_MTActivoFijo_QNAME, DTActivoFijo.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTActivoFijoRes }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo", name = "MT_ActivoFijo_res")
public JAXBElement<DTActivoFijoRes> createMTActivoFijoRes(DTActivoFijoRes value) {
return new JAXBElement<DTActivoFijoRes>(_MTActivoFijoRes_QNAME, DTActivoFijoRes.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTTituloMismoValor }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo", name = "MT_TituloMismoValor")
public JAXBElement<DTTituloMismoValor> createMTTituloMismoValor(DTTituloMismoValor value) {
return new JAXBElement<DTTituloMismoValor>(_MTTituloMismoValor_QNAME, DTTituloMismoValor.class, null, value);
}
}
package com.americamovil.dda.enviaactivofijo;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:11:46.398-05:00
* Generated source version: 2.7.17
*
*/
@WebService(targetNamespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo", name = "SI_ActivoFijo_Out")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface SIActivoFijoOut {
@WebResult(name = "MT_ActivoFijo_res", targetNamespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo", partName = "MT_ActivoFijo_res")
@WebMethod(operationName = "EnviiaActivoFijo", action = "http://sap.com/xi/WebService/soap1.1")
public DTActivoFijoRes enviiaActivoFijo(
@WebParam(partName = "MT_ActivoFijo", name = "MT_ActivoFijo", targetNamespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo")
DTActivoFijo mtActivoFijo
);
@WebResult(name = "MT_ActivoFijo_res", targetNamespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo", partName = "MT_ActivoFijo_res")
@WebMethod(operationName = "EnviaTrasladoAF", action = "http://sap.com/xi/WebService/soap1.1")
public DTActivoFijoRes enviaTrasladoAF(
@WebParam(partName = "MT_TituloMismoValor", name = "MT_TituloMismoValor", targetNamespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo")
DTTituloMismoValor mtTituloMismoValor
);
}
package com.americamovil.dda.enviaactivofijo;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:11:46.381-05:00
* Generated source version: 2.7.17
*
*/
public final class SIActivoFijoOut_HTTPPort_Client {
private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "SYS_AM_1_DDA_DEV_SI_ActivoFijo_Out_x_x");
private SIActivoFijoOut_HTTPPort_Client() {
}
public static void main(String args[]) throws java.lang.Exception {
URL wsdlURL = SYSAM1DDADEVSIActivoFijoOutXX.WSDL_LOCATION;
if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SYSAM1DDADEVSIActivoFijoOutXX ss = new SYSAM1DDADEVSIActivoFijoOutXX(wsdlURL, SERVICE_NAME);
SIActivoFijoOut port = ss.getHTTPPort();
{
System.out.println("Invoking enviiaActivoFijo...");
com.americamovil.dda.enviaactivofijo.DTActivoFijo _enviiaActivoFijo_mtActivoFijo = null;
com.americamovil.dda.enviaactivofijo.DTActivoFijoRes _enviiaActivoFijo__return = port.enviiaActivoFijo(_enviiaActivoFijo_mtActivoFijo);
System.out.println("enviiaActivoFijo.result=" + _enviiaActivoFijo__return);
}
{
System.out.println("Invoking enviaTrasladoAF...");
com.americamovil.dda.enviaactivofijo.DTTituloMismoValor _enviaTrasladoAF_mtTituloMismoValor = null;
com.americamovil.dda.enviaactivofijo.DTActivoFijoRes _enviaTrasladoAF__return = port.enviaTrasladoAF(_enviaTrasladoAF_mtTituloMismoValor);
System.out.println("enviaTrasladoAF.result=" + _enviaTrasladoAF__return);
}
System.exit(0);
}
}
package com.americamovil.dda.enviaactivofijo;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:11:46.340-05:00
* Generated source version: 2.7.17
*
*/
public final class SIActivoFijoOut_HTTPSPort_Client {
private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "SYS_AM_1_DDA_DEV_SI_ActivoFijo_Out_x_x");
private SIActivoFijoOut_HTTPSPort_Client() {
}
public static void main(String args[]) throws java.lang.Exception {
URL wsdlURL = SYSAM1DDADEVSIActivoFijoOutXX.WSDL_LOCATION;
if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SYSAM1DDADEVSIActivoFijoOutXX ss = new SYSAM1DDADEVSIActivoFijoOutXX(wsdlURL, SERVICE_NAME);
SIActivoFijoOut port = ss.getHTTPSPort();
{
System.out.println("Invoking enviiaActivoFijo...");
com.americamovil.dda.enviaactivofijo.DTActivoFijo _enviiaActivoFijo_mtActivoFijo = null;
com.americamovil.dda.enviaactivofijo.DTActivoFijoRes _enviiaActivoFijo__return = port.enviiaActivoFijo(_enviiaActivoFijo_mtActivoFijo);
System.out.println("enviiaActivoFijo.result=" + _enviiaActivoFijo__return);
}
{
System.out.println("Invoking enviaTrasladoAF...");
com.americamovil.dda.enviaactivofijo.DTTituloMismoValor _enviaTrasladoAF_mtTituloMismoValor = null;
com.americamovil.dda.enviaactivofijo.DTActivoFijoRes _enviaTrasladoAF__return = port.enviaTrasladoAF(_enviaTrasladoAF_mtTituloMismoValor);
System.out.println("enviaTrasladoAF.result=" + _enviaTrasladoAF__return);
}
System.exit(0);
}
}
package com.americamovil.dda.enviaactivofijo;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:11:46.406-05:00
* Generated source version: 2.7.17
*
*/
@WebServiceClient(name = "SYS_AM_1_DDA_DEV_SI_ActivoFijo_Out_x_x",
wsdlLocation = "http://localhost:8080/sapu/F_211E.xml?wsdl",
targetNamespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo")
public class SYSAM1DDADEVSIActivoFijoOutXX extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "SYS_AM_1_DDA_DEV_SI_ActivoFijo_Out_x_x");
public final static QName HTTPSPort = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "HTTPS_Port");
public final static QName HTTPPort = new QName("http://americamovil.com/DDA/1/F/EnviaActivoFijo", "HTTP_Port");
static {
URL url = null;
try {
url = new URL("http://localhost:8080/sapu/F_211E.xml?wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(SYSAM1DDADEVSIActivoFijoOutXX.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "http://localhost:8080/sapu/F_211E.xml?wsdl");
}
WSDL_LOCATION = url;
}
public SYSAM1DDADEVSIActivoFijoOutXX(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public SYSAM1DDADEVSIActivoFijoOutXX(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SYSAM1DDADEVSIActivoFijoOutXX() {
super(WSDL_LOCATION, SERVICE);
}
/**
*
* @return
* returns SIActivoFijoOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SIActivoFijoOut getHTTPSPort() {
return super.getPort(HTTPSPort, SIActivoFijoOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIActivoFijoOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SIActivoFijoOut getHTTPSPort(WebServiceFeature... features) {
return super.getPort(HTTPSPort, SIActivoFijoOut.class, features);
}
/**
*
* @return
* returns SIActivoFijoOut
*/
@WebEndpoint(name = "HTTP_Port")
public SIActivoFijoOut getHTTPPort() {
return super.getPort(HTTPPort, SIActivoFijoOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIActivoFijoOut
*/
@WebEndpoint(name = "HTTP_Port")
public SIActivoFijoOut getHTTPPort(WebServiceFeature... features) {
return super.getPort(HTTPPort, SIActivoFijoOut.class, features);
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://americamovil.com/DDA/1/F/EnviaActivoFijo")
package com.americamovil.dda.enviaactivofijo;
package com.americamovil.dda.enviacontenido;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Estructura de datos para la activaci�n de contenido
*
* <p>Clase Java para DT_Contenido complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_Contenido">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Registro" maxOccurs="unbounded">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="CodigoSAP">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="12"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Valor">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="33"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="FechaInicio">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="8"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="VU">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="4"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_Contenido" , namespace = "http://americamovil.com/DDA/1/F/EnviaContenido" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_Contenido", propOrder = {
"registro"
})
public class DTContenido {
@XmlElement(name = "Registro", required = true)
protected List<DTContenido.Registro> registro;
/**
* Gets the value of the registro 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 registro property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRegistro().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DTContenido.Registro }
*
*
*/
public List<DTContenido.Registro> getRegistro() {
if (registro == null) {
registro = new ArrayList<DTContenido.Registro>();
}
return this.registro;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="CodigoSAP">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="12"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Valor">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="33"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="FechaInicio">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="8"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="VU">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="4"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"codigoSAP",
"valor",
"fechaInicio",
"vu"
})
public static class Registro {
@XmlElement(name = "CodigoSAP", required = true)
protected String codigoSAP;
@XmlElement(name = "Valor", required = true)
protected String valor;
@XmlElement(name = "FechaInicio", required = true)
protected String fechaInicio;
@XmlElement(name = "VU", required = true)
protected String vu;
/**
* Obtiene el valor de la propiedad codigoSAP.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoSAP() {
return codigoSAP;
}
/**
* Define el valor de la propiedad codigoSAP.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoSAP(String value) {
this.codigoSAP = value;
}
/**
* Obtiene el valor de la propiedad valor.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValor() {
return valor;
}
/**
* Define el valor de la propiedad valor.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValor(String value) {
this.valor = value;
}
/**
* Obtiene el valor de la propiedad fechaInicio.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFechaInicio() {
return fechaInicio;
}
/**
* Define el valor de la propiedad fechaInicio.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFechaInicio(String value) {
this.fechaInicio = value;
}
/**
* Obtiene el valor de la propiedad vu.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVU() {
return vu;
}
/**
* Define el valor de la propiedad vu.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVU(String value) {
this.vu = value;
}
}
}
package com.americamovil.dda.enviacontenido;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Estructura de datos para la respuesta de activaci�n de contenido
*
* <p>Clase Java para DT_Contenido_res complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_Contenido_res">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Respuesta" maxOccurs="unbounded">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Status" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="CodigoDDA" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="Mensaje" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_Contenido_res" , namespace = "http://americamovil.com/DDA/1/F/EnviaContenido" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_Contenido_res", propOrder = {
"respuesta"
})
public class DTContenidoRes {
@XmlElement(name = "Respuesta", required = true)
protected List<DTContenidoRes.Respuesta> respuesta;
/**
* Gets the value of the respuesta 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 respuesta property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRespuesta().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DTContenidoRes.Respuesta }
*
*
*/
public List<DTContenidoRes.Respuesta> getRespuesta() {
if (respuesta == null) {
respuesta = new ArrayList<DTContenidoRes.Respuesta>();
}
return this.respuesta;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Status" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="CodigoDDA" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="Mensaje" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"status",
"codigoDDA",
"mensaje"
})
public static class Respuesta {
@XmlElement(name = "Status", required = true)
protected String status;
@XmlElement(name = "CodigoDDA", required = true)
protected String codigoDDA;
@XmlElement(name = "Mensaje")
protected String mensaje;
/**
* Obtiene el valor de la propiedad status.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Define el valor de la propiedad status.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
/**
* Obtiene el valor de la propiedad codigoDDA.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoDDA() {
return codigoDDA;
}
/**
* Define el valor de la propiedad codigoDDA.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoDDA(String value) {
this.codigoDDA = value;
}
/**
* Obtiene el valor de la propiedad mensaje.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMensaje() {
return mensaje;
}
/**
* Define el valor de la propiedad mensaje.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMensaje(String value) {
this.mensaje = value;
}
}
}
package com.americamovil.dda.enviacontenido;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.americamovil.dda._1.f.enviacontenido 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 {
private final static QName _MTContenidoRes_QNAME = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "MT_Contenido_res");
private final static QName _MTContenido_QNAME = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "MT_Contenido");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.americamovil.dda._1.f.enviacontenido
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DTContenidoRes }
*
*/
public DTContenidoRes createDTContenidoRes() {
return new DTContenidoRes();
}
/**
* Create an instance of {@link DTContenido }
*
*/
public DTContenido createDTContenido() {
return new DTContenido();
}
/**
* Create an instance of {@link DTContenidoRes.Respuesta }
*
*/
public DTContenidoRes.Respuesta createDTContenidoResRespuesta() {
return new DTContenidoRes.Respuesta();
}
/**
* Create an instance of {@link DTContenido.Registro }
*
*/
public DTContenido.Registro createDTContenidoRegistro() {
return new DTContenido.Registro();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTContenidoRes }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/F/EnviaContenido", name = "MT_Contenido_res")
public JAXBElement<DTContenidoRes> createMTContenidoRes(DTContenidoRes value) {
return new JAXBElement<DTContenidoRes>(_MTContenidoRes_QNAME, DTContenidoRes.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTContenido }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/F/EnviaContenido", name = "MT_Contenido")
public JAXBElement<DTContenido> createMTContenido(DTContenido value) {
return new JAXBElement<DTContenido>(_MTContenido_QNAME, DTContenido.class, null, value);
}
}
package com.americamovil.dda.enviacontenido;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:30:16.398-05:00
* Generated source version: 2.7.17
*
*/
@WebService(targetNamespace = "http://americamovil.com/DDA/1/F/EnviaContenido", name = "SI_Contenido_Out")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface SIContenidoOut {
@WebResult(name = "MT_Contenido_res", targetNamespace = "http://americamovil.com/DDA/1/F/EnviaContenido", partName = "MT_Contenido_res")
@WebMethod(operationName = "EnviaContenido", action = "http://sap.com/xi/WebService/soap1.1")
public DTContenidoRes enviaContenido(
@WebParam(partName = "MT_Contenido", name = "MT_Contenido", targetNamespace = "http://americamovil.com/DDA/1/F/EnviaContenido")
DTContenido mtContenido
);
}
package com.americamovil.dda.enviacontenido;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:30:16.385-05:00
* Generated source version: 2.7.17
*
*/
public final class SIContenidoOut_HTTPPort_Client {
private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "SYS_AM_1_DDA_DEV_SI_Contenido_Out_x_x");
private SIContenidoOut_HTTPPort_Client() {
}
public static void main(String args[]) throws java.lang.Exception {
URL wsdlURL = SYSAM1DDADEVSIContenidoOutXX.WSDL_LOCATION;
if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SYSAM1DDADEVSIContenidoOutXX ss = new SYSAM1DDADEVSIContenidoOutXX(wsdlURL, SERVICE_NAME);
SIContenidoOut port = ss.getHTTPPort();
{
System.out.println("Invoking enviaContenido...");
com.americamovil.dda.enviacontenido.DTContenido _enviaContenido_mtContenido = null;
com.americamovil.dda.enviacontenido.DTContenidoRes _enviaContenido__return = port.enviaContenido(_enviaContenido_mtContenido);
System.out.println("enviaContenido.result=" + _enviaContenido__return);
}
System.exit(0);
}
}
package com.americamovil.dda.enviacontenido;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:30:16.346-05:00
* Generated source version: 2.7.17
*
*/
public final class SIContenidoOut_HTTPSPort_Client {
private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "SYS_AM_1_DDA_DEV_SI_Contenido_Out_x_x");
private SIContenidoOut_HTTPSPort_Client() {
}
public static void main(String args[]) throws java.lang.Exception {
URL wsdlURL = SYSAM1DDADEVSIContenidoOutXX.WSDL_LOCATION;
if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SYSAM1DDADEVSIContenidoOutXX ss = new SYSAM1DDADEVSIContenidoOutXX(wsdlURL, SERVICE_NAME);
SIContenidoOut port = ss.getHTTPSPort();
{
System.out.println("Invoking enviaContenido...");
com.americamovil.dda.enviacontenido.DTContenido _enviaContenido_mtContenido = null;
com.americamovil.dda.enviacontenido.DTContenidoRes _enviaContenido__return = port.enviaContenido(_enviaContenido_mtContenido);
System.out.println("enviaContenido.result=" + _enviaContenido__return);
}
System.exit(0);
}
}
package com.americamovil.dda.enviacontenido;
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.WebServiceFeature;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-01T23:30:16.405-05:00
* Generated source version: 2.7.17
*
*/
@WebServiceClient(name = "SYS_AM_1_DDA_DEV_SI_Contenido_Out_x_x",
wsdlLocation = "http://localhost:8080/sapu/F_211F.xml?wsdl",
targetNamespace = "http://americamovil.com/DDA/1/F/EnviaContenido")
public class SYSAM1DDADEVSIContenidoOutXX extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "SYS_AM_1_DDA_DEV_SI_Contenido_Out_x_x");
public final static QName HTTPSPort = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "HTTPS_Port");
public final static QName HTTPPort = new QName("http://americamovil.com/DDA/1/F/EnviaContenido", "HTTP_Port");
static {
URL url = null;
try {
url = new URL("http://localhost:8080/sapu/F_211F.xml?wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(SYSAM1DDADEVSIContenidoOutXX.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "http://localhost:8080/sapu/F_211F.xml?wsdl");
}
WSDL_LOCATION = url;
}
public SYSAM1DDADEVSIContenidoOutXX(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public SYSAM1DDADEVSIContenidoOutXX(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SYSAM1DDADEVSIContenidoOutXX() {
super(WSDL_LOCATION, SERVICE);
}
/**
*
* @return
* returns SIContenidoOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SIContenidoOut getHTTPSPort() {
return super.getPort(HTTPSPort, SIContenidoOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIContenidoOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SIContenidoOut getHTTPSPort(WebServiceFeature... features) {
return super.getPort(HTTPSPort, SIContenidoOut.class, features);
}
/**
*
* @return
* returns SIContenidoOut
*/
@WebEndpoint(name = "HTTP_Port")
public SIContenidoOut getHTTPPort() {
return super.getPort(HTTPPort, SIContenidoOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIContenidoOut
*/
@WebEndpoint(name = "HTTP_Port")
public SIContenidoOut getHTTPPort(WebServiceFeature... features) {
return super.getPort(HTTPPort, SIContenidoOut.class, features);
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://americamovil.com/DDA/1/F/EnviaContenido")
package com.americamovil.dda.enviacontenido;
package com.americamovil.dda.enviaentradamercancia;
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;
/**
* Estructura de datos para la respuesta de entrada de mercancia
*
* <p>Clase Java para DT_EntradaMercancia_res complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_EntradaMercancia_res">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Respuesta">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="DocMaterial">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="EjercDoc">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="4"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Mensaje">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="100"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_EntradaMercancia_res" , namespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_EntradaMercancia_res", propOrder = {
"respuesta"
})
public class DTEntradaMercanciaRes {
@XmlElement(name = "Respuesta", required = true)
protected DTEntradaMercanciaRes.Respuesta respuesta;
/**
* Obtiene el valor de la propiedad respuesta.
*
* @return
* possible object is
* {@link DTEntradaMercanciaRes.Respuesta }
*
*/
public DTEntradaMercanciaRes.Respuesta getRespuesta() {
return respuesta;
}
/**
* Define el valor de la propiedad respuesta.
*
* @param value
* allowed object is
* {@link DTEntradaMercanciaRes.Respuesta }
*
*/
public void setRespuesta(DTEntradaMercanciaRes.Respuesta value) {
this.respuesta = value;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="DocMaterial">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="10"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="EjercDoc">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="4"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="Mensaje">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="100"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"docMaterial",
"ejercDoc",
"mensaje"
})
public static class Respuesta {
@XmlElement(name = "DocMaterial", required = true)
protected String docMaterial;
@XmlElement(name = "EjercDoc", required = true)
protected String ejercDoc;
@XmlElement(name = "Mensaje", required = true)
protected String mensaje;
/**
* Obtiene el valor de la propiedad docMaterial.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocMaterial() {
return docMaterial;
}
/**
* Define el valor de la propiedad docMaterial.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocMaterial(String value) {
this.docMaterial = value;
}
/**
* Obtiene el valor de la propiedad ejercDoc.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEjercDoc() {
return ejercDoc;
}
/**
* Define el valor de la propiedad ejercDoc.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEjercDoc(String value) {
this.ejercDoc = value;
}
/**
* Obtiene el valor de la propiedad mensaje.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMensaje() {
return mensaje;
}
/**
* Define el valor de la propiedad mensaje.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMensaje(String value) {
this.mensaje = value;
}
}
}
package com.americamovil.dda.enviaentradamercancia;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.americamovil.dda._1.enviaentradamercancia 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 {
private final static QName _MTEntradaMercancia_QNAME = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "MT_EntradaMercancia");
private final static QName _MTEntradaMercanciaRes_QNAME = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "MT_EntradaMercancia_res");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.americamovil.dda._1.enviaentradamercancia
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DTEntradaMercancia }
*
*/
public DTEntradaMercancia createDTEntradaMercancia() {
return new DTEntradaMercancia();
}
/**
* Create an instance of {@link DTEntradaMercanciaRes }
*
*/
public DTEntradaMercanciaRes createDTEntradaMercanciaRes() {
return new DTEntradaMercanciaRes();
}
/**
* Create an instance of {@link DTEntradaMercancia.Item }
*
*/
public DTEntradaMercancia.Item createDTEntradaMercanciaItem() {
return new DTEntradaMercancia.Item();
}
/**
* Create an instance of {@link DTEntradaMercanciaRes.Respuesta }
*
*/
public DTEntradaMercanciaRes.Respuesta createDTEntradaMercanciaResRespuesta() {
return new DTEntradaMercanciaRes.Respuesta();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTEntradaMercancia }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia", name = "MT_EntradaMercancia")
public JAXBElement<DTEntradaMercancia> createMTEntradaMercancia(DTEntradaMercancia value) {
return new JAXBElement<DTEntradaMercancia>(_MTEntradaMercancia_QNAME, DTEntradaMercancia.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTEntradaMercanciaRes }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia", name = "MT_EntradaMercancia_res")
public JAXBElement<DTEntradaMercanciaRes> createMTEntradaMercanciaRes(DTEntradaMercanciaRes value) {
return new JAXBElement<DTEntradaMercanciaRes>(_MTEntradaMercanciaRes_QNAME, DTEntradaMercanciaRes.class, null, value);
}
}
package com.americamovil.dda.enviaentradamercancia;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-13T13:08:38.414-05:00
* Generated source version: 2.7.17
*
*/
@WebService(targetNamespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia", name = "SI_EntradaMercancia_Out")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface SIEntradaMercanciaOut {
@WebResult(name = "MT_EntradaMercancia_res", targetNamespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia", partName = "MT_EntradaMercancia_res")
@WebMethod(operationName = "EnviaEntradaMercancia", action = "http://sap.com/xi/WebService/soap1.1")
public DTEntradaMercanciaRes enviaEntradaMercancia(
@WebParam(partName = "MT_EntradaMercancia", name = "MT_EntradaMercancia", targetNamespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia")
DTEntradaMercancia mtEntradaMercancia
);
}
package com.americamovil.dda.enviaentradamercancia;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-13T13:08:38.404-05:00
* Generated source version: 2.7.17
*
*/
public final class SIEntradaMercanciaOut_HTTPPort_Client {
private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "SYS_AM_1_DDA_DEV_SI_EntradaMercancia_Out_x_x");
private SIEntradaMercanciaOut_HTTPPort_Client() {
}
public static void main(String args[]) throws java.lang.Exception {
URL wsdlURL = SYSAM1DDADEVSIEntradaMercanciaOutXX.WSDL_LOCATION;
if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SYSAM1DDADEVSIEntradaMercanciaOutXX ss = new SYSAM1DDADEVSIEntradaMercanciaOutXX(wsdlURL, SERVICE_NAME);
SIEntradaMercanciaOut port = ss.getHTTPPort();
{
System.out.println("Invoking enviaEntradaMercancia...");
com.americamovil.dda.enviaentradamercancia.DTEntradaMercancia _enviaEntradaMercancia_mtEntradaMercancia = null;
com.americamovil.dda.enviaentradamercancia.DTEntradaMercanciaRes _enviaEntradaMercancia__return = port.enviaEntradaMercancia(_enviaEntradaMercancia_mtEntradaMercancia);
System.out.println("enviaEntradaMercancia.result=" + _enviaEntradaMercancia__return);
}
System.exit(0);
}
}
package com.americamovil.dda.enviaentradamercancia;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-13T13:08:38.364-05:00
* Generated source version: 2.7.17
*
*/
public final class SIEntradaMercanciaOut_HTTPSPort_Client {
private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "SYS_AM_1_DDA_DEV_SI_EntradaMercancia_Out_x_x");
private SIEntradaMercanciaOut_HTTPSPort_Client() {
}
public static void main(String args[]) throws java.lang.Exception {
URL wsdlURL = SYSAM1DDADEVSIEntradaMercanciaOutXX.WSDL_LOCATION;
if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SYSAM1DDADEVSIEntradaMercanciaOutXX ss = new SYSAM1DDADEVSIEntradaMercanciaOutXX(wsdlURL, SERVICE_NAME);
SIEntradaMercanciaOut port = ss.getHTTPSPort();
{
System.out.println("Invoking enviaEntradaMercancia...");
com.americamovil.dda.enviaentradamercancia.DTEntradaMercancia _enviaEntradaMercancia_mtEntradaMercancia = null;
com.americamovil.dda.enviaentradamercancia.DTEntradaMercanciaRes _enviaEntradaMercancia__return = port.enviaEntradaMercancia(_enviaEntradaMercancia_mtEntradaMercancia);
System.out.println("enviaEntradaMercancia.result=" + _enviaEntradaMercancia__return);
}
System.exit(0);
}
}
package com.americamovil.dda.enviaentradamercancia;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 2.7.17
* 2015-10-13T13:08:38.424-05:00
* Generated source version: 2.7.17
*
*/
@WebServiceClient(name = "SYS_AM_1_DDA_DEV_SI_EntradaMercancia_Out_x_x",
wsdlLocation = "http://localhost:8080/sapu/M_377D.xml?wsdl",
targetNamespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia")
public class SYSAM1DDADEVSIEntradaMercanciaOutXX extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "SYS_AM_1_DDA_DEV_SI_EntradaMercancia_Out_x_x");
public final static QName HTTPSPort = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "HTTPS_Port");
public final static QName HTTPPort = new QName("http://americamovil.com/DDA/1/EnviaEntradaMercancia", "HTTP_Port");
static {
URL url = null;
try {
url = new URL("http://localhost:8080/sapu/M_377D.xml?wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(SYSAM1DDADEVSIEntradaMercanciaOutXX.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "http://localhost:8080/sapu/M_377D.xml?wsdl");
}
WSDL_LOCATION = url;
}
public SYSAM1DDADEVSIEntradaMercanciaOutXX(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public SYSAM1DDADEVSIEntradaMercanciaOutXX(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SYSAM1DDADEVSIEntradaMercanciaOutXX() {
super(WSDL_LOCATION, SERVICE);
}
/**
*
* @return
* returns SIEntradaMercanciaOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SIEntradaMercanciaOut getHTTPSPort() {
return super.getPort(HTTPSPort, SIEntradaMercanciaOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIEntradaMercanciaOut
*/
@WebEndpoint(name = "HTTPS_Port")
public SIEntradaMercanciaOut getHTTPSPort(WebServiceFeature... features) {
return super.getPort(HTTPSPort, SIEntradaMercanciaOut.class, features);
}
/**
*
* @return
* returns SIEntradaMercanciaOut
*/
@WebEndpoint(name = "HTTP_Port")
public SIEntradaMercanciaOut getHTTPPort() {
return super.getPort(HTTPPort, SIEntradaMercanciaOut.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIEntradaMercanciaOut
*/
@WebEndpoint(name = "HTTP_Port")
public SIEntradaMercanciaOut getHTTPPort(WebServiceFeature... features) {
return super.getPort(HTTPPort, SIEntradaMercanciaOut.class, features);
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://americamovil.com/DDA/1/EnviaEntradaMercancia")
package com.americamovil.dda.enviaentradamercancia;
package com.americamovil.dda.enviamodifactivofijo;
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;
/**
* Estructura de datos para la baja de activo fijo con perdida
*
* <p>Clase Java para DT_BajaConPerdida complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_BajaConPerdida">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="CodigoSAP">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;maxLength value="12"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_BajaConPerdida" , namespace = "http://americamovil.com/DDA/1/F/EnviaModifActivoFijo" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_BajaConPerdida", propOrder = {
"codigoSAP"
})
public class DTBajaConPerdida {
@XmlElement(name = "CodigoSAP", required = true)
protected String codigoSAP;
/**
* Obtiene el valor de la propiedad codigoSAP.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoSAP() {
return codigoSAP;
}
/**
* Define el valor de la propiedad codigoSAP.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoSAP(String value) {
this.codigoSAP = value;
}
}
package com.americamovil.dda.enviamodifactivofijo;
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;
/**
* Estructura de datos para la respuesta de modificacion a detalles de activos fijos
*
* <p>Clase Java para DT_ModificaAF_res complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="DT_ModificaAF_res">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Status" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlRootElement(name="MT_ModificaAF_res" , namespace = "http://americamovil.com/DDA/1/F/EnviaModifActivoFijo" )
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MT_ModificaAF_res", propOrder = {
"status"
})
public class DTModificaAFRes {
@XmlElement(name = "Status", required = true)
protected String status;
/**
* Obtiene el valor de la propiedad status.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Define el valor de la propiedad status.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://americamovil.com/DDA/1/F/EnviaModifActivoFijo")
package com.americamovil.dda.enviamodifactivofijo;
@javax.xml.bind.annotation.XmlSchema(namespace = "http://americamovil.com/DDA/1/F/EnviaNombreActivoF")
package com.americamovil.dda.envianombreactivof;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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