FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Error en componente HTTPRIO
Saludos a todos, desde hace días tengo un problema al tratar de consumir un Web Service el cual utilizo el componente THTTPRIO para hacer el llamado, ya importé el wsdl y me genera la Unit del servicio sin problema, tengo configurado las propiedades del componente, WSDLLocation, Service, Port...
Al momento de dar clic sobre el botón que me ejecuta el procedimiento me sale el error: DTD is Prohibited Line 1: <!DOCTYPE ... Ya busqué en varios foros sobre este tema y me he revuelto, encontré la siguiente variable global que puse en False y el error continua:
Actualmente no estoy usando algún componente TXMLDocument o algo que use la respuesta como XML, desconozco si tenga que hacerlo asi, lo unico que tengo declarado es lo siguiente:
El proyecto lo estoy desarrollando con Delphi XE8, el mismo web service lo he consumido con otras herramientas y no da problema, una de ellas es la extensión para google chrome que se llama Boomerang, me regresa la información correcta y sin problemas, el service esta hecho con PHP y la libreria NUSOAP. Espero por favor puedan ayudarme y de antemano muchas gracias por tomarse el tiempo de leer. Saludos. |
#2
|
|||
|
|||
Debes revisar las unidades donde se define la interface con el webservice, las que se generan al importar el wsdl, si es posible publica el codigo para que podamos apoyarte mejor.
Saludos. |
#3
|
|||
|
|||
Cita:
Saludos.
|
#4
|
||||
|
||||
tu no estas usando ningún XML, pero si el web service tiene definidos los campos dentro de un TDT entonces intentará cargarlo al abrir el WS.
¿Es un WS creado por ti? ¿Es uno creado por otros? Normalmente, si el servicio tiene extensión "wsdl" se puede abrir con el navegador de Internet y ahí te muestra los archivos que utiliza para la validación, incluido cualquier tdt. Si no, ¿podrías compartirlo con el grupo para que le echemos un vistazo? Saludos |
#5
|
|||
|
|||
Cita:
Gracias por tu respuesta ElKurgan, y sí, el ws lo hice yo, este es el wsdl. Código PHP:
|
#6
|
||||
|
||||
Perdona que haya tardado tanto en contestar. No tengo PHP ni la librería que comentas, pero he creado un webservice (más o menos) como el tuyo desde Delphi XE7 y no me ha dado ningún problema.
¿Es posible que sea la librería la que internamente esté indicando que haya que cargar algún archivo y que se nos pase por alto? Ya te digo, haciendo todos los pasos en el propio Delphi no da ningún problema. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
WebServices HTTPRIO SOAP XmlBlackBox | ppb | Internet | 1 | 06-11-2012 17:55:04 |
Problema con HTTPRIO. | JFHS3811 | Internet | 0 | 30-12-2011 15:38:14 |
error componente!!!!! | MARLON1 | Varios | 1 | 17-12-2009 20:19:06 |
HTTPRIO e hilos | azulin | Internet | 1 | 04-04-2009 14:22:31 |
HTTPRIO y el Registry ¿unica opción? | kaopectate | Internet | 5 | 08-11-2007 17:21:35 |
|