Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2007, 15:07
chrisca
 
Fecha de Ingreso: diciembre-2002
Mensajes: 2
Antigüedad: 21 años, 5 meses
Puntos: 0
WebService banguat.gob.gt

Buenas estoy intentando acceder desde SOAP al banguat para obtener algunos datos que necesito, algunos me funcionan pero algunos no, cuando tengo que enviar variables me da un error

Por ejemplo cuando ejecuto, me devuelve el tipo de cambio perfectamente:

Código PHP:
require_once('lib/nusoap.php');
$result $soapclient->call'TipoCambioDia' , array(), "http://www.banguat.gob.gt/variables/ws/TipoCambioDia""http://www.banguat.gob.gt/variables/ws/TipoCambioDia"); 
Per cuando intento buscar el tipo de cambio a traves de un rango de fechas no me funciona, me devuelve un error:

Código PHP:
require_once('lib/nusoap.php');
$result $soapclient->call('TipoCambioRangoMoneda', array('fechainit'=>'10/10/2007','fechafin'=>'10/10/2007','moneda'=>'02'), "http://www.banguat.gob.gt/variables/ws/TipoCambioRangoMoneda""http://www.banguat.gob.gt/variables/ws/TipoCambioRangoMoneda"); 

Error devuelto:
Código:
["faultcode"]=> string(11) "soap:Client" ["faultstring"]=> string(447) "System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://www.webservicex.net. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)" ["detail"]=> string(0)
No se si estoy haciendo algo mal, ya que el error aparece cuando estoy enviando datos, si alguien tiene alguna experiencia en el tema le agradecere su ayuda.

Muchas Gracias,
Christian