soupUI测试webservice接口

1.下载soupUI

 

2.填入webservice地址,如:http://******:****/eif-server/webService/eifWebService?wsdl

 

3.入参格式如下:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="*****">
   <soapenv:Header/>
   <soapenv:Body>
      <web:acceptMessage>
         <!--Optional:-->
         <arg0><![CDATA[
         <Request>
          <MessageHeader>
            <Sender>TFD</Sender>
            <Receiver>HIS</Receiver>
            <SendTime>20180118043026</SendTime>
            <EventType>BMS_OUT_DETAIL_PRICING_REFOUND</EventType>
            <MsgId>ZZJ201801180430</MsgId>
          </MessageHeader>
          <MessageBody>
        <MsgLog>
        <PatientId>****</PatientId>
        <VisitId>1001</VisitId>
        <Operator>10086</Operator>
        <AreaCode>ZJYY02</AreaCode>
        </MsgLog>
        <ChargeItemList>
          <ChargeItem>
            <ChargeItemId>11521619</ChargeItemId>
            <ItemCode>11050000100</ItemCode>
          </ChargeItem>
        </ChargeItemList>
          </MessageBody>
        </Request>
      ]]>  </arg0>
      </web:acceptMessage>
   </soapenv:Body>
</soapenv:Envelope>

 

解释:

 

soupUI测试webservice接口

 

 

 cdata是相当于集合request内容为一体
request部分为请求部分和参数

上一篇:WebService


下一篇:C# 调用Java的WebService的3种方式