Flash Builder:网络监视器 - 未显示 AMF 的原始数据?
我在 AMF 服务的后端使用 FluorineFX (.NET) 构建了一个基本的 RPC 程序。一切工作正常,即我可以调用公开的函数。
但是,当我查看 Flash Builder 中的网络监视器以进一步检查网络流量,然后查看 AMF 响应的原始数据时,它似乎没有被压缩/编码。此外,响应大小与未压缩内容相匹配。我的理解是这些东西都是二元的。我的解决方案或假设有问题吗?
示例:包含短数组的响应(添加了一些换行符)(注意未编码的正文内容):
HTTP/1.1 200 OK
Date: Fri, 27 Aug 2010 15:06:49 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/x-amf
Content-Length: 363
Flex Message (flex.messaging.messages.AcknowledgeMessage)
clientId = 29eb2c7f-974b-4bae-8d28-98d4b4dd0547
correlationId = B556E5C3-5476-A92C-2CEC-B4163ABCD1C8
destination = fluorine
messageId = 92675e09-0bc0-498f-b017-7e601b740563
timestamp = 250290640
timeToLive = 0
body = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
hdr(DSId) = 6b42848939804b7592eb956797d4eef4
I've built a basic RPC program using FluorineFX (.NET) on the backend for my AMF service. Everything works fine, i.e. I can make calls to the exposed functions.
However, when I looked at Network Monitor in Flash Builder to further examine the network traffic, and then view the Raw Data for the AMF response, it doesn't seem to be compressed/encoded. Also, the response size matches the non-compressed content. My understanding is that these things would be binary. Is there something wrong with my solution or assumptions?
Example: a response (some line breaks added) containing a short array (notice the unencoded body content):
HTTP/1.1 200 OK
Date: Fri, 27 Aug 2010 15:06:49 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/x-amf
Content-Length: 363
Flex Message (flex.messaging.messages.AcknowledgeMessage)
clientId = 29eb2c7f-974b-4bae-8d28-98d4b4dd0547
correlationId = B556E5C3-5476-A92C-2CEC-B4163ABCD1C8
destination = fluorine
messageId = 92675e09-0bc0-498f-b017-7e601b740563
timestamp = 250290640
timeToLive = 0
body = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
hdr(DSId) = 6b42848939804b7592eb956797d4eef4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来网络监视器(仅在 Flash Builder Premium 中可用)实际上从未显示原始 AMF 数据。然而,我最感兴趣的是可用的响应大小(即用于优化)。 树视图中的响应大小(字节)显示未编码响应的大小,但您可以获得编码 > 原始视图中内容长度行的大小。
It looks like Network Monitor (available only in Flash Builder Premium) doesn't ever actually show raw AMF data. However, I was mostly interested in response size (i.e. for optimization), which is available. The Response Size (bytes) in the Tree View shows the size of unencoded response, but you can get the encoded size from the Content-Length line in the Raw View.