íšltimamente he estado probando Flex. Estoy realizando una vista en Flex de este blog que pronto podrán ver en linea entre otras cosas..
Bien, El tema de hoy va sobre la etiqueta
Cuando agregamos esta etiqueta a nuestro mxml regresa una secuencia detallada de los eventos que se están ejecutando en nuestra aplicación. Como es un tag para debuguear en nuestra aplicación final no se vera ningún cambio.
El ejemplo es sencillo
[as]
[/as]
así es como se ve nuestra ventana de debugeo si dicha etiqueta
[as]
[SWF] C:Documents and SettingsTmeist3rDesktoptestbintest-debug.swf – 730,596 bytes after decompression
[/as]
Ahora, así es como se ve nuestra ventana de debugueo cuando utilizamos TraceTarget
[as]
[SWF] C:Documents and SettingsTmeist3rDesktoptestbintest-debug.swf – 717,747 bytes after decompression
Registering schema namespace: http://www.w3.org/1999/XMLSchema
Registering schema namespace: http://www.w3.org/2000/10/XMLSchema
Registering schema namespace: http://www.w3.org/2001/XMLSchema
Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/
Registering schema namespace: http://xml.apache.org/xml-soap
Registering schema namespace: http://rpc.xml.coldfusion
‘0E6C71D7-0670-186D-74DB-0B47A9E33F2A’ producer set destination to ‘DefaultHTTP’.
‘9828CAB5-C669-81AC-3299-0B47AA9F2817’ producer set destination to ‘DefaultHTTP’.
‘direct_http_channel’ channel endpoint set to http:
Creating WSDL object for http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL
‘127766B4-8379-1647-CADD-0B47AA9FB309’ producer set destination to ‘DefaultHTTP’.
Loading document http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL for destination ‘DefaultHTTP’
‘0E6C71D7-0670-186D-74DB-0B47A9E33F2A’ producer sending message ‘5604ADC7-4155-F995-8E77-0B47AA9F7C90’
‘direct_http_channel’ channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
body = (Object)#1
clientId = (null)
contentType = “application/x-www-form-urlencoded”
destination = “DefaultHTTP”
headers = (Object)#2
httpHeaders = (Object)#3
messageId = “5604ADC7-4155-F995-8E77-0B47AA9F7C90”
method = “GET”
recordHeaders = false
timestamp = 0
timeToLive = 0
url = “http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL”
‘0E6C71D7-0670-186D-74DB-0B47A9E33F2A’ producer connected.
Queueing SOAP operation GetQuote
‘0E6C71D7-0670-186D-74DB-0B47A9E33F2A’ producer acknowledge of ‘5604ADC7-4155-F995-8E77-0B47AA9F7C90’.
Processing imports for location http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL
Parsing schemas
Registering schema namespace: http://swanandmokashi.com
Done parsing schemas: 3 ms
Done processing imports: 581 ms
Parsing services
Parsing individual services
Parsing service: QuoteofTheDay
Parsing binding: http://swanandmokashi.com::QuoteofTheDaySoap
Parsing portType: http://swanandmokashi.com::QuoteofTheDaySoap
Parsed portType: 1 ms
Parsed binding: 6 ms
Parsed service: 11 ms
Done parsing services: 12 ms
WSDL parse took 594 ms
WSDL loaded
Made SOAP Operation for GetQuote
Set active port in service stub: QuoteofTheDay:QuoteofTheDaySoap
Invoking previously queued calls GetQuote
Invoking SOAP operation GetQuote
Initializing SOAP operation GetQuote
Parsing message: http://swanandmokashi.com::GetQuoteSoapIn
Message name is GetQuoteSoapIn
Parsed message: 5 ms
Parsing message: http://swanandmokashi.com::GetQuoteSoapOut
Message name is GetQuoteSoapOut
Parsed message: 5 ms
Asynchronously invoking SOAP Operation: GetQuote
Encoding SOAP request envelope
Encoding SOAP request body
Encoded SOAP Operation request:
‘0E6C71D7-0670-186D-74DB-0B47A9E33F2A’ producer sending message ‘E5E1E227-8114-3417-14DB-0B47AD103D57’
‘direct_http_channel’ channel sending message:
(mx.messaging.messages::SOAPMessage)#0
body = “
clientId = “DirectHTTPChannel0”
contentType = “text/xml; charset=utf-8”
destination = “DefaultHTTP”
headers = (Object)#1
httpHeaders = (Object)#2
SOAPAction = “”http://swanandmokashi.com/GetQuote””
messageId = “E5E1E227-8114-3417-14DB-0B47AD103D57”
method = “POST”
recordHeaders = false
timestamp = 0
timeToLive = 0
url = “http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx”
‘0E6C71D7-0670-186D-74DB-0B47A9E33F2A’ producer acknowledge of ‘E5E1E227-8114-3417-14DB-0B47AD103D57’.
Decoding SOAP response
Encoded SOAP response:
Decoding SOAP response envelope
Decoded SOAP response into result [0 millis]
[/as]
Sin duda esta es una etiqueta que nos puede ahorrar muchos dolores de cabeza al momento de Debugear.
Saludos!!
Definitivamente buena forma para debuguear usar el TraceTarget. Adicionalmente yo recomendará usar algún Web Debug externo. Son útiles para evitar horas de sufrimiento. Un ejemplo es el Charles Web Debug que nos permite ver exactamente lo que el servidor Web, le envá a Flex.
saludos