package com.cxfws.gkjcxx.service.impl; import java.util.List; import javax.annotation.PostConstruct; import javax.jws.WebMethod; import javax.jws.WebResult; import javax.jws.WebService; import net.sf.json.JSONArray; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.cxfws.gkjcxx.service.IXzdwxxService; import com.xt.jygl.common.BaseWebCtl; import com.xt.jygl.gkjcxx.xzdwxxgl.xzglbmxx.dao.XzglbmxxDao; import com.xt.jygl.gkjcxx.xzdwxxgl.xzglbmxx.entity.XzglbmxxEntity; /** * 行政单位信息查询(根据所在地) * @author b_zhaohang * */ @Service("xzbmWebService") @WebService(targetNamespace = "http://service.web.jsjty.com/", portName = "xzbmWebServicePort", serviceName = "xzbmWebService") public class XzdwxxService extends BaseWebCtl implements IXzdwxxService{ @Autowired private XzglbmxxDao dao; @PostConstruct private void init(){ //System.out.println("------DiexcService--init-"); } @Override @WebMethod(operationName = "findXzbm", action = "http://service.web.jsjty.com/findXZbm") @WebResult(name = "result", targetNamespace = "http://service.web.jsjty.com/") public String findXzbm(String pid,String szd) { if (!this.checkUser()){ return BaseWebCtl.NOLOGIN; } List list = dao.queryXzglbm(pid,szd); JSONArray jsons=JSONArray.fromObject(list); return jsons.toString(); } }