A wsdl:part defines a section of a wsdl:message. The part can be described by a type or an element. If a type is used, an element name will be generated behind-the-scenes based on the operation name. The preferred alternative is to name your own element in the wsdl:types section and to use that name and namespace consistently throughout the document.
This post is based on an EA example from Fixing Element Names in EA-Generated WSDL Docs . In that example, toplevel elements (xsd:element) were added alongside complexTypes. This makes the xsd:elements available by the Select Type dialog.
|xsd:element and xsd:complexType Available in Select Type Dialog|
- Navigate into the Messages section.
- Press F9 to bring up the Attributes dialog.
- Select the attribute (OrderRequest in this case).
- Press the ... button next to the Type text box.
- From the Select Type window, select the element (rather than the complexType).