서비스 작업

서비스 작업은 서비스의 특정 작업과 연결된 코드 및 메타데이터입니다.

WSDL의 관점에서, 지정된 portType에 대한 WSDL 문서에 정의된 각 wsdl:operation은 서비스 작업입니다.

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://Example.org" 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" 
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" 
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" targetNamespace="http://Example.org" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
 <wsdl:portType name="ICalculator">
  <wsdl:operation name="Add">
   <wsdl:input wsaw:Action="http://Example.org/ICalculator/Add" 
   message="tns:ICalculator_Add_InputMessage" />
   <wsdl:output wsaw:Action="http://Example.org/ICalculator/AddResponse" 
   message="tns:ICalculator_Add_OutputMessage" />
  </wsdl:operation>
 </wsdl:portType>
</wsdl:definitions>

서비스 모델 내의 각 서비스 작업은 WS_OPERATION_DESCRIPTION. WS_OPERATION_DESCRIPTION wsutil.exe에서 생성됩니다.

각 wsdl:operation에 대해 도구는 별도의 WS_OPERATION_DESCRIPTION 생성합니다.

wsutil.exe WS_CONTRACT_DESCRIPTION 생성하는 방법을 보여 주는 다이어그램

static WS_OPERATION_DESCRIPTION serviceOperationsICalculator[] =
{
    {
        // Add Method
        &messageDescriptionAddICalculator,
        &messageDescriptionAddResponseICalculator,
        WsCountOf(parametersAddICalculator),
        ICalculator_Add_Stub 
    }
};

코드 측면에서 각 서비스 작업에는 연결된 함수가 있습니다. 이 함수의 정의는 클라이언트와 서버에 따라 다릅니다.

서비스 작업은 다음으로 분류됩니다.

이 분류는 주로 서버의 서명 레이아웃과 서비스 작업의 클라이언트 쪽 구현을 기반으로 합니다.

WSDL 지원 섹션도 참조하세요.

다음 열거형은 서비스 작업에 사용됩니다.

다음 구조체는 서비스 작업에 사용됩니다.