Java Reference
In-Depth Information
<xsd:element name="
getTemperaturesResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="
out"
nillable="true" type="
tns:ArrayOfTemperatureInfo" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="
getTemperaturesRequest">
<wsdl:part name="parameters" element="
tns:getTemperatures" />
</wsdl:message>
<wsdl:message name="
getTemperaturesResponse">
<wsdl:part name="parameters" element="
tns:getTemperaturesResponse" />
</wsdl:message>
<wsdl:portType name="
WeatherServicePortType">
<wsdl:operation name="
getTemperatures">
<wsdl:input name="getTemperaturesRequest"
message="
tns:getTemperaturesRequest" />
<wsdl:output name="getTemperaturesResponse"
message="
tns:getTemperaturesResponse" />
</wsdl:operation>
</wsdl:portType>
...
<wsdl:service name="WeatherService">
<wsdl:port name="WeatherServiceHttpPort"
binding="tns:WeatherServiceHttpBinding">
<wsdlsoap:address location=
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
From the preceding WSDL file, you can see that XFire generates this file by making the following
conversions:
•
The package
com.apress.springenterpriserecipes.weather
is turned into the
target namespace (
targetNamespace
)
•
The class
WeatherService
is turned into the port type
WeatherServicePortType
.
The method
getTemperatures()
is turned into the operation
getTemperatures
.
•
The method arguments are turned into the
getTemperatures
element, including
two subelements,
in0
and
in1
, whose types are
string
and the
ArrayOfDateTime
complex type.
•
The return value is turned into the
getTemperaturesResponse
element, including
the subelement
out
, whose type is the
ArrayOfTemperatureInfo
complex type. It's
an array of another complex type,
TemperatureInfo
, which has five elements:
average
,
city
,
date
,
max
, and
min
.
•
Search WWH ::
Custom Search