简体   繁体   English

从Java调用发布Web服务

[英]call post webservice from java

I need to form the xml part as shown here and call it from java to get the response. 我需要形成如下所示的xml部分,并从java调用它以获取响应。

Can some one explain how we can call this Post Webservice and pass the xml 有人可以解释一下如何调用此Post Webservice并传递xml吗?

POST /webservices/wsElig270.asmx HTTP/1.1 Host: claims.realmed.com Content-Type: text/xml; POST /webservices/wsElig270.asmx HTTP / 1.1主机:Claims.realmed.com内容类型:text / xml; charset=utf-8 Content-Length: length SOAPAction: " https://claims.realmed.com/ProcessEligibility " charset = 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM