Primitive chat program using XMLRPC
Primitive chat program using XMLRPC! try this!!
This is a program in java to illustrate XMLRPC ...so copy this code..compile and run it!its fun!!
Code for PrimitiveChat.java :
import javax.swing.*;
public class PrimitiveChat {
public String printText(String str) {
System.out.println( "Received: "+str);
return "ok";
}
public static void main (String [] args) {
String input;
PrimitiveChat pc = new PrimitiveChat();
do {
input = JOptionPane.showInputDialog("Enter your message");
if( input != null ) {
pc.printText(input); // a local procedure call.
}
} while ( input != null );
System.exit(0);
}
}
OUTPUT:
No comments:
Post a Comment