From 1b9489ca3b19e08f6b89d5b39828e8e48e6a388f Mon Sep 17 00:00:00 2001 From: james Date: Thu, 16 Feb 2023 10:38:38 -0500 Subject: [PATCH] Integracion con DINARDAP --- .../armas/eval/EvaluacionController.java | 33 +--- .../webservices/dinardap/ConsultaCedula.java | 32 ++-- .../dinardap/ConsultaCedulaResponse.java | 32 ++-- .../webservices/dinardap/ConsultaRuc.java | 32 ++-- .../dinardap/ConsultaRucResponse.java | 32 ++-- .../webservices/dinardap/DinardapClient.java | 14 ++ .../webservices/dinardap/ObjectFactory.java | 45 ++--- .../webservices/dinardap/Respuesta.java | 168 ++++++++---------- .../webservices/dinardap/SincoarServices.java | 25 +-- .../dinardap/SincoarServices_Service.java | 27 ++- 10 files changed, 186 insertions(+), 254 deletions(-) diff --git a/frontend/src/main/java/com/fp/frontend/controller/armas/eval/EvaluacionController.java b/frontend/src/main/java/com/fp/frontend/controller/armas/eval/EvaluacionController.java index f5c4097..cbb8e25 100644 --- a/frontend/src/main/java/com/fp/frontend/controller/armas/eval/EvaluacionController.java +++ b/frontend/src/main/java/com/fp/frontend/controller/armas/eval/EvaluacionController.java @@ -176,25 +176,14 @@ public class EvaluacionController extends AbstractController { MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido")); return; } -//TODO: evaluar casos, salto de validacion por error servicio SNAP - personafiltroSNAP = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); - if (personafiltroSNAP == null) { - personafiltroSNAP = PersonDetailController.buscarLocal(personafiltro.getIdentification()); - } -// personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); - + personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); } else if (personafiltro.getIdentificationcatalog().equals("RUC")) { // valido validez RUC if (!ValidateIdentification.ruc(personafiltro.getIdentification())) { MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido")); return; } -//TODO: evaluar casos, salto de validacion por error servicio SNAP - personafiltroSNAP = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); - if (personafiltroSNAP == null) { - personafiltroSNAP = PersonDetailController.buscarLocal(personafiltro.getIdentification()); - } -// personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); + personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); } else { // PASAPORTE personafiltroSNAP = new TcustPersonDetail(); @@ -1004,12 +993,8 @@ public class EvaluacionController extends AbstractController { return; } //envia a buscar en la SNAP -// tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo()); - //TODO: evaluar casos, salto de validacion por error servicio SNAP - tcustPersonDetailPsicologo = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); - if (tcustPersonDetailPsicologo == null) { - tcustPersonDetailPsicologo = PersonDetailController.buscarLocal(personafiltro.getIdentification()); - } + tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo()); + } else if (this.getRecord().getTipdocpsicologo().equals(codigoRuc)) { // SI ES RUC if (!ValidateIdentification.ruc(this.getRecord().getNumdocpsicologo())) { @@ -1017,12 +1002,8 @@ public class EvaluacionController extends AbstractController { return; } // envia a buscar en la snap -// tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo()); -//TODO: evaluar casos, salto de validacion por error servicio SNAP - tcustPersonDetailPsicologo = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog()); - if (tcustPersonDetailPsicologo == null) { - tcustPersonDetailPsicologo = PersonDetailController.buscarLocal(personafiltro.getIdentification()); - } + tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo()); + } if (tcustPersonDetailPsicologo != null) { this.record.setPsicologoresponsable(tcustPersonDetailPsicologo.getName()); @@ -1037,7 +1018,7 @@ public class EvaluacionController extends AbstractController { * * @param documento * @param tipoDocumento - * @return + * @return */ public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) { if (tipoDocumento.equals("CED")) { diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedula.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedula.java index 6c9ce3a..98bf536 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedula.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedula.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -6,12 +5,13 @@ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; - /** - *

Clase Java para consultaCedula complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para consultaCedula complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

  * <complexType name="consultaCedula">
  *   <complexContent>
@@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
  *   </complexContent>
  * </complexType>
  * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "consultaCedula", propOrder = { @@ -36,11 +36,9 @@ public class ConsultaCedula { /** * Obtiene el valor de la propiedad cedula. - * - * @return - * possible object is - * {@link String } - * + * + * @return possible object is {@link String } + * */ public String getCedula() { return cedula; @@ -48,11 +46,9 @@ public class ConsultaCedula { /** * Define el valor de la propiedad cedula. - * - * @param value - * allowed object is - * {@link String } - * + * + * @param value allowed object is {@link String } + * */ public void setCedula(String value) { this.cedula = value; diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedulaResponse.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedulaResponse.java index 520a302..478a7f9 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedulaResponse.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaCedulaResponse.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -6,12 +5,13 @@ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; - /** - *

Clase Java para consultaCedulaResponse complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para consultaCedulaResponse complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

  * <complexType name="consultaCedulaResponse">
  *   <complexContent>
@@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
  *   </complexContent>
  * </complexType>
  * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "consultaCedulaResponse", propOrder = { @@ -36,11 +36,9 @@ public class ConsultaCedulaResponse { /** * Obtiene el valor de la propiedad response. - * - * @return - * possible object is - * {@link Respuesta } - * + * + * @return possible object is {@link Respuesta } + * */ public Respuesta getResponse() { return response; @@ -48,11 +46,9 @@ public class ConsultaCedulaResponse { /** * Define el valor de la propiedad response. - * - * @param value - * allowed object is - * {@link Respuesta } - * + * + * @param value allowed object is {@link Respuesta } + * */ public void setResponse(Respuesta value) { this.response = value; diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRuc.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRuc.java index ab2e9ab..435d680 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRuc.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRuc.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -6,12 +5,13 @@ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; - /** - *

Clase Java para consultaRuc complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para consultaRuc complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

  * <complexType name="consultaRuc">
  *   <complexContent>
@@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
  *   </complexContent>
  * </complexType>
  * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "consultaRuc", propOrder = { @@ -36,11 +36,9 @@ public class ConsultaRuc { /** * Obtiene el valor de la propiedad ruc. - * - * @return - * possible object is - * {@link String } - * + * + * @return possible object is {@link String } + * */ public String getRuc() { return ruc; @@ -48,11 +46,9 @@ public class ConsultaRuc { /** * Define el valor de la propiedad ruc. - * - * @param value - * allowed object is - * {@link String } - * + * + * @param value allowed object is {@link String } + * */ public void setRuc(String value) { this.ruc = value; diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRucResponse.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRucResponse.java index 4171f1d..9180256 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRucResponse.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ConsultaRucResponse.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -6,12 +5,13 @@ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; - /** - *

Clase Java para consultaRucResponse complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para consultaRucResponse complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

  * <complexType name="consultaRucResponse">
  *   <complexContent>
@@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
  *   </complexContent>
  * </complexType>
  * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "consultaRucResponse", propOrder = { @@ -36,11 +36,9 @@ public class ConsultaRucResponse { /** * Obtiene el valor de la propiedad response. - * - * @return - * possible object is - * {@link Respuesta } - * + * + * @return possible object is {@link Respuesta } + * */ public Respuesta getResponse() { return response; @@ -48,11 +46,9 @@ public class ConsultaRucResponse { /** * Define el valor de la propiedad response. - * - * @param value - * allowed object is - * {@link Respuesta } - * + * + * @param value allowed object is {@link Respuesta } + * */ public void setResponse(Respuesta value) { this.response = value; diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/DinardapClient.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/DinardapClient.java index 22357c0..cfd1386 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/DinardapClient.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/DinardapClient.java @@ -5,6 +5,7 @@ package com.fp.frontend.webservices.dinardap; import java.util.HashSet; +import javax.xml.ws.BindingProvider; /** * @@ -14,6 +15,13 @@ public class DinardapClient { private final static String ERROR_OK = "0"; + public static void main(String[] args) { + System.out.println("========= CONSULTAR ============="); + CedulaDNP ced = new DinardapClient().getCedula("1715060073"); + System.out.println(ced.getCedula()); + System.out.println(ced.getEstadoCivil()); + System.out.println(ced.getProfesion()); + } /** * @param ruc @@ -22,6 +30,9 @@ public class DinardapClient { public RucDNP getRuc(String ruc) { RucDNP result = null; SincoarServices services = new SincoarServices_Service().getSincoarServicesPort(); + ((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.connectionTimeout", "5000"); + ((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.receiveTimeout", "5000"); + Respuesta respuesta = services.consultaCedula(ruc); if (respuesta.getCodigoError().equals(ERROR_OK)) { result = new RucDNP(); @@ -50,6 +61,9 @@ public class DinardapClient { public CedulaDNP getCedula(String cedula) { CedulaDNP result = null; SincoarServices services = new SincoarServices_Service().getSincoarServicesPort(); + ((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.connectionTimeout", "5000"); + ((BindingProvider) services).getRequestContext().put("javax.xml.ws.client.receiveTimeout", "5000"); + Respuesta respuesta = services.consultaCedula(cedula); if (respuesta.getCodigoError().equals(ERROR_OK)) { result = new CedulaDNP(); diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ObjectFactory.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ObjectFactory.java index 134da18..1ad4ba1 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ObjectFactory.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/ObjectFactory.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -7,20 +6,14 @@ 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.fp.frontend.webservices.dinardap package. - *

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. - * + * This object contains factory methods for each Java content interface and Java element interface generated in the + * com.fp.frontend.webservices.dinardap package. + *

+ * 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 { @@ -32,14 +25,14 @@ public class ObjectFactory { /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.fp.frontend.webservices.dinardap - * + * */ public ObjectFactory() { } /** * Create an instance of {@link Respuesta } - * + * */ public Respuesta createRespuesta() { return new Respuesta(); @@ -47,7 +40,7 @@ public class ObjectFactory { /** * Create an instance of {@link Respuesta.Datos } - * + * */ public Respuesta.Datos createRespuestaDatos() { return new Respuesta.Datos(); @@ -55,7 +48,7 @@ public class ObjectFactory { /** * Create an instance of {@link ConsultaCedula } - * + * */ public ConsultaCedula createConsultaCedula() { return new ConsultaCedula(); @@ -63,7 +56,7 @@ public class ObjectFactory { /** * Create an instance of {@link ConsultaRucResponse } - * + * */ public ConsultaRucResponse createConsultaRucResponse() { return new ConsultaRucResponse(); @@ -71,7 +64,7 @@ public class ObjectFactory { /** * Create an instance of {@link ConsultaRuc } - * + * */ public ConsultaRuc createConsultaRuc() { return new ConsultaRuc(); @@ -79,7 +72,7 @@ public class ObjectFactory { /** * Create an instance of {@link ConsultaCedulaResponse } - * + * */ public ConsultaCedulaResponse createConsultaCedulaResponse() { return new ConsultaCedulaResponse(); @@ -87,7 +80,7 @@ public class ObjectFactory { /** * Create an instance of {@link Respuesta.Datos.Entry } - * + * */ public Respuesta.Datos.Entry createRespuestaDatosEntry() { return new Respuesta.Datos.Entry(); @@ -95,7 +88,7 @@ public class ObjectFactory { /** * Create an instance of {@link JAXBElement }{@code <}{@link ConsultaCedula }{@code >}} - * + * */ @XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaCedula") public JAXBElement createConsultaCedula(ConsultaCedula value) { @@ -104,7 +97,7 @@ public class ObjectFactory { /** * Create an instance of {@link JAXBElement }{@code <}{@link ConsultaRucResponse }{@code >}} - * + * */ @XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaRucResponse") public JAXBElement createConsultaRucResponse(ConsultaRucResponse value) { @@ -113,7 +106,7 @@ public class ObjectFactory { /** * Create an instance of {@link JAXBElement }{@code <}{@link ConsultaRuc }{@code >}} - * + * */ @XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaRuc") public JAXBElement createConsultaRuc(ConsultaRuc value) { @@ -122,7 +115,7 @@ public class ObjectFactory { /** * Create an instance of {@link JAXBElement }{@code <}{@link ConsultaCedulaResponse }{@code >}} - * + * */ @XmlElementDecl(namespace = "http://service.sincoar.qsoft.com/", name = "consultaCedulaResponse") public JAXBElement createConsultaCedulaResponse(ConsultaCedulaResponse value) { diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/Respuesta.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/Respuesta.java index 57b9cc1..59d9c03 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/Respuesta.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/Respuesta.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -9,12 +8,13 @@ import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; - /** - *

Clase Java para respuesta complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para respuesta complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

  * <complexType name="respuesta">
  *   <complexContent>
@@ -50,8 +50,8 @@ import javax.xml.bind.annotation.XmlType;
  *   </complexContent>
  * </complexType>
  * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "respuesta", propOrder = { @@ -71,25 +71,22 @@ public class Respuesta { /** * Gets the value of the actividad property. - * + * *

- * 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 set method for the actividad property. - * + * 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 set method for the actividad property. + * *

* For example, to add a new item, do as follows: *

      *    getActividad().add(newItem);
      * 
- * - * + * + * *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * + * Objects of the following type(s) are allowed in the list {@link String } + * + * */ public List getActividad() { if (actividad == null) { @@ -100,11 +97,9 @@ public class Respuesta { /** * Obtiene el valor de la propiedad codigoError. - * - * @return - * possible object is - * {@link String } - * + * + * @return possible object is {@link String } + * */ public String getCodigoError() { return codigoError; @@ -112,11 +107,9 @@ public class Respuesta { /** * Define el valor de la propiedad codigoError. - * - * @param value - * allowed object is - * {@link String } - * + * + * @param value allowed object is {@link String } + * */ public void setCodigoError(String value) { this.codigoError = value; @@ -124,11 +117,9 @@ public class Respuesta { /** * Obtiene el valor de la propiedad datos. - * - * @return - * possible object is - * {@link Respuesta.Datos } - * + * + * @return possible object is {@link Respuesta.Datos } + * */ public Respuesta.Datos getDatos() { return datos; @@ -136,11 +127,9 @@ public class Respuesta { /** * Define el valor de la propiedad datos. - * - * @param value - * allowed object is - * {@link Respuesta.Datos } - * + * + * @param value allowed object is {@link Respuesta.Datos } + * */ public void setDatos(Respuesta.Datos value) { this.datos = value; @@ -148,11 +137,9 @@ public class Respuesta { /** * Obtiene el valor de la propiedad mensajeError. - * - * @return - * possible object is - * {@link String } - * + * + * @return possible object is {@link String } + * */ public String getMensajeError() { return mensajeError; @@ -160,22 +147,21 @@ public class Respuesta { /** * Define el valor de la propiedad mensajeError. - * - * @param value - * allowed object is - * {@link String } - * + * + * @param value allowed object is {@link String } + * */ public void setMensajeError(String value) { this.mensajeError = value; } - /** - *

Clase Java para anonymous complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para anonymous complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

      * <complexType>
      *   <complexContent>
@@ -198,8 +184,8 @@ public class Respuesta {
      *   </complexContent>
      * </complexType>
      * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { @@ -211,25 +197,22 @@ public class Respuesta { /** * Gets the value of the entry property. - * + * *

- * 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 set method for the entry property. - * + * 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 set method for the entry property. + * *

* For example, to add a new item, do as follows: *

          *    getEntry().add(newItem);
          * 
- * - * + * + * *

- * Objects of the following type(s) are allowed in the list - * {@link Respuesta.Datos.Entry } - * - * + * Objects of the following type(s) are allowed in the list {@link Respuesta.Datos.Entry } + * + * */ public List getEntry() { if (entry == null) { @@ -238,12 +221,13 @@ public class Respuesta { return this.entry; } - /** - *

Clase Java para anonymous complex type. - * - *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. - * + *

+ * Clase Java para anonymous complex type. + * + *

+ * El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. + * *

          * <complexType>
          *   <complexContent>
@@ -256,8 +240,8 @@ public class Respuesta {
          *   </complexContent>
          * </complexType>
          * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { @@ -271,11 +255,9 @@ public class Respuesta { /** * Obtiene el valor de la propiedad key. - * - * @return - * possible object is - * {@link String } - * + * + * @return possible object is {@link String } + * */ public String getKey() { return key; @@ -283,11 +265,9 @@ public class Respuesta { /** * Define el valor de la propiedad key. - * - * @param value - * allowed object is - * {@link String } - * + * + * @param value allowed object is {@link String } + * */ public void setKey(String value) { this.key = value; @@ -295,11 +275,9 @@ public class Respuesta { /** * Obtiene el valor de la propiedad value. - * - * @return - * possible object is - * {@link String } - * + * + * @return possible object is {@link String } + * */ public String getValue() { return value; @@ -307,11 +285,9 @@ public class Respuesta { /** * Define el valor de la propiedad value. - * - * @param value - * allowed object is - * {@link String } - * + * + * @param value allowed object is {@link String } + * */ public void setValue(String value) { this.value = value; diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices.java index 2c256db..aa976f2 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -10,12 +9,9 @@ import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; - /** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.2.8 - * Generated source version: 2.2 - * + * This class was generated by the JAX-WS RI. JAX-WS RI 2.2.8 Generated source version: 2.2 + * */ @WebService(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/") @XmlSeeAlso({ @@ -23,33 +19,28 @@ import javax.xml.ws.ResponseWrapper; }) public interface SincoarServices { - /** - * + * * @param cedula - * @return - * returns com.fp.frontend.webservices.dinardap.Respuesta + * @return returns com.fp.frontend.webservices.dinardap.Respuesta */ @WebMethod @WebResult(name = "response", targetNamespace = "") @RequestWrapper(localName = "consultaCedula", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaCedula") @ResponseWrapper(localName = "consultaCedulaResponse", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaCedulaResponse") public Respuesta consultaCedula( - @WebParam(name = "cedula", targetNamespace = "") - String cedula); + @WebParam(name = "cedula", targetNamespace = "") String cedula); /** - * + * * @param ruc - * @return - * returns com.fp.frontend.webservices.dinardap.Respuesta + * @return returns com.fp.frontend.webservices.dinardap.Respuesta */ @WebMethod @WebResult(name = "response", targetNamespace = "") @RequestWrapper(localName = "consultaRuc", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaRuc") @ResponseWrapper(localName = "consultaRucResponse", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaRucResponse") public Respuesta consultaRuc( - @WebParam(name = "ruc", targetNamespace = "") - String ruc); + @WebParam(name = "ruc", targetNamespace = "") String ruc); } diff --git a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices_Service.java b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices_Service.java index 007ebd0..ae18e91 100644 --- a/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices_Service.java +++ b/frontend/src/main/java/com/fp/frontend/webservices/dinardap/SincoarServices_Service.java @@ -1,4 +1,3 @@ - package com.fp.frontend.webservices.dinardap; import com.fp.frontend.webservices.dinardap.*; @@ -11,17 +10,13 @@ import javax.xml.ws.WebServiceClient; import javax.xml.ws.WebServiceException; import javax.xml.ws.WebServiceFeature; - /** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.2.8 - * Generated source version: 2.2 - * + * This class was generated by the JAX-WS RI. JAX-WS RI 2.2.8 Generated source version: 2.2 + * */ @WebServiceClient(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/", wsdlLocation = "http://172.17.26.183:8090/sincoar-services?wsdl") public class SincoarServices_Service - extends Service -{ + extends Service { private final static URL SINCOARSERVICES_WSDL_LOCATION; private final static WebServiceException SINCOARSERVICES_EXCEPTION; @@ -64,9 +59,8 @@ public class SincoarServices_Service } /** - * - * @return - * returns SincoarServices + * + * @return returns SincoarServices */ @WebEndpoint(name = "SincoarServicesPort") public SincoarServices getSincoarServicesPort() { @@ -74,11 +68,10 @@ public class SincoarServices_Service } /** - * - * @param features - * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. - * @return - * returns SincoarServices + * + * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features + * parameter will have their default values. + * @return returns SincoarServices */ @WebEndpoint(name = "SincoarServicesPort") public SincoarServices getSincoarServicesPort(WebServiceFeature... features) { @@ -86,7 +79,7 @@ public class SincoarServices_Service } private static URL __getWsdlLocation() { - if (SINCOARSERVICES_EXCEPTION!= null) { + if (SINCOARSERVICES_EXCEPTION != null) { throw SINCOARSERVICES_EXCEPTION; } return SINCOARSERVICES_WSDL_LOCATION;