WSDL Java 連結

Java™ 連結文件含有供 Rational® Developer 產品使用的 Java 連結資訊。您可以產生其中包含所有 WSDL 元素的整體 WSDL 文件,也可以產生個別 WSDL Java 連結文件。

下列 WSDL Java 連結文件是依據 StockQuoteService 範例。

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="StockQuoteServiceJava"
targetNamespace="http:///"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/"
    xmlns:java="http://schemas.xmlsoap.org/wsdl/java/"
    xmlns:tns="http:///"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <import location="StockQuoteService.wsdl"
namespace="http:///"/>
    <binding name="StockQuoteServiceJavaBinding"
type="tns:StockQuoteService">
        <java:binding/>
        <format:typeMapping encoding="Java" style="Java">
            <format:typeMap formatType="java.lang.String"
typeName="xsd:string"/>
            <format:typeMap formatType="float"
typeName="xsd:float"/>
        </format:typeMapping>
        <operation name="getQuote">
            <java:operation methodName="getQuote"
                parameterOrder="symbol" returnPart="result"/>
            <input name="getQuoteRequest"/>
            <output name="getQuoteResponse"/>
        </operation>
    </binding>
    <service name="StockQuoteServiceService">
        <port binding="tns:StockQuoteServiceJavaBinding"
name="StockQuoteServiceJavaPort">
            <java:address className="StockQuoteService"/>
        </port>
    </service>
</definitions>
使用條款 | 讀者意見
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.