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!"

 

 

posted @ 2017-11-20 12:55  ligl007  阅读(956)  评论(0编辑  收藏  举报