Take a look at the simple Java code, we use it as a WSDL service code: //catdto.javapublic class catdto {private long id; private string name; public long getId () {return ID;} public string getname (), PUBLIC STRING GETNAME () {RETURN NAME;} public void setid (long ID) {this.id = ID;} public void setname (String name) {this.name = name;}} // Test.javapublic class test {public string echo (CATDTO CD) {Return "Hello" cd.getName ();}} then look at the WSDL: XML Version = "1.0" encoding = "UTF-8"?>
WSDL: TYPES>
wsdl: message> // Represents a message of a composite type
wsdl: message> // porttype Lei Tong
wsdl: Operation>
wsdl: porttype> // Binds with the implementation, here SOAP mode
wsdl: Input>
wsdl: Output>
wsdl: Operation>
wsdl: binding> // Used to publish services
wsdl: service>
WSDL: Definitions>