Coder Social home page Coder Social logo

Comments (8)

martinzarza avatar martinzarza commented on September 15, 2024 1

Para utilizar las funciones que ofrece Sifen, debés tener un certificado emitido por un PSC (Prestador de Servicios de Certificación) habilitados por el Ministerio de Industria y Comercio, y aprobados por la SET *.

Una vez que tengas esto, tenés que establecer la ruta del certificado y su contraseña en tu configuración SifenConfig, así como indica la documentación.

* Podés leer más de esto en el Manual Técnico de Sifen, página 36, punto 7.5.

from rshk-jsifenlib.

Earevalo avatar Earevalo commented on September 15, 2024

Me aparecen todos estos mensajes de error al validar el proyecto rshk-jsifenlib-master;
Description Resource Path Location Type
The part 'rEnviConsDeRequest' has an invalid value 'rEnviConsDeRequest' defined for its element. Element declarations must refer to valid values defined in a schema. consulta.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/consultas line 7 WSDL Problem
The part 'rEnviConsDeResponse' has an invalid value 'rEnviConsDeResponse' defined for its element. Element declarations must refer to valid values defined in a schema. consulta.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/consultas line 9 WSDL Problem
The part 'rEnviConsLoteDe' has an invalid value 'rEnviConsLoteDe' defined for its element. Element declarations must refer to valid values defined in a schema. consulta-lote.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/consultas line 7 WSDL Problem
The part 'rEnviConsRUC' has an invalid value 'rEnviConsRUC' defined for its element. Element declarations must refer to valid values defined in a schema. consulta-ruc.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/consultas line 7 WSDL Problem
The part 'rEnviDe' has an invalid value 'rEnviDe' defined for its element. Element declarations must refer to valid values defined in a schema. recibe.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/sync line 7 WSDL Problem
The part 'rEnviEventoDe' has an invalid value 'rEnviEventoDe' defined for its element. Element declarations must refer to valid values defined in a schema. evento.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/eventos line 7 WSDL Problem
The part 'rEnvioLote' has an invalid value 'rEnvioLote' defined for its element. Element declarations must refer to valid values defined in a schema. recibe-lote.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/async line 7 WSDL Problem
The part 'rResEnviConsLoteDe' has an invalid value 'rResEnviConsLoteDe' defined for its element. Element declarations must refer to valid values defined in a schema. consulta-lote.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/consultas line 9 WSDL Problem
The part 'rResEnviConsRUC' has an invalid value 'rResEnviConsRUC' defined for its element. Element declarations must refer to valid values defined in a schema. consulta-ruc.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/consultas line 9 WSDL Problem
The part 'rResEnviLoteDe' has an invalid value 'rResEnviLoteDe' defined for its element. Element declarations must refer to valid values defined in a schema. recibe-lote.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/async line 9 WSDL Problem
The part 'rRetEnviDe' has an invalid value 'rRetEnviDe' defined for its element. Element declarations must refer to valid values defined in a schema. recibe.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/sync line 9 WSDL Problem
The part 'rRetEnviEventoDe' has an invalid value 'rRetEnviEventoDe' defined for its element. Element declarations must refer to valid values defined in a schema. evento.wsdl /rshk-jsifenlib-master/docs/set/test/v150/wsdl/eventos line 9 WSDL Problem

from rshk-jsifenlib.

martinzarza avatar martinzarza commented on September 15, 2024

Hola! Podrías darnos un poco más de detalles? ¿Qué se estaba tratando de hacer?
Si podés mostrarnos partes del código sería incluso mejor.

from rshk-jsifenlib.

Earevalo avatar Earevalo commented on September 15, 2024

Gracias por responder.
Sigue algunas imágenes, al validar el proyecto.
image
image

Utilizo el eclipse Version: Neon.3 Release (4.6.3)

from rshk-jsifenlib.

martinzarza avatar martinzarza commented on September 15, 2024

Según veo no estás utilizando la versión compilada de la librería (que es lo recomendado) sino que clonaste el proyecto. Si ese es tu caso y lo que necesitas es modificar el proyecto para adaptar a tus necesidades, simplemente podes ignorar la carpeta llamada docs ya que en realidad no tiene ninguna utilidad más que ser una referencia. Incluso podés eliminarla si no las vas a utilizar.

from rshk-jsifenlib.

Earevalo avatar Earevalo commented on September 15, 2024

from rshk-jsifenlib.

Earevalo avatar Earevalo commented on September 15, 2024

Hola. tengo este mensaje de error ahora:

19:20:52,752 INFO [class com.roshka.sifen.Sifen] (default task-3) configuraci≤n
de Sifen guardada correctamente
19:20:52,752 INFO [class com.roshka.sifen.Sifen] (default task-3) Preparando pe
tici≤n 'Consulta de RUC'
19:20:52,892 INFO [class com.roshka.sifen.internal.request.BaseRequest] (defaul
t task-3) XML generado, se realiza la petici├│n
19:20:53,283 INFO [class com.roshka.sifen.internal.helpers.SSLContextHelper] (d
efault task-3) Contexto SSL no cargado a├║n. Empezando carga...
19:20:53,283 WARNING [class com.roshka.sifen.internal.helpers.SSLContextHelper]
(default task-3) Tipo de certificado a├║n no soportado
19:20:53,283 INFO [class com.roshka.sifen.internal.helpers.SSLContextHelper] (d
efault task-3) Se utilizará un contexto SSL por defecto.
19:20:53,283 INFO [class com.roshka.sifen.internal.helpers.SoapHelper] (default
task-3) Conectando a: https://sifen-test.set.gov.py/de/ws/consultas/consulta-ru
c.wsdl
19:20:54,080 INFO [class com.roshka.sifen.internal.helpers.SoapHelper] (default
task-3) Enviando mensaje SOAP
19:20:54,517 ERROR [stderr] (default task-3) ERROR: 'Open quote is expected for
attribute "classId" associated with an element type "object".'
19:20:54,517 SEVERE [com.sun.xml.messaging.saaj.soap] (default task-3) SAAJ0511:
Unable to create envelope from given source
19:20:54,517 WARNING [class com.roshka.sifen.internal.request.ReqConsRuc] (defau
lt task-3) El cuerpo del mensaje SOAP es nulo. No se puede obtener el nodo princ
ipal.
19:20:54,517 INFO [class com.roshka.sifen.internal.request.BaseRequest] (defaul
t task-3) Petici├│n realizada, se formatea la respuesta
19:20:54,517 INFO [stdout] (default task-3) com.roshka.sifen.core.beans.respons
e.RespuestaConsultaRUC@268a6c0d

este es mi codigo:

SifenConfig config = new SifenConfig();

	// Constructor igual al anterior, con el CSC y su ID.
	Sifen.setSifenConfig(config);
	
    	
	  RespuestaConsultaRUC ret = Sifen.consultaRUC(ruc);
	  System.out.println(ret.toString());

Gracias y saludos.

from rshk-jsifenlib.

martinzarza avatar martinzarza commented on September 15, 2024

Cierro el issue ya que la consulta ya fue resuelta.

from rshk-jsifenlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.