Java Reference
In-Depth Information
return 1;
}
From this method, JAX-WS will generate the following WSDL fragment:
<message name="doItResponse">
<part name="parameters" element="tns:doItResponse"></part>
</message>
<portType name="Worker">
<operation name="doIt">
<input message="tns:doIt"></input>
<output message="tns:doItResponse"></output>
</operation>
</portType>
This fragment indicates an operation whose response type is defined in the associated
schema's doItResponse element type. Because of your customization, that will look like this:
<xs:complexType name="doItResponse">
<xs:sequence>
<xs:element name="doItOne" type="xs:int"></xs:element>
</xs:sequence>
</xs:complexType>
The schema element name gets the value of the @WebResult.name .
Search WWH ::




Custom Search