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>