Webservice是SOAP+XML,SOAP是基于Http的,Http底层是Socket,先回顾一下Socket: Server: public class Server { public static void main(String[] args) throws Exception { ServerSocket ss = new ServerSocket(6789); while(true){ Socket s = ss.accept(); InputStream is = s.getI…