다음을 통해 공유


이용된 웹 서비스의 SOAP 헤더

웹 참조 추가 대화 상자를 사용하여 오케스트레이션에 웹 서비스를 추가한 후 웹 서비스에서 WSDL(Web Services Description Language)이 정의하는 SOAP 헤더를 사용할 수 있습니다.

참고

사용된 웹 서비스는 알 수 없는 SOAP 헤더를 지원하지 않습니다.

사용된 웹 서비스에 대한 WSDL에는 바인딩 요소의 정의된 SOAP 헤더가 나열됩니다. 다음 예제에서는 사용된 웹 서비스에 대한 WSDL 파일의 바인딩 요소를 보여 줍니다.

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://SOAPHeaderWS.ItemAvailability" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://SOAPHeaderWS.ItemAvailability" xmlns="http://schemas.xmlsoap.org/wsdl/">
       <types>
             <s:schema elementFormDefault="qualified" targetNamespace="http://SOAPHeaderWS.ItemAvailability">

                    <s:element name="OrigDest" type="s0:OrigDest"/>
                    <s:complexType name="OrigDest">
                           <s:sequence>
                                 <s:element minOccurs="0" maxOccurs="1" name="Origination" type="s:string"/>
                                 <s:element minOccurs="0" maxOccurs="1" name="Destination" type="s:string"/>
                           </s:sequence>
                    </s:complexType>
             </s:schema>
       </types>

       <binding name="ItemAvailabilityServiceSoap" type="s0:ItemAvailabilityServiceSoap">
             <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
             <operation name="ItemAvailability">
                    <soap:operation soapAction="http://SOAPHeaderWS.ItemAvailability/ItemAvailability" style="document"/>
                    <input>
                           <soap:body use="literal"/>
                           <soap:header message="s0:ItemAvailabilityOrigDest" part="OrigDest" use="literal"/>
                    </input>
                    <output>
                           <soap:body use="literal"/>
                           <soap:header message="s0:ItemAvailabilityOrigDest" part="OrigDest" use="literal"/>
                    </output>
             </operation>
       </binding>
       <service name="ItemAvailabilityService">
             <port name="ItemAvailabilityServiceSoap" binding="s0:ItemAvailabilityServiceSoap">
                    <soap:address location="http://localhost/SOAPHeaderWS/ItemAvailability.asmx"/>
             </port>
       </service>
</definitions>

SOAP 헤더 사용에 대한 자세한 내용은 의 .NET Framework 설명서에서 "SOAP 헤더 사용"을 https://go.microsoft.com/fwlink/?LinkId=62266참조하세요.

섹션 내용