Public static list <string> getoperationlist (string wsdlurl) throws exception {document = getdefinitiondocument (wsdlurl); XPath = getxpath (document); nodelist operations = domutil. findnodelist (document, "WSDL: Definitions/WSDL: porttype/WSDL: Operation"); // The returned result set listlist <string> operationlist = new arraylist <string> (); for (INT I = 0; I <operations. getlength (); I ++) {node operation = Operator Ations. item (I); string operationname = domutil. getnodename (operation); If (operationname! = NULL &&! "". Equals (operationname) {log. debug ("resolution" + wsdlurl + "method:" + operationname); operationlist. add (operationname) ;}}// remove repeated operation (soap, get, post) List <string> result = new arraylist <string> (); for (INT I = 0; I <operationlist. size ()/3; I ++) {string method = operationlist. get (I); result. add (I, method);} // return the final result resultreturn result ;}
The architecture packages dom4j, JDOM, and wsdl4j used in the preceding Method