| | english | español | français |
  Home|Resources|BCH Interoperability Services 3.0|validate   Printer-friendly version

validate

Validate an XML document for conformance against the supported schemas (common formats) and controlled vocabularies.

[Visual Basic]

Public Sub validate(document As String)

[C#]

public void validate(string document);

Parameters

document
    An XML document

Return Value

The validate method does not return any value. However, if the method fails, SOAP exception will be thrown.

SOAP Request

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

POST /service/3.0/service.asmx HTTP/1.1
Host: bch.biodiv.org
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://bch.biodiv.org/service/3.0/validate"

<?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>
    

      <validate xmlns="http://bch.biodiv.org/service/3.0">
      

         <document>string</document>
    

      </validate>
  

   </soap:Body>

</soap:Envelope>

SOAP Response

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

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>
    

      <validateResponse xmlns="http://bch.biodiv.org/service/3.0" />
  

   </soap:Body>

</soap:Envelope>

   
   
Update on 2005-10-28
United Nations Environment Programme United Nations