1 22 package org.jboss.test.webservice.admindevel; 23 24 27 public class HelloJSEImpl 28 { 29 public String helloString(String name) 30 { 31 return "Hello " + name + "!"; 32 } 33 34 public HelloObj helloBean(HelloObj bean) 35 { 36 String msg = helloString(bean.getMsg()); 37 HelloObj hro = new HelloObj(msg); 38 return hro; 39 } 40 41 public HelloObj[] helloArray(HelloObj[] query) 42 { 43 HelloObj[] reply = new HelloObj[query.length]; 44 for (int n = 0; n < query.length; n++) 45 { 46 HelloObj hello = (HelloObj)query[n]; 47 String msg = helloString(hello.getMsg()); 48 HelloObj hro = new HelloObj(msg); 49 reply[n] = hro; 50 } 51 return reply; 52 } 53 } 54 | Popular Tags |