Hizmet İşlemi
Hizmet işlemi, bir hizmetin belirli bir işlemiyle ilişkili kod ve meta verilerdir.
WSDL açısından, belirli bir portType için WSDL belgesinde tanımlanan her wsdl:operation bir hizmet işlemidir.
<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>
Hizmet modeli içindeki her hizmet işlemi bir WS_OPERATION_DESCRIPTIONolarak verilir. WS_OPERATION_DESCRIPTION wsutil.exetarafından oluşturulur.
Her wsdl:operation için araç ayrı bir WS_OPERATION_DESCRIPTIONoluşturur.
wsutil.exe'nin nasıl WS_CONTRACT_DESCRIPTION oluşturacağı
static WS_OPERATION_DESCRIPTION serviceOperationsICalculator[] =
{
{
// Add Method
&messageDescriptionAddICalculator,
&messageDescriptionAddResponseICalculator,
WsCountOf(parametersAddICalculator),
ICalculator_Add_Stub
}
};
Kod açısından her hizmet işleminin kendisiyle ilişkilendirilmiş bir işlevi vardır. Bu işlevin tanımı istemci ve sunucular için farklıdır.
Hizmet işlemleri şu şekilde sınıflandırılır:
Bu sınıflandırma temelde sunucunun imza düzenine ve hizmet işlemlerinin istemci tarafı uygulamalarına dayanır.
Ayrıca bkz. WSDL desteği bölümüne .
Aşağıdaki numaralandırmalar hizmet işlemleriyle birlikte kullanılır:
Aşağıdaki yapılar hizmet işlemleriyle birlikte kullanılır: