posted 15 years ago
Rajamani,
You understood it right but your example needs to be modified. First of all, input message part refers to a 'global element'..., this means that
(1) the message must refer to an 'element' as opposed to 'type'
(2) it must be a global element. Global elements in XML are defined as outer level elements (it has no parent element)
(3) the name of the element in schema must be same as the name of the operation for the input message. The convention is to represent output message with an element that has the name 'operation name+Response'
Example:
In WSDL
<message name="sayHello">
<part name="parameters" element="tns:sayHello"/>
</message>
...
<portType name="HelloWorld">
<operation name="sayHello">
...
Note: (1) part refers to an element as opposed to a type (2) the local name of the element (sayHello) is the same as the operation name
In schema
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" all the namespaces>
<xs:element name="sayHello" type="tns:sayHello"/>
...
Note: sayHello is a global element
Now comes the important question:
1. Why do you think these rules apply to document and not RPC style?
2. Why do you think these rules apply to wrapper style?
If you know the answers, you won't have to remember the rules.
Hint: What would happen to two methods in a single class with identical signatures without these rules?