Web Services Programs
Interface Definition:
Package net.brainysoft.test.services;
Public interface HelloTest2 {
public string SayHello2 (string name);
public int Add (int data1,int data2);
}
Implementation class:
Package net.brainysoft.test.services;
public class Hellotest2impl implements HELLOTEST2 {
public string SayHello2 (string name) {
Return "Hello" +name;
}
public int Add (int data1,int data2) {
return data1+data2;
}
}
Axis uses version 1.3, Xfire uses version 1.0
Xfire uses spring's Servicesbean method to publish Web services.
The Web Services Client uses Delphi 7 to develop 10,000 consecutive calls to Web services published through axis and Web services published via Xfire (that is, continuous use after a WSDL acquisition).
Web container Tomcat 5.5.15 JDK version 1.5.05 spring version 1.2.7 rerun Tomcat every time it is invoked to ensure that memory is counted from 0.
Axis calls 10,000 memory footprint 48M, spents 1 minutes 40 seconds Xfire calls 10,000 times memory Footprint 38M, spents 1 minutes 05 seconds.
Using the Axis2 test, it is found that Web services published through AXIS2 can be imported in Delphi, but the runtime will complain.
CPU is P4 2.66 512M memory