WSDL Java bindings

The Java binding document contains the Java binding information that is used by Rational Developer products. You can generate a monolithic WSDL document that contains all WSDL elements, or a separate WSDL Java Binding document.

The following WSDL Java binding document is based on the StockQuoteService Sample.

<?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>

 

Related Concepts

Web services overview
Web Services Description Language (WSDL)

Related Tasks
Developing Web services
Using the Web Services Explorer

Related Reference
Web Services Description Language (WSDL) reference
WSDL interfaces
WSDL bindings
WSDL services
WSDL EJB binding document