Ir para conteúdo principal

Web Método SaveRequest

Web Método SaveRequest da Interface SOAP do CAP Workflow.

Luis Fernando Gushiken avatar
Escrito por Luis Fernando Gushiken
Atualizado há mais de 2 anos

SaveRequest

Salva dados em uma tarefa de uma solicitação em andamento, sem avançar para a próxima etapa.

Disponível no Web Service CAPRequests.asmx

Parâmetros

  • requestId [ Integer ]: ID da solicitação.

  • cultureName [ String ]: Nome da Cultura (utilizado para identificação do Workflow, Área, localização de Atributos e Etapas e/ou no retorno de valores em um idioma específico).

  • metadataValues [ MetadataValue [] ]: Arranjo de Atributos

Exemplo de Solicitação/Resposta SOAP (v1.2)

POST /Services/CAPRequests.asmx HTTP/1.1
Host: qa.capworkflow.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>
<SaveRequest xmlns="http://iteris.cap.webservices">
<requestId>int</requestId>
<cultureName>string</cultureName>
<metadataValues>
<MetadataValue>
<Name>string</Name>
<Value>string</Value>
<DisplayValue>string</DisplayValue>
<DisplayMode>None or ReadOnly or Edit or Required or Hidden</DisplayMode>
<Attachments>
<MetadataAttachment xsi:nil="true" />
<MetadataAttachment xsi:nil="true" />
</Attachments>
<Type>None or Text or Number or DateTime or Choice or YesNo or Attachment or ListLookup or Password or People or MultilineText or Hyperlink or Table</Type>
</MetadataValue>
<MetadataValue>
<Name>string</Name>
<Value>string</Value>
<DisplayValue>string</DisplayValue>
<DisplayMode>None or ReadOnly or Edit or Required or Hidden</DisplayMode>
<Attachments>
<MetadataAttachment xsi:nil="true" />
<MetadataAttachment xsi:nil="true" />
</Attachments>
<Type>None or Text or Number or DateTime or Choice or YesNo or Attachment or ListLookup or Password or People or MultilineText or Hyperlink or Table</Type>
</MetadataValue>
</metadataValues>
<comments>string</comments>
</SaveRequest>
</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>
<SaveRequestResponse xmlns="http://iteris.cap.webservices">
<SaveRequestResult>boolean</SaveRequestResult>
</SaveRequestResponse>
</soap12:Body>
</soap12:Envelope>

Isto respondeu à sua pergunta?