EaBIM一直以来积极响应国家“十二五”推进建筑业信息化的号召,对建筑领域的信息技术开展深入技术交流和探讨!致力于打造“BIM-建筑师-生态技术”三位一体综合资源交流共享平台,希望为BIM与可持续设计理念及技术的普及做出微小的贡献!!!

萧闫子 发表于 2014-1-14 10:30:52

免费的工具-Fiddler(查探Vault API的调用流程)

转载自:It's all just ones and zeros -> Fiddling with the Vault APIFor a while, I’ve been looking for a good way to detect if binary transfer is set up properly for a Vault app.I’ve finally found that way, and its name is Fiddlerhttp://hi.csdn.net/attachment/201203/16/0_1331879230FBFw.gifIf you don’t know what Fiddler is, it’s a tool that lets you monitor HTTP traffic on your computer.It’s the type of utility that has millions of uses, but I’ll be focusing only on using it to help with Vault programming.Since Vault uses web services for server communication, you can use Fiddler to verify that your files are transferring properly.One of the aspects of the Vault API is that you need to configure things very specifically in order to get files to transfer in a binary mode.If you get a step wrong, then files get transferred as text.   But your app still works, so it’s a tricky problem to locate.I’ll show you how to use Fiddler to verify the binary transfer.Steps:
[*]Install Fiddler.
[*]Open Fiddler.
[*]Run your app.Make sure to have a real computer name as the Vault server; do not use “localhost” or “127.0.0.1”.
[*]Upload or download a file.The size of the file does not matter, but I suggest a binary file, such as an image.
[*]In Fiddler, locate the entry that corresponds to the API call that performed the file transfer.

[*]The left pane, shows all the HTTP requests.Vault API calls will show the URL of the web service.
[*]The right top pane shows the outgoing request.For Vault API calls, this has the raw SOAP data, including the function name and parameter set.
[*]The bottom right pane shows the incoming response.For Vault API calls, this has the raw SOAP data, this has the function name and return values.
[*]You can use either pane on the right to find the function name.It’s best to use the Text View and scroll to the bottom of the pane.The element directly inside <soap:Body> is the function name.
[*]If you are doing an upload, you want to check the outgoing pane at the right-top.If you are doing a download, you want to check the incoming pane at the right-bottom.
[*]If you configured things correctly, there should be a section at the bottom indicating a MIME attachment.There may also be a gibberish representation of the binary data.
If you configured things incorrectly, there will be no MIME attachment.The file data will show as a large text string in a function parameter or return value.
If things are good, Fiddler should show something like this:
http://justonesandzeros.typepad.com/images/2012/Fiddler/GoodResult_scaled.png
(click image for larger view)
If things are bad, Fiddler will show something like this:
http://justonesandzeros.typepad.com/images/2012/Fiddler/badresult_scaled.png
(click image for larger view)
NOTE:When things are configured incorrectly, with MTOM not enabled, you can use the XML View in Fiddler.When MTOM is correctly turned on, then the XML View is blank.

妮可 发表于 2016-3-23 10:36:02

<( ̄ˇ ̄)/路过

萧妃 发表于 2014-2-13 10:09:49

学习

JHXT杰西卡 发表于 2014-2-13 10:22:34

感谢分享

一梦千寻 发表于 2014-2-18 14:31:53

(*^__^*) 嘻嘻……

codywu 发表于 2014-2-18 14:33:25

顶......
楼下跟上.....

极HONDA速 发表于 2014-2-21 14:49:22

顶起来…………

入樽 发表于 2014-2-25 10:57:48

顶......
楼下跟上.....

长风 发表于 2014-2-25 10:59:22

路过!!!
不发表意见……

冰山 发表于 2014-2-25 11:01:50

路过!!!
帮顶……

野风 发表于 2014-2-25 11:02:45

顶起来…………

龙龙..! 发表于 2014-2-25 11:05:29

路过!!!
帮顶……

大头佬 发表于 2014-2-25 11:06:33

顶......
楼下跟上.....

老鼠仔CH 发表于 2014-2-25 11:08:56

顶起来…………

lw7511 发表于 2014-2-25 11:12:47

路过!!!
不发表意见……

悠悠筱荷 发表于 2014-2-25 11:15:38

顶!!!!!!!!!!
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 免费的工具-Fiddler(查探Vault API的调用流程)