WSDL rules and examples (2)

xiaoxiao2021-03-06  47

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: // Composite type

// Represents a message of a composite type

// porttype Lei Tong

// Binds with the implementation, here SOAP mode

// Used to publish services

转载请注明原文地址:https://www.9cbs.com/read-116404.html

New Post(0)