Friday, February 20, 2015

Simple Web Service.

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

@WebService()
public class DomainSearchWebService {

public void TmProntoWebService() {
}

@WebMethod()
@WebResult(name = DOMAINS)
public DomainName[] query(@WebParam(name = QUERY) final String query) {
return getDomainByQuery(query, null, null).getDomainNames();
}

No comments: