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")); MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido"));
return; return;
} }
//TODO: evaluar casos, salto de validacion por error servicio SNAP personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
personafiltroSNAP = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
if (personafiltroSNAP == null) {
personafiltroSNAP = PersonDetailController.buscarLocal(personafiltro.getIdentification());
}
// personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
} else if (personafiltro.getIdentificationcatalog().equals("RUC")) { } else if (personafiltro.getIdentificationcatalog().equals("RUC")) {
// valido validez RUC // valido validez RUC
if (!ValidateIdentification.ruc(personafiltro.getIdentification())) { if (!ValidateIdentification.ruc(personafiltro.getIdentification())) {
MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido")); MessageHelper.setMessageError(MsgControlArmas.getProperty("msg_error_nodocumentoinvalido"));
return; return;
} }
//TODO: evaluar casos, salto de validacion por error servicio SNAP personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
personafiltroSNAP = PersonDetailController.findxidentification(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
if (personafiltroSNAP == null) {
personafiltroSNAP = PersonDetailController.buscarLocal(personafiltro.getIdentification());
}
// personafiltroSNAP = buscarPersonaSnap(personafiltro.getIdentification(), personafiltro.getIdentificationcatalog());
} else { } else {
// PASAPORTE // PASAPORTE
personafiltroSNAP = new TcustPersonDetail(); personafiltroSNAP = new TcustPersonDetail();
@ -1004,12 +993,8 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
return; return;
} }
//envia a buscar en la SNAP //envia a buscar en la SNAP
// tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo()); 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());
}
} else if (this.getRecord().getTipdocpsicologo().equals(codigoRuc)) { } else if (this.getRecord().getTipdocpsicologo().equals(codigoRuc)) {
// SI ES RUC // SI ES RUC
if (!ValidateIdentification.ruc(this.getRecord().getNumdocpsicologo())) { if (!ValidateIdentification.ruc(this.getRecord().getNumdocpsicologo())) {
@ -1017,12 +1002,8 @@ public class EvaluacionController extends AbstractController<TarmEvaluacion> {
return; return;
} }
// envia a buscar en la snap // envia a buscar en la snap
// tcustPersonDetailPsicologo = buscarPersonaSnap(this.getRecord().getNumdocpsicologo(), this.getRecord().getTipdocpsicologo()); 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());
}
} }
if (tcustPersonDetailPsicologo != null) { if (tcustPersonDetailPsicologo != null) {
this.record.setPsicologoresponsable(tcustPersonDetailPsicologo.getName()); this.record.setPsicologoresponsable(tcustPersonDetailPsicologo.getName());

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -6,11 +5,12 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
/** /**
* <p>Clase Java para consultaCedula complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType name="consultaCedula"> * &lt;complexType name="consultaCedula">
@ -37,9 +37,7 @@ public class ConsultaCedula {
/** /**
* Obtiene el valor de la propiedad cedula. * Obtiene el valor de la propiedad cedula.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getCedula() { public String getCedula() {
@ -49,9 +47,7 @@ public class ConsultaCedula {
/** /**
* Define el valor de la propiedad cedula. * Define el valor de la propiedad cedula.
* *
* @param value * @param value allowed object is {@link String }
* allowed object is
* {@link String }
* *
*/ */
public void setCedula(String value) { public void setCedula(String value) {

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -6,11 +5,12 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
/** /**
* <p>Clase Java para consultaCedulaResponse complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType name="consultaCedulaResponse"> * &lt;complexType name="consultaCedulaResponse">
@ -37,9 +37,7 @@ public class ConsultaCedulaResponse {
/** /**
* Obtiene el valor de la propiedad response. * Obtiene el valor de la propiedad response.
* *
* @return * @return possible object is {@link Respuesta }
* possible object is
* {@link Respuesta }
* *
*/ */
public Respuesta getResponse() { public Respuesta getResponse() {
@ -49,9 +47,7 @@ public class ConsultaCedulaResponse {
/** /**
* Define el valor de la propiedad response. * Define el valor de la propiedad response.
* *
* @param value * @param value allowed object is {@link Respuesta }
* allowed object is
* {@link Respuesta }
* *
*/ */
public void setResponse(Respuesta value) { public void setResponse(Respuesta value) {

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -6,11 +5,12 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
/** /**
* <p>Clase Java para consultaRuc complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType name="consultaRuc"> * &lt;complexType name="consultaRuc">
@ -37,9 +37,7 @@ public class ConsultaRuc {
/** /**
* Obtiene el valor de la propiedad ruc. * Obtiene el valor de la propiedad ruc.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getRuc() { public String getRuc() {
@ -49,9 +47,7 @@ public class ConsultaRuc {
/** /**
* Define el valor de la propiedad ruc. * Define el valor de la propiedad ruc.
* *
* @param value * @param value allowed object is {@link String }
* allowed object is
* {@link String }
* *
*/ */
public void setRuc(String value) { public void setRuc(String value) {

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -6,11 +5,12 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
/** /**
* <p>Clase Java para consultaRucResponse complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType name="consultaRucResponse"> * &lt;complexType name="consultaRucResponse">
@ -37,9 +37,7 @@ public class ConsultaRucResponse {
/** /**
* Obtiene el valor de la propiedad response. * Obtiene el valor de la propiedad response.
* *
* @return * @return possible object is {@link Respuesta }
* possible object is
* {@link Respuesta }
* *
*/ */
public Respuesta getResponse() { public Respuesta getResponse() {
@ -49,9 +47,7 @@ public class ConsultaRucResponse {
/** /**
* Define el valor de la propiedad response. * Define el valor de la propiedad response.
* *
* @param value * @param value allowed object is {@link Respuesta }
* allowed object is
* {@link Respuesta }
* *
*/ */
public void setResponse(Respuesta value) { public void setResponse(Respuesta value) {

View File

@ -5,6 +5,7 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import java.util.HashSet; import java.util.HashSet;
import javax.xml.ws.BindingProvider;
/** /**
* *
@ -14,6 +15,13 @@ public class DinardapClient {
private final static String ERROR_OK = "0"; 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 * @param ruc
@ -22,6 +30,9 @@ public class DinardapClient {
public RucDNP getRuc(String ruc) { public RucDNP getRuc(String ruc) {
RucDNP result = null; RucDNP result = null;
SincoarServices services = new SincoarServices_Service().getSincoarServicesPort(); 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); Respuesta respuesta = services.consultaCedula(ruc);
if (respuesta.getCodigoError().equals(ERROR_OK)) { if (respuesta.getCodigoError().equals(ERROR_OK)) {
result = new RucDNP(); result = new RucDNP();
@ -50,6 +61,9 @@ public class DinardapClient {
public CedulaDNP getCedula(String cedula) { public CedulaDNP getCedula(String cedula) {
CedulaDNP result = null; CedulaDNP result = null;
SincoarServices services = new SincoarServices_Service().getSincoarServicesPort(); 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); Respuesta respuesta = services.consultaCedula(cedula);
if (respuesta.getCodigoError().equals(ERROR_OK)) { if (respuesta.getCodigoError().equals(ERROR_OK)) {
result = new CedulaDNP(); result = new CedulaDNP();

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -7,19 +6,13 @@ import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry; import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName; import javax.xml.namespace.QName;
/** /**
* This object contains factory methods for each * This object contains factory methods for each Java content interface and Java element interface generated in the
* Java content interface and Java element interface * com.fp.frontend.webservices.dinardap package.
* generated in the com.fp.frontend.webservices.dinardap package. * <p>
* <p>An ObjectFactory allows you to programatically * An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML
* construct new instances of the Java representation * content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model
* for XML content. The Java representation of XML * groups. Factory methods for each of these are provided in this class.
* 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 @XmlRegistry

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -9,11 +8,12 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
/** /**
* <p>Clase Java para respuesta complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType name="respuesta"> * &lt;complexType name="respuesta">
@ -73,10 +73,8 @@ public class Respuesta {
* Gets the value of the actividad property. * Gets the value of the actividad property.
* *
* <p> * <p>
* This accessor method returns a reference to the live list, * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be
* not a snapshot. Therefore any modification you make to the * present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the actividad property.
* 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> * <p>
* For example, to add a new item, do as follows: * For example, to add a new item, do as follows:
@ -86,8 +84,7 @@ public class Respuesta {
* *
* *
* <p> * <p>
* Objects of the following type(s) are allowed in the list * Objects of the following type(s) are allowed in the list {@link String }
* {@link String }
* *
* *
*/ */
@ -101,9 +98,7 @@ public class Respuesta {
/** /**
* Obtiene el valor de la propiedad codigoError. * Obtiene el valor de la propiedad codigoError.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getCodigoError() { public String getCodigoError() {
@ -113,9 +108,7 @@ public class Respuesta {
/** /**
* Define el valor de la propiedad codigoError. * Define el valor de la propiedad codigoError.
* *
* @param value * @param value allowed object is {@link String }
* allowed object is
* {@link String }
* *
*/ */
public void setCodigoError(String value) { public void setCodigoError(String value) {
@ -125,9 +118,7 @@ public class Respuesta {
/** /**
* Obtiene el valor de la propiedad datos. * Obtiene el valor de la propiedad datos.
* *
* @return * @return possible object is {@link Respuesta.Datos }
* possible object is
* {@link Respuesta.Datos }
* *
*/ */
public Respuesta.Datos getDatos() { public Respuesta.Datos getDatos() {
@ -137,9 +128,7 @@ public class Respuesta {
/** /**
* Define el valor de la propiedad datos. * Define el valor de la propiedad datos.
* *
* @param value * @param value allowed object is {@link Respuesta.Datos }
* allowed object is
* {@link Respuesta.Datos }
* *
*/ */
public void setDatos(Respuesta.Datos value) { public void setDatos(Respuesta.Datos value) {
@ -149,9 +138,7 @@ public class Respuesta {
/** /**
* Obtiene el valor de la propiedad mensajeError. * Obtiene el valor de la propiedad mensajeError.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getMensajeError() { public String getMensajeError() {
@ -161,20 +148,19 @@ public class Respuesta {
/** /**
* Define el valor de la propiedad mensajeError. * Define el valor de la propiedad mensajeError.
* *
* @param value * @param value allowed object is {@link String }
* allowed object is
* {@link String }
* *
*/ */
public void setMensajeError(String value) { public void setMensajeError(String value) {
this.mensajeError = value; this.mensajeError = value;
} }
/** /**
* <p>Clase Java para anonymous complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType> * &lt;complexType>
@ -213,10 +199,8 @@ public class Respuesta {
* Gets the value of the entry property. * Gets the value of the entry property.
* *
* <p> * <p>
* This accessor method returns a reference to the live list, * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be
* not a snapshot. Therefore any modification you make to the * present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the entry property.
* 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> * <p>
* For example, to add a new item, do as follows: * For example, to add a new item, do as follows:
@ -226,8 +210,7 @@ public class Respuesta {
* *
* *
* <p> * <p>
* Objects of the following type(s) are allowed in the list * Objects of the following type(s) are allowed in the list {@link Respuesta.Datos.Entry }
* {@link Respuesta.Datos.Entry }
* *
* *
*/ */
@ -238,11 +221,12 @@ public class Respuesta {
return this.entry; return this.entry;
} }
/** /**
* <p>Clase Java para anonymous complex type. * <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>
* El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
* *
* <pre> * <pre>
* &lt;complexType> * &lt;complexType>
@ -272,9 +256,7 @@ public class Respuesta {
/** /**
* Obtiene el valor de la propiedad key. * Obtiene el valor de la propiedad key.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getKey() { public String getKey() {
@ -284,9 +266,7 @@ public class Respuesta {
/** /**
* Define el valor de la propiedad key. * Define el valor de la propiedad key.
* *
* @param value * @param value allowed object is {@link String }
* allowed object is
* {@link String }
* *
*/ */
public void setKey(String value) { public void setKey(String value) {
@ -296,9 +276,7 @@ public class Respuesta {
/** /**
* Obtiene el valor de la propiedad value. * Obtiene el valor de la propiedad value.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getValue() { public String getValue() {
@ -308,9 +286,7 @@ public class Respuesta {
/** /**
* Define el valor de la propiedad value. * Define el valor de la propiedad value.
* *
* @param value * @param value allowed object is {@link String }
* allowed object is
* {@link String }
* *
*/ */
public void setValue(String value) { public void setValue(String value) {

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import com.fp.frontend.webservices.dinardap.*; import com.fp.frontend.webservices.dinardap.*;
@ -10,11 +9,8 @@ import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper; import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper; import javax.xml.ws.ResponseWrapper;
/** /**
* This class was generated by the JAX-WS RI. * This class was generated by the JAX-WS RI. JAX-WS RI 2.2.8 Generated source version: 2.2
* JAX-WS RI 2.2.8
* Generated source version: 2.2
* *
*/ */
@WebService(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/") @WebService(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/")
@ -23,33 +19,28 @@ import javax.xml.ws.ResponseWrapper;
}) })
public interface SincoarServices { public interface SincoarServices {
/** /**
* *
* @param cedula * @param cedula
* @return * @return returns com.fp.frontend.webservices.dinardap.Respuesta
* returns com.fp.frontend.webservices.dinardap.Respuesta
*/ */
@WebMethod @WebMethod
@WebResult(name = "response", targetNamespace = "") @WebResult(name = "response", targetNamespace = "")
@RequestWrapper(localName = "consultaCedula", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaCedula") @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") @ResponseWrapper(localName = "consultaCedulaResponse", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaCedulaResponse")
public Respuesta consultaCedula( public Respuesta consultaCedula(
@WebParam(name = "cedula", targetNamespace = "") @WebParam(name = "cedula", targetNamespace = "") String cedula);
String cedula);
/** /**
* *
* @param ruc * @param ruc
* @return * @return returns com.fp.frontend.webservices.dinardap.Respuesta
* returns com.fp.frontend.webservices.dinardap.Respuesta
*/ */
@WebMethod @WebMethod
@WebResult(name = "response", targetNamespace = "") @WebResult(name = "response", targetNamespace = "")
@RequestWrapper(localName = "consultaRuc", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaRuc") @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") @ResponseWrapper(localName = "consultaRucResponse", targetNamespace = "http://service.sincoar.qsoft.com/", className = "com.fp.frontend.webservices.dinardap.ConsultaRucResponse")
public Respuesta consultaRuc( public Respuesta consultaRuc(
@WebParam(name = "ruc", targetNamespace = "") @WebParam(name = "ruc", targetNamespace = "") String ruc);
String ruc);
} }

View File

@ -1,4 +1,3 @@
package com.fp.frontend.webservices.dinardap; package com.fp.frontend.webservices.dinardap;
import 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.WebServiceException;
import javax.xml.ws.WebServiceFeature; import javax.xml.ws.WebServiceFeature;
/** /**
* This class was generated by the JAX-WS RI. * This class was generated by the JAX-WS RI. JAX-WS RI 2.2.8 Generated source version: 2.2
* 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") @WebServiceClient(name = "SincoarServices", targetNamespace = "http://service.sincoar.qsoft.com/", wsdlLocation = "http://172.17.26.183:8090/sincoar-services?wsdl")
public class SincoarServices_Service public class SincoarServices_Service
extends Service extends Service {
{
private final static URL SINCOARSERVICES_WSDL_LOCATION; private final static URL SINCOARSERVICES_WSDL_LOCATION;
private final static WebServiceException SINCOARSERVICES_EXCEPTION; private final static WebServiceException SINCOARSERVICES_EXCEPTION;
@ -65,8 +60,7 @@ public class SincoarServices_Service
/** /**
* *
* @return * @return returns SincoarServices
* returns SincoarServices
*/ */
@WebEndpoint(name = "SincoarServicesPort") @WebEndpoint(name = "SincoarServicesPort")
public SincoarServices getSincoarServicesPort() { public SincoarServices getSincoarServicesPort() {
@ -75,10 +69,9 @@ public class SincoarServices_Service
/** /**
* *
* @param features * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code>
* 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. * parameter will have their default values.
* @return * @return returns SincoarServices
* returns SincoarServices
*/ */
@WebEndpoint(name = "SincoarServicesPort") @WebEndpoint(name = "SincoarServicesPort")
public SincoarServices getSincoarServicesPort(WebServiceFeature... features) { public SincoarServices getSincoarServicesPort(WebServiceFeature... features) {
@ -86,7 +79,7 @@ public class SincoarServices_Service
} }
private static URL __getWsdlLocation() { private static URL __getWsdlLocation() {
if (SINCOARSERVICES_EXCEPTION!= null) { if (SINCOARSERVICES_EXCEPTION != null) {
throw SINCOARSERVICES_EXCEPTION; throw SINCOARSERVICES_EXCEPTION;
} }
return SINCOARSERVICES_WSDL_LOCATION; return SINCOARSERVICES_WSDL_LOCATION;