HG Webservice


GetHgXML


Returns a document from Healthgate's Intellect content repository corresponding to the ChunkIID specified. The web method accepts a token and a unique integer identifier called ChunkIID for the document requested.


Test

To test the operation using the HTTP GET protocol, click the 'Invoke' button.
Parameter Value
ChunkIID:
Token:

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /HGWebservice/HGWebservice.asmx HTTP/1.1
Host: webservices.healthgate.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetHgXML"

<?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>
    <GetHgXML xmlns="http://tempuri.org/">
      <ChunkIID>int</ChunkIID>
      <Token>string</Token>
    </GetHgXML>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
    <GetHgXMLResponse xmlns="http://tempuri.org/">
      <GetHgXMLResult>xml</GetHgXMLResult>
    </GetHgXMLResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /HGWebservice/HGWebservice.asmx/GetHgXML?ChunkIID=string&Token=string HTTP/1.1
Host: webservices.healthgate.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0"?>
xml

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /HGWebservice/HGWebservice.asmx/GetHgXML HTTP/1.1
Host: webservices.healthgate.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ChunkIID=string&Token=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0"?>
xml