MainService


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

SaveDefect

Saves changes to an existing defect or creates a new one.

If the Id of the provided defect is 0, then a new defect will be created. Otherwise the existing defect is updated. Updating the defect is subject to permission checks, a PermissionException will be generated in case the logged in user does not have the right permissions to access the defect.

Parameter '_saveEnclosures' controls whether enclosures hold in Enclosures collection should be appended to an exisitng defect when updating existing defect.When creating a new defect this parameter must be 'true'.

When saving enclosures following fields of DefectEnclosure (in Enclosures collection) are taken into consideration:



Parameter '_saveRichText' denotes whether rich text fields (e.g. rich text custom fields) should be considered during save.If true, then '_format' parameter specifies format in which text are being saved (html, rtf, plain-text). Text are converted to RTF represenation automatically. If '_saveRichText' is false, then existing fields remain unchanged.

The following properties of the Defect object are not supported when saving: AttachedFiles, AttachedLinks, MindMaps.

The method returns the Defect in its state after it has been saved (including enclosures if '_saveEnclosures' parameter was set).

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

<?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>
    <SaveDefect xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_defect>
        <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>
      </_defect>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_saveEnclosures>boolean</_saveEnclosures>
      <_saveRichText>boolean</_saveRichText>
    </SaveDefect>
  </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>
    <SaveDefectResponse xmlns="http://aqua-api.andagon.com/">
      <SaveDefectResult>
        <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>
      </SaveDefectResult>
    </SaveDefectResponse>
  </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>
    <SaveDefect xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_defect>
        <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>
      </_defect>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_saveEnclosures>boolean</_saveEnclosures>
      <_saveRichText>boolean</_saveRichText>
    </SaveDefect>
  </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>
    <SaveDefectResponse xmlns="http://aqua-api.andagon.com/">
      <SaveDefectResult>
        <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>
      </SaveDefectResult>
    </SaveDefectResponse>
  </soap12:Body>
</soap12:Envelope>