Câu hỏi phỏng vấn SOA
Câu hỏi

Enlist the operation typ...

Câu trả lời

In WSDL (Web Services Description Language), there are four basic patterns of operation types that define how messages are exchanged between the client and the web service. These operation types are:

  1. One-way:

    • The service receives a message but does not return a response.
    • Example grammar:
      <wsdl:definitions .... >
        <wsdl:portType .... >
          <wsdl:operation name="operationName">
            <wsdl:input name="inputName" message="inputMessage"/>
          </wsdl:operation>
        </wsdl:portType>
      </wsdl:definitions>
    • This type of operation has a single input element and no output element[2][5][8].
  2. Request-response:

    • The service receives a message and sends a response.
    • Example grammar:
      <wsdl:definitions .... >
        <wsdl:portType .... >
          <wsdl:operation name="operationName" parameterOrder="parameterOrder">
            <wsdl:input name="inputName" message="inputMessage"/>
            <wsdl:output name="outputName" message="outputMessage"/>
            <wsdl:fault name="faultName" message="faultMessage"/>
          </wsdl:operation>
        </wsdl:portType>
      </wsdl:definitions>
    • This type of operation has one input element followed by one output element, and optionally, one or more fault elements to encapsulate errors[2][4][5].
  3. Solicit-response:

    • The service sends a message and receives a response.
    • Example grammar:
      <wsdl:definitions .... >
        <wsdl:portType .... >
          <wsdl:operation name="operationName" parameterOrder="parameterOrder">
            <wsdl:output name="outputName" message="outputMessage"/>
            <wsdl:input name="inputName" message="inputMessage"/>
            <wsdl:fault name="faultName" message="faultMessage"/>
          </wsdl:operation>
        </wsdl:portType>
      </wsdl:definitions>
    • This type of operation has one output element followed by one input element, and optionally, one or more fault elements[2][5].
  4. Notification:

    • The service sends a message but does not wait for a response.
    • Example grammar:
      ...
senior

senior

Gợi ý câu hỏi phỏng vấn

senior

What are different components of WSDL?

expert

Is binding between SOAP and WSDL possible?

senior

What are the elements of a SOAP message?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào