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 1999, 2005. All Rights Reserved.