What do you mean by "sample client program"? Since you're saying that you don't know what the program should be like, and don't have an example of one, I'd suggest to ask whoever gave you this task to be more specific about it. If this is related to your BPEL question, then post any follow-up questions in that topic.
I am just a beginner.I have insatalled jboss5.0.0.cr2.
I wrote a simple html program to run on it.I have copied the html file into my d:/jboss 5.0.0.cr2/server/all/deploy/root.war/jmg.html
and in my browser i gave this http://localhost:8080/jmg.html I got this file not found error(404 error).please help me to get through this.
How did you start the app server? Did you pass in the option "-c all". If not, then you are running the 'default' config not the 'all' config. So your HTML file should be located at d:/jboss 5.0.0.cr2/server/default/deploy/root.war/jmg.html
Why are you running 5.0.0.CR2? That is a very old candidate release from about a year ago. You should be using 5.1.0.GA, or 5.0.1.GA
By the way, since you are new to JBoss AS, go to the JBoss in Action book's web site and get the free first chapter - it has everything you need to get started.