WSIF 서비스가 SOAP over JMS 서비스에 액세스할 수 있도록 하는 WSDL 확장 작성

WSIF(Web Services Invocation Framework) 서비스에서 전송 메커니즘에서 JMS(Java™ Message Service)를 사용하는 SOAP 서비스에 액세스하도록 하는 WSDL(Web Services Description Language) 확장을 쓸 수 있습니다.

시작하기 전에

이 주제에서는 WebSphere® Application Server(기본 메시징 제공자 또는 WebSphere MQ 메시징 제공자와 같은 다른 제공자)를 설치한 경우 JMS 제공자를 선택 및 구성했다고 가정합니다. 그렇지 않은 경우 지금 메시징 제공자 선택에서 설명한 대로, 수행하십시오.

이 태스크 정보

SOAP 메시지가 XML만 포함하는 경우 JMS 메시지 본문 유형 TextMessage를 통해 JMS(Java Message Service) 전송 메커니즘에서 수행할 수 있습니다. SOAP 엔벨로프를 포함하는 SOAP 메시지는 JMS 메시지로 랩핑되며, 적절한 큐에 배치됩니다. 컨테이너는 JMS 메시지를 수신하고 클라이언트로 전송할 SOAP 메시지를 제거합니다.

다음 프로시저 및 연관된 코드 단편을 사용하여 WSIF 서비스에서 SOAP over JMS 서비스에 액세스하도록 하는 WSDL(Web Services Description Language) 확장을 작성하는 데 도움을 줍니다.

참고: 또한 SOAP over HTTP에 대한 WSDL 바인딩 확장을 쓸 경우 지침으로 이 프로시저를 사용할 수 있습니다. SOAP over JMS 바인딩은 SOAP over HTTP 바인딩과 거의 동일하기 때문입니다.

프로시저

SOAP over JMS 바인딩을 정의하는 WSDL 예제

<!-- Example: SOAP over JMS Text Message -->

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
        name="StockQuoteInterfaceDefinitions"
        targetNamespace="urn:StockQuoteInterface"
        xmlns:tns="urn:StockQuoteInterface"
        xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/"
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:message name="GetQuoteInput">
        <part name="symbol" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="GetQuoteOutput">
        <part name="value" type="xsd:float"/>
    </wsdl:message>

    <wsdl:portType name="StockQuoteInterface">
        <wsdl:operation name="GetQuote">
            <wsdl:input message="tns:GetQuoteInput"/>
            <wsdl:output message="tns:GetQuoteOutput"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="StockQuoteSoapJMSBinding" type="tns:StockQuoteInterface">
        <soap:binding style="rpc"
                 transport="http://schemas.xmlsoap.org/soap/jms"/>
        <wsdl:operation name="GetQuote">
            <soap:operation soapAction="urn:StockQuoteInterface#GetQuote"/>
            <wsdl:input>
                <soap:body use="encoded" namespace="urn:StockQuoteService"
                         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded" namespace="urn:StockQuoteService"
                     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="StockQuoteService">
        <wsdl:port name="StockQuoteServicePort" 
                      binding="sqi:StockQuoteSoapJMSBinding">
            <jms:address destinationStyle="queue" 
                     jndiConnectionFactoryName="myQCF"
                     jndiDestinationName="myQ"
                     initialContextFactory="com.ibm.NamingFactory" 
                     jndiProviderURL="iiop://something:900/">

                     <jms:propertyValue name="targetService"
                                        type="xsd:string"
                                        value="StockQuoteServicePort"/>

            </jms:address>

        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=twsf_prsjwe
파일 이름:twsf_prsjwe.html