Página 2 de 2

Re: Proceso de Timbrado, como es?

Publicado: Mar Ene 25, 2011 3:01 pm
por Dado
The formal definition of the UUID string representation is
provided by the following ABNF [7]:

UUID = time-low "-" time-mid "-"
time-high-and-version "-"
clock-seq-and-reserved
clock-seq-low "-" node
time-low = 4hexOctet
time-mid = 2hexOctet
time-high-and-version = 2hexOctet
clock-seq-and-reserved = hexOctet
clock-seq-low = hexOctet
node = 6hexOctet
hexOctet = hexDigit hexDigit
hexDigit =
"0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" /
"a" / "b" / "c" / "d" / "e" / "f" /
"A" / "B" / "C" / "D" / "E" / "F"

The following is an example of the string representation of a UUID as
a URN:

urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6

FUENTE

Re: Proceso de Timbrado, como es?

Publicado: Mar Ene 25, 2011 4:49 pm
por macja
Asi es de hecho la instrucción de java que ya postearon cumple con el estandar:

public String toString() {
StringBuilder builder = new StringBuilder(36);
String msbStr = Long.toHexString(mostSigBits);
if (msbStr.length() < 16) {
int diff = 16 - msbStr.length();
for (int i = 0; i < diff; i++) {
builder.append('0');
}
}
builder.append(msbStr);
builder.insert(8, '-');
builder.insert(13, '-');
builder.append('-');
String lsbStr = Long.toHexString(leastSigBits);
if (lsbStr.length() < 16) {
int diff = 16 - lsbStr.length();
for (int i = 0; i < diff; i++) {
builder.append('0');
}
}
builder.append(lsbStr);
builder.insert(23, '-');
return builder.toString();
}
Returns a string representation of this UUID in the following format, as per RFC 4122.

UUID = time-low "-" time-mid "-"
time-high-and-version "-"
clock-seq-and-reserved
clock-seq-low "-" node
time-low = 4hexOctet
time-mid = 2hexOctet
time-high-and-version = 2hexOctet
clock-seq-and-reserved = hexOctet
clock-seq-low = hexOctet
node = 6hexOctet
hexOctet = hexDigit hexDigit
hexDigit =
"0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" /
"a" / "b" / "c" / "d" / "e" / "f" /
"A" / "B" / "C" / "D" / "E" / "F"


Como referencia la API de java http://download.oracle.com/javase/6/doc ... /UUID.html para el caso de java

Re: Proceso de Timbrado, como es?

Publicado: Mar Ene 25, 2011 5:39 pm
por crixus
Orale, graciasssssss ;)

Re: Proceso de Timbrado, como es?

Publicado: Mié Feb 02, 2011 12:26 pm
por ferckham
macja escribió:Asi es de hecho la instrucción de java que ya postearon cumple con el estandar:

public String toString() {
StringBuilder builder = new StringBuilder(36);
String msbStr = Long.toHexString(mostSigBits);
if (msbStr.length() < 16) {
int diff = 16 - msbStr.length();
for (int i = 0; i < diff; i++) {
builder.append('0');
}
}
builder.append(msbStr);
builder.insert(8, '-');
builder.insert(13, '-');
builder.append('-');
String lsbStr = Long.toHexString(leastSigBits);
if (lsbStr.length() < 16) {
int diff = 16 - lsbStr.length();
for (int i = 0; i < diff; i++) {
builder.append('0');
}
}
builder.append(lsbStr);
builder.insert(23, '-');
return builder.toString();
}
Returns a string representation of this UUID in the following format, as per RFC 4122.

UUID = time-low "-" time-mid "-"
time-high-and-version "-"
clock-seq-and-reserved
clock-seq-low "-" node
time-low = 4hexOctet
time-mid = 2hexOctet
time-high-and-version = 2hexOctet
clock-seq-and-reserved = hexOctet
clock-seq-low = hexOctet
node = 6hexOctet
hexOctet = hexDigit hexDigit
hexDigit =
"0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" /
"a" / "b" / "c" / "d" / "e" / "f" /
"A" / "B" / "C" / "D" / "E" / "F"


Como referencia la API de java http://download.oracle.com/javase/6/doc ... /UUID.html para el caso de java
Hola:

Alguien sabe si esto es posible hacerelo con php?

Re: Proceso de Timbrado, como es?

Publicado: Vie Feb 04, 2011 5:33 pm
por jerry8003
Hola, soy nuevo en el foro y para empezar me gustaria aportar algo que les pueda ser de utilidad
SQL Server en sus versiones 2005 y 2008 incluye una función para generar el UUID (Mas no se si en las anteriores ya incluia dicha función).
La función se llama NEWID() y basta con llamarla haciendo un Select a dicha función para que te regrese una cadena de 36 caracteres similar al UUID que el SAT te pide como folio.

aqui tienen un ejemplo.

select NEWID()
go

y el resultado que obtienen es similar a este:

32d93c8e-fec2-462c-bd73-740e04561f2a

Espero y les sea de utilidad
Saludos.

Re: Proceso de Timbrado, como es?

Publicado: Mar Feb 08, 2011 11:31 am
por crixus
macja escribió:Chequen la pregunta 78, sobre el UUID sobre todo para los que andan en eso del PAC
ftp://ftp2.sat.gob.mx/asistencia_servic ... recTec.pdf

Gracias por el Dato, checando ;)

Re: Proceso de Timbrado, como es?

Publicado: Lun Feb 14, 2011 3:18 pm
por ferckham
Hola alguien sabe como es el proceso para la generacion del selloSAT, anteriormente yo ya obtenia dicho sello lo incorporaba en el momento en que creaba mi CFDI, inclusive lo valide en el validador del SAT y me decia que los CFDI que creaba y timbraba con el UUID de prueba (ad662d33-6934-459c-a128-bdf0393e0f44) eran correctos, claro los sellaba con el csd de prueba que el sat proporciono, el detalle es que ahora ya no los acepta, aunque ponga un CFDI con timbre generado en enero me dice que el sello del TFD es incorrecto, alguien sabe que puede estar pasando?

Tambien los valido con el validador de DADO y dice que el selloSAT del TFD es incorrecto, agradecere sus comentarios.