Health Library Webservice


GetSearchResults


Returns search results xml containing information about articles which meets the search criteria. This web method accepts a token that is available to the customer during registration.


Test

To test the operation using the HTTP GET protocol, click the 'Invoke' button.
Parameter Value
Token:
SearchTerm:
SetNumber:
NumHits:
CollectionIIDsToSearch:

SOAP

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

POST /healthinfo/Library.asmx HTTP/1.1
Host: webservices.healthgate.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservices.healthgate.com/HealthInfo/GetSearchResults"

<?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>
    <GetSearchResults xmlns="http://webservices.healthgate.com/HealthInfo/">
      <Token>string</Token>
      <SearchTerm>string</SearchTerm>
      <SetNumber>int</SetNumber>
      <NumHits>int</NumHits>
      <CollectionIIDsToSearch>string</CollectionIIDsToSearch>
    </GetSearchResults>
  </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>
    <GetSearchResultsResponse xmlns="http://webservices.healthgate.com/HealthInfo/">
      <GetSearchResultsResult>xml</GetSearchResultsResult>
    </GetSearchResultsResponse>
  </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 /healthinfo/Library.asmx/GetSearchResults?
Token=string&
SearchTerm=string&SetNumber=string&NumHits=string&CollectionIIDsToSearch=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 /healthinfo/Library.asmx/GetSearchResults HTTP/1.1
Host: webservices.healthgate.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

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

<?xml version="1.0"?>
xml