Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/09/2010, 23:20
albertt_t
 
Fecha de Ingreso: noviembre-2004
Mensajes: 159
Antigüedad: 19 años, 6 meses
Puntos: 0
Soapheader y :

Hola estoy trabajando consumiendo un webservice

He logrado conectarme, pero tengo un problema con los 2 puntos en el 2 parametro


Código PHP:

require_once('lib/nusoap.php');
 
$Client = new SoapClient('http://demo.mywebsite.com/wa/webservice.asmx?WSDL');

$AuthCredentials = array(
            
'username'     => 'test111',
            
'password'     => 222222,
            
'culture'    => 'en_US',
            
'version'    => '6.0'
            
);
            
            
            
$AuthVar     = new SoapVar($AuthCredentialsSOAP_ENC_OBJECT);


$AuthHeader = new SoapHeader('http://mywebsite.com/webservices/'"m:LoginHeader"$AuthVarfalse); 
El mensaje es claro son los 2 puntos en el parametro de Soapheader

[message:protected] => System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Xml.XmlException: The ':' character, hexadecimal value 0x3A, cannot be included in a name. Line 2, position 146.


Alguien podría echarme un cable.

Gracias