从java调用post webservice

时间:2017-10-26 16:00:45

标签: java soap

我需要形成如此处所示的xml部分,并从java调用它以获得响应。

有人可以解释我们如何调用此Post Webservice并传递xml

POST /webservices/wsElig270.asmx HTTP / 1.1 主持人:claims.realmed.com Content-Type:text / xml;字符集= utf-8的 内容长度:长度 SOAPAction:“https://claims.realmed.com/ProcessEligibility

<?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>
    <ProcessEligibility xmlns="https://claims.realmed.com">
      <request>
        <SubmitterID>string</SubmitterID>
        <UserName>string</UserName>
        <Password>string</Password>
        <AnsiRequest>string</AnsiRequest>
        <ExternalPayerID>string</ExternalPayerID>
        <UserDefined1>string</UserDefined1>
        <UserDefined2>string</UserDefined2>
        <TimeStamp>string</TimeStamp>
      </request>
    </ProcessEligibility>
  </soap:Body>
</soap:Envelope

1 个答案:

答案 0 :(得分:0)