如何在 Windows 7 笔记本电脑中拦截/查看来自 android 设备的soap请求和响应? [英] how to intercept/view a soap request and response from android device in windows 7 laptop?

查看:37
本文介绍了如何在 Windows 7 笔记本电脑中拦截/查看来自 android 设备的soap请求和响应?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名安卓开发者.最近我正在研究一个具有 SOAP Web 服务的项目.我正在使用 ksoap 进行请求和响应.但是我需要一个工具来在运行时捕获/查看 SOAP 请求和响应.类似于 Windows 7-64 位版本 SOAP 的mitm 代理"的工具.

I am a android developer. Recently I am working on a project having SOAP web services. I am using ksoap for request and response. But I need a tool to capture/view the SOAP request and Response on the run time. A tool similarly to "mitm proxy" for SOAP for windows 7-64 bit version.

有人可以帮忙吗?

我试过了

  • 打嗝,但无法生成证书文件.
  • charles-proxy-4.5.1-win64,但无法正确安装.

推荐答案

Profiler"不显示长时间响应的结果.我使用 Charles/MITM 代理(免费工具)找到了解决方案.

"Profiler" do not show result for long response. I found a solution for that using Charles/MITM proxy (free tool).

  1. 首先在您各自的设备(windows/linux/IOS)中安装 MITM 代理/Charles
  2. 其次,在您的移动设备中添加 cert/pem 文件
  3. 在您的手机中配置代理
  4. 将xml"文件添加到您的 android 应用程序中,如下所示

  1. First install the MITM proxy/Charles in your respective device(windows/linux/IOS)
  2. Secondly, add cert/pem files in your mobile device
  3. Configure proxy in your mobile phone
  4. add a "xml" file to your android application as follows

<?xml version="1.0" encoding="utf-8"?>
  <network-security-config>
     <debug-overrides>
        <trust-anchors>
           <!-- Trust user added CAs while debuggable only -->
           <certificates src="user" />
        </trust-anchors>
     </debug-overrides>
  </network-security-config>

  • 在xml"文件夹中另存为network_security_config.xml"

  • Save it as "network_security_config.xml" in "xml" folder

    这篇关于如何在 Windows 7 笔记本电脑中拦截/查看来自 android 设备的soap请求和响应?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆