WSDL EJB bindings

The EJB bindings section of a WSDL document contains the EJB binding information. You can generate a monolithic WSDL document that contains all WSDL elements, or a separate WSDL EJB binding document.

The following WSDL EJB binding document is based on the Temperature Conversion tutorial.

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ConvertTemperatureEJB"
    targetNamespace="http://sample/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ejb="http://schemas.xmlsoap.org/wsdl/ejb/"
    xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/"
    xmlns:tns="http://sample/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <import location="ConvertTemperature.wsdl"
namespace="http://sample/"/>
    <binding name="ConvertTemperatureEJBBinding"
type="tns:ConvertTemperature">
        <ejb:binding/>
        <format:typeMapping encoding="EJB" style="Java">
            <format:typeMap formatType="double"
typeName="xsd:double"/>
        </format:typeMapping>
        <operation name="fahrenheitToCelsius">
            <ejb:operation methodName="fahrenheitToCelsius"
                parameterOrder="fahrenheitValue"
returnPart="result"/>
            <input name="fahrenheitToCelsiusRequest"/>
            <output name="fahrenheitToCelsiusResponse"/>
        </operation>
        <operation name="celsiusToFahrenheit">
            <ejb:operation methodName="celsiusToFahrenheit"
                parameterOrder="celsiusValue"
returnPart="result"/>
            <input name="celsiusToFahrenheitRequest"/>
            <output name="celsiusToFahrenheitResponse"/>
        </operation>
    </binding>
    <service name="ConvertTemperatureService">
        <port binding="tns:ConvertTemperatureEJBBinding"
name="ConvertTemperatureEJBPort">
            <ejb:address
className="sample.ConvertTemperature"/>
        </port>
    </service>
</definitions>

 

Related Concepts

Web services development
Web Services Description Language (WSDL)

Related Tasks
Developing Web services
Using the Web Services Explorer