SóProvas


ID
1738057
Banca
CESPE / CEBRASPE
Órgão
ANP
Ano
2013
Provas
Disciplina
Arquitetura de Software
Assuntos

Acerca do SOAP (simple object access protocol) e web services, julgue o item subsequente. 

Em uma mensagem SOAP que possui o atributo env:mustUnderstand=true no cabeçalho, o bloco deve ser processado de acordo com as especificações constituintes do SOAP. 


Alternativas
Comentários
  • The mustUnderstand Attribute

     

    The other attribute that must be added only to a SOAPHeaderElement object is mustUnderstand. This attribute says whether or not the recipient (indicated by the actor attribute) is required to process a header entry. When the value of the mustUnderstand attribute is true, the actor must understand the semantics of the header entry and must process it correctly to those semantics. If the value is false, processing the header entry is optional. A SOAPHeaderElement object with no mustUnderstand attribute is equivalent to one with amustUnderstand attribute whose value is false.

    The mustUnderstand attribute is used to call attention to the fact that the semantics in an element are different from the semantics in its parent or peer elements. This allows for robust evolution, ensuring that a change in semantics will not be silently ignored by those who may not fully understand it.

    If the actor for a header that has a mustUnderstand attribute set to true cannot process the header, it must send a SOAP fault back to the sender. (See Using SOAP Faults.) The actor must not change state or cause any side effects, so that, to an outside observer, it appears that the fault was sent before any header processing was done.

     

    FONTE: https://docs.oracle.com/cd/E19575-01/819-3669/bnbil/index.html

  • MustUnderstand attribute

     

    Indica se um elemento Header é opcional ou obrigatório. Se estabelecido a true, o destinatário (recipiente) deve entender e processar o atributo Header de acordo com a sua semântica definida, ou retornar uma falha.

     

    FONTE: www.inf.ufsc.br/~bosco/old_page/downloads/8IntroducaoaoSOAP.doc

  • Os valores possíveis para o atributo mustUnderstand são {0,1}.

    Fonte: https://www.w3schools.com/xml/xml_soap.asp