MainService


Klicken Sie hier, um die vollständige Vorgangsliste anzuzeigen.

GetDefect

Retrieves a defect and all of its data. This includes all of the defects's fields and also the enclosures.

The enclosures are retrieved in one of the following formats: Html, RtfWithImages or RtfWithoutImages. In the formats Html and RtfWithoutImages all images are removed from the text and substituted by special markers of the form AQUAID...AQUAID with a number between the markers. The number is an aqua ID for which you can find the corresponding ScreenShotInfo data in the ScreenShots collection of the defect. The image data for the ScreenShotInfo can be retrieved using the method GetScreenShots. In the RtfWithoutImages format the AQUAID...AQUAID markers should be simply replaced by the image data. If you are working with the Html format you should replace the AQUAID...AQUAID markers with an img tag and save the picture data to a file.

The content of dictionary fields (like the TargetVersion) is an integer value. This integer value can be mapped to a human-readable string by evaluating the results of the GetProjectInfo and specifically its DefectTemplate field.

Parameter '_getEnclosures' controls whether returned defect contains enclosures data (in Enclosures collection). If not set, returned collection is empty (can decrease amount of data to be transferred when only base fields are required).

Test

Das Testformular ist nur für Anforderungen vom lokalen Computer verfügbar.

SOAP 1.1

Es folgt ein Beispiel für eine SOAP 1.1-Anforderung und -Antwort. Die angezeigten Platzhalter müssen durch tatsächliche Werte ersetzt werden.

POST /aquaAPI/mainservice.asmx HTTP/1.1
Host: aqua-demo2.andagon.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://aqua-api.andagon.com/GetDefect"

<?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>
    <GetDefect xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_defectId>int</_defectId>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_getEnclosures>boolean</_getEnclosures>
    </GetDefect>
  </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>
    <GetDefectResponse xmlns="http://aqua-api.andagon.com/">
      <GetDefectResult>
        <Browser>int</Browser>
        <FoundBuild>string</FoundBuild>
        <FoundTime>dateTime</FoundTime>
        <ImplementedAt>dateTime</ImplementedAt>
        <ImplementedIn>string</ImplementedIn>
        <ReportedBy>string</ReportedBy>
        <Reproducibility>int</Reproducibility>
        <Enclosures>
          <DefectEnclosure>
            <Date>dateTime</Date>
            <EditorId>int</EditorId>
            <EnclosureType>Note or Description or ReplicationProcedure or Resolution</EnclosureType>
            <RichText>string</RichText>
          </DefectEnclosure>
          <DefectEnclosure>
            <Date>dateTime</Date>
            <EditorId>int</EditorId>
            <EnclosureType>Note or Description or ReplicationProcedure or Resolution</EnclosureType>
            <RichText>string</RichText>
          </DefectEnclosure>
        </Enclosures>
      </GetDefectResult>
    </GetDefectResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

Es folgt ein Beispiel für eine SOAP 1.2-Anforderung und -Antwort. Die angezeigten Platzhalter müssen durch tatsächliche Werte ersetzt werden.

POST /aquaAPI/mainservice.asmx HTTP/1.1
Host: aqua-demo2.andagon.com
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>
    <GetDefect xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_defectId>int</_defectId>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_getEnclosures>boolean</_getEnclosures>
    </GetDefect>
  </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>
    <GetDefectResponse xmlns="http://aqua-api.andagon.com/">
      <GetDefectResult>
        <Browser>int</Browser>
        <FoundBuild>string</FoundBuild>
        <FoundTime>dateTime</FoundTime>
        <ImplementedAt>dateTime</ImplementedAt>
        <ImplementedIn>string</ImplementedIn>
        <ReportedBy>string</ReportedBy>
        <Reproducibility>int</Reproducibility>
        <Enclosures>
          <DefectEnclosure>
            <Date>dateTime</Date>
            <EditorId>int</EditorId>
            <EnclosureType>Note or Description or ReplicationProcedure or Resolution</EnclosureType>
            <RichText>string</RichText>
          </DefectEnclosure>
          <DefectEnclosure>
            <Date>dateTime</Date>
            <EditorId>int</EditorId>
            <EnclosureType>Note or Description or ReplicationProcedure or Resolution</EnclosureType>
            <RichText>string</RichText>
          </DefectEnclosure>
        </Enclosures>
      </GetDefectResult>
    </GetDefectResponse>
  </soap12:Body>
</soap12:Envelope>