zoukankan      html  css  js  c++  java
  • Fiddler 调用java webserivces

    这是java写的webservice,并发布成功。

    使用Fidder Get调用和POST调用

    get比较简单:

    http://192.168.3.176:8080/AppTestService/services/KRNet?method=doAction2&type=KR_GET_PATIENT&content=1

     POST则稍微复杂一些

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <doAction2 xmlns="http://tempuri.org/">
    <type>kr_Get_patient</type>
    <content>内容是1234</content>
    </doAction2>
    </soap:Body>
    </soap:Envelope>

    下面是截图示例:

    一定要注意在Header中增加SOAPAction: ""

    否则会提示"no SOAPAction header!"

     

  • 相关阅读:
    hdoj:2075
    hdoj:2072
    hdoj:2071
    hdoj:2070
    hdoj:2069
    test001
    hdoj:2067
    hdoj:2061
    hdoj:2058
    hdoj:2057
  • 原文地址:https://www.cnblogs.com/ligl/p/7865793.html
Copyright © 2011-2022 走看看