Java Reference
In-Depth Information
<xsd:element name=" getTemperaturesResponse">
<xsd:element maxOccurs="1" minOccurs="1" name=" out"
nillable="true" type=" tns:ArrayOfTemperatureInfo" />
<wsdl:message name=" getTemperaturesRequest">
<wsdl:part name="parameters" element=" tns:getTemperatures" />
<wsdl:message name=" getTemperaturesResponse">
<wsdl:part name="parameters" element=" tns:getTemperaturesResponse" />
<wsdl:portType name=" WeatherServicePortType">
<wsdl:operation name=" getTemperatures">
<wsdl:input name="getTemperaturesRequest"
message=" tns:getTemperaturesRequest" />
<wsdl:output name="getTemperaturesResponse"
message=" tns:getTemperaturesResponse" />
<wsdl:service name="WeatherService">
<wsdl:port name="WeatherServiceHttpPort"
<wsdlsoap:address location=
" http://localhost:8080/weather/services/WeatherService" />
From the preceding WSDL file, you can see that XFire generates this file by making the following
The package 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