MainService


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

SaveDefectEnclosure

Appends a new enclosure to an existing defect.

The method returns the Defect in its state after it has been updated (with all enclosures).

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/SaveDefectEnclosure"

<?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>
    <SaveDefectEnclosure xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_defectId>int</_defectId>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_text>string</_text>
      <_enclosureType>Note or Description or ReplicationProcedure or Resolution</_enclosureType>
    </SaveDefectEnclosure>
  </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>
    <SaveDefectEnclosureResponse xmlns="http://aqua-api.andagon.com/">
      <SaveDefectEnclosureResult>
        <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>
      </SaveDefectEnclosureResult>
    </SaveDefectEnclosureResponse>
  </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>
    <SaveDefectEnclosure xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_defectId>int</_defectId>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_text>string</_text>
      <_enclosureType>Note or Description or ReplicationProcedure or Resolution</_enclosureType>
    </SaveDefectEnclosure>
  </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>
    <SaveDefectEnclosureResponse xmlns="http://aqua-api.andagon.com/">
      <SaveDefectEnclosureResult>
        <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>
      </SaveDefectEnclosureResult>
    </SaveDefectEnclosureResponse>
  </soap12:Body>
</soap12:Envelope>