При этом OTA proxy также может создаваться автоматически
для данного Web сервиса, либо быть универсальным для
всех сгенеренных апплетов.
Как это выглядит практически:
1) Это типичный WSDL файл (с сайта www.xmethods.net).
Описываемый здесь сервис позволяет по введенному почтовому
индексу выдать температуру воздуха в указанном районе.
<?xml version="1.0"?>
<definitions name = "TemperatureService" targetNamespace
= "http://www.mycompany.com/tmodels/Temperature.wsdl"
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name = "getTempRequest">
<part name = "zipcode" type
= "xsd:string"/>
</message>
<message name = "getTempResponse">
<part name = "return" type
= "xsd:float"/>
</message>
<portType name = "TemperaturePortType">
<operation name = "getTemp">
<input message
= "getTempRequest" />
<output message
= "getTempResponse" />
</operation>
</portType>
<binding name = "TemperatureBinding"
type = "TemperaturePortType">
<soap:binding style = "rpc"
transport =
http://schemas.xmlsoap.org/soap/http"/>
<operation name = "getTemp">
<soap:operation soapAction=
"http://www.mycompany.com/Temperature/#getTemp"/>
<input>
<soap:body
use = "encoded" namespace =
"http://www.mycompany.com/Temperature/"
encodingStyle
= "http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output><soap:body
use =
"encoded" namespace = "http://www.mycompany.com/Temperature/"
encodingStyle
= "http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="TemperatureService">
<documentation>The Temperature
service provides temperature of city
by the zipcode
</documentation>
<port name="TemperaturePortType"
binding="TemperatureBinding">
<soap:address location=
"http://www.mycompany.com/soap/servlet/rpcrouter"/>
</port>
</service>
</definitions>
|