WQX Web Services


Click here for a complete list of operations.

GetDomainValues

Retrieve all allowed values for a specific domain. When domainValue is an empty string or 'ALL', then all values for all domains will be returned. Return value is a zip file in the form of a byte array. The zip file always contains just one XML document inside it.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

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

POST /WQXWeb/services.asmx HTTP/1.1
Host: cdx.epa.gov
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.epa.gov/wqx/GetDomainValues"

<?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>
    <GetDomainValues xmlns="http://www.epa.gov/wqx/">
      <domainName>string</domainName>
    </GetDomainValues>
  </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>
    <GetDomainValuesResponse xmlns="http://www.epa.gov/wqx/">
      <GetDomainValuesResult>base64Binary</GetDomainValuesResult>
    </GetDomainValuesResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

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

POST /WQXWeb/services.asmx HTTP/1.1
Host: cdx.epa.gov
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetDomainValues xmlns="http://www.epa.gov/wqx/">
      <domainName>string</domainName>
    </GetDomainValues>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetDomainValuesResponse xmlns="http://www.epa.gov/wqx/">
      <GetDomainValuesResult>base64Binary</GetDomainValuesResult>
    </GetDomainValuesResponse>
  </soap12:Body>
</soap12:Envelope>