Ver Mensaje Individual
  #769  
Antiguo 04-06-2021
tejano tejano is offline
Miembro
 
Registrado: dic 2020
Posts: 128
Reputacin: 4
tejano Va por buen camino
Cita:
Empezado por landaga Ver Mensaje
Gracias Bilbur pero lo estoy haciendo por lnea de comandos.
Yo tambin lo hago por lnea de comandos y me devuelve unos caracteres muy extraos.

Landaga, puedes enviar la lnea de comando?

Yo lo envo de esta forma
c:\curl\1\bin\curl --insecure --cert-type P12 --cert c:\amis\exes\CERTIFICADO.p12:PASSWORD -H "Accept-Encoding:gzip" -H "Content-Encoding:gzip" -H "Content-Type:application/octet-stream" -H "eus-bizkaia-n3-version:1.0" -H "eus-bizkaia-n3-content-type:application/xml" -H "eus-bizkaia-n3-data:{\"con\":\"LROE\",\"apa\":\"1.1\",\"inte\":{\"nif\":\"A48190839\",\"nrs\":\"TECNICAS DE REFRACTARIOS S.A.U\"},\"drs\":{\"mode\":\"240\",\"ejer\":\"2021\"}}" -v "https://pruesarrerak.bizkaia.eus/N3B4001M/kontsulta" --data-binary "@c:\tmp\consulta.gz" --output c:\tmp\respuesta.xml

Y devuelve algo as.

 U 101368_peticion_Resp.xml R]o0 +Fki'!vWCTmy6RxGH*ɯrgh!V`k[t(^L^(|?wnĄn6PydwS[-˦VL_zTkj]t&o*=g2(۴3=Ŕ1TDHF <HVY8$@*Ϣ0NoEk6V7 ;qre|]^\ :,LXUGZH-:ɳbU#|Q&-*4RY:9ۚg9,GϣZA<Oo O*Zlpȃ${N
%}t /ȪfbJ %s

Gracias
Saludos
Responder Con Cita