Integracion con DINARDAP

This commit is contained in:
james 2023-02-16 10:38:38 -05:00
parent 9032d81e5a
commit 1b9489ca3b
10 changed files with 186 additions and 254 deletions

View File

@ -176,25 +176,14 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
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<TarmEvaluacion> {
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<TarmEvaluacion> {
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<TarmEvaluacion> {
*
* @param documento
* @param tipoDocumento
* @return
* @return
*/
public TcustPersonDetail buscarPersonaSnap(String documento, String tipoDocumento) {
if (tipoDocumento.equals("CED")) {

View File

@ -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;
/**
* <p>Clase Java para consultaCedula complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <p>
* Clase Java para consultaCedula complex type.
*
* <p>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="consultaCedula">
* &lt;complexContent>
@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@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;

View File

@ -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;
/**
* <p>Clase Java para consultaCedulaResponse complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <p>
* Clase Java para consultaCedulaResponse complex type.
*
* <p>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="consultaCedulaResponse">
* &lt;complexContent>
@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@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;

View File

@ -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;
/**
* <p>Clase Java para consultaRuc complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <p>
* Clase Java para consultaRuc complex type.
*
* <p>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="consultaRuc">
* &lt;complexContent>
@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@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;

View File

@ -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;
/**
* <p>Clase Java para consultaRucResponse complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <p>
* Clase Java para consultaRucResponse complex type.
*
* <p>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="consultaRucResponse">
* &lt;complexContent>
@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@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;

View File

@ -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();

View File

@ -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.
* <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.
*
* This object contains factory methods for each Java content interface and Java element interface generated in the
* com.fp.frontend.webservices.dinardap 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 {
@ -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<ConsultaCedula> 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<ConsultaRucResponse> 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<ConsultaRuc> 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<ConsultaCedulaResponse> createConsultaCedulaResponse(ConsultaCedulaResponse value) {

View File

@ -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;
/**
* <p>Clase Java para respuesta complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <p>
* Clase Java para respuesta complex type.
*
* <p>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* &lt;complexType name="respuesta">
* &lt;complexContent>
@ -50,8 +50,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "respuesta", propOrder = {
@ -71,25 +71,22 @@ public class Respuesta {
/**
* Gets the value of the actividad 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 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 <CODE>set</CODE> method for the actividad property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getActividad().add(newItem);
* </pre>
*
*
*
*
* <p>
* 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<String> 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;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <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>
@ -198,8 +184,8 @@ public class Respuesta {
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
@ -211,25 +197,22 @@ public class Respuesta {
/**
* Gets the value of the entry 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 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 <CODE>set</CODE> method for the entry property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEntry().add(newItem);
* </pre>
*
*
*
*
* <p>
* 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<Respuesta.Datos.Entry> getEntry() {
if (entry == null) {
@ -238,12 +221,13 @@ public class Respuesta {
return this.entry;
}
/**
* <p>Clase Java para anonymous complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <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>
@ -256,8 +240,8 @@ public class Respuesta {
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*
*
*/
@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;

View File

@ -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);
}

View File

@ -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 <code>features</code> 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 <code>features</code>
* 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;