Browse Source

git-svn-id: https://192.168.57.71/svn/jsgkj@151 931142cf-59ea-a443-aa0e-51397b428577

ld_xuhx 9 years ago
parent
commit
31f02126be

+ 121 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/JsjdcbsjService.java

@@ -0,0 +1,121 @@
+
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.logging.Logger;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+import com.xt.jygl.gkjcxx.ax.client.AxService;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2.4-b01
+ * Generated source version: 2.2
+ * 
+ */
+@WebServiceClient(name = "jsjdcbsjService", targetNamespace = "http://webService.jsjy.com/", wsdlLocation = "http://localhost:18088/jsjdcbsjService?wsdl")
+public class JsjdcbsjService
+    extends Service
+{
+
+    private final static URL JSJDCBSJSERVICE_WSDL_LOCATION;
+    private final static WebServiceException JSJDCBSJSERVICE_EXCEPTION;
+    public final static QName JSJDCBSJSERVICE_QNAME = new QName("http://webService.jsjy.com/", "jsjdcbsjService");
+    private final static Logger logger = Logger.getLogger(com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService.class.getName());
+
+    static {
+        URL url = null;
+        WebServiceException e = null;
+        try {
+            url = new URL("http://localhost:18088/jsjdcbsjService?wsdl");
+        } catch (MalformedURLException ex) {
+            e = new WebServiceException(ex);
+        }
+        JSJDCBSJSERVICE_WSDL_LOCATION = url;
+        JSJDCBSJSERVICE_EXCEPTION = e;
+    }
+
+    /**
+	 * 
+	 * @param ip
+	 *            :ip地址,如 192.168.0.1 或 www.webxml.com.cn
+	 * @param port
+	 *            :端口号
+	 * @return
+	 */
+	public static URL getWsdlLocationByIp(String ip, String port) {
+		URL url = null;
+		String wsdl = "http://" + ip + ":" + port + "/JsjdcbsjService?wsdl";
+		try {
+			URL baseUrl;
+			baseUrl = AxService.class.getResource(".");
+			url = new URL(baseUrl, wsdl);
+		} catch (MalformedURLException e) {
+			logger.warning("Failed to create URL for the wsdl Location: '" + wsdl + "', retrying as a local file");
+			logger.warning(e.getMessage());
+		}
+		return url;
+	}
+    
+    public JsjdcbsjService() {
+        super(__getWsdlLocation(), JSJDCBSJSERVICE_QNAME);
+    }
+
+    public JsjdcbsjService(WebServiceFeature... features) {
+        super(__getWsdlLocation(), JSJDCBSJSERVICE_QNAME, features);
+    }
+
+    public JsjdcbsjService(URL wsdlLocation) {
+        super(wsdlLocation, JSJDCBSJSERVICE_QNAME);
+    }
+
+    public JsjdcbsjService(URL wsdlLocation, WebServiceFeature... features) {
+        super(wsdlLocation, JSJDCBSJSERVICE_QNAME, features);
+    }
+
+    public JsjdcbsjService(URL wsdlLocation, QName serviceName) {
+        super(wsdlLocation, serviceName);
+    }
+
+    public JsjdcbsjService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
+        super(wsdlLocation, serviceName, features);
+    }
+
+    /**
+     * 
+     * @return
+     *     returns JsjdcbsjWebService
+     */
+    @WebEndpoint(name = "JsjdcbsjWebServicePort")
+    public JsjdcbsjWebService getJsjdcbsjWebServicePort() {
+        return super.getPort(new QName("http://webService.jsjy.com/", "JsjdcbsjWebServicePort"), JsjdcbsjWebService.class);
+    }
+
+    /**
+     * 
+     * @param features
+     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
+     * @return
+     *     returns JsjdcbsjWebService
+     */
+    @WebEndpoint(name = "JsjdcbsjWebServicePort")
+    public JsjdcbsjWebService getJsjdcbsjWebServicePort(WebServiceFeature... features) {
+        return super.getPort(new QName("http://webService.jsjy.com/", "JsjdcbsjWebServicePort"), JsjdcbsjWebService.class, features);
+    }
+
+    private static URL __getWsdlLocation() {
+        if (JSJDCBSJSERVICE_EXCEPTION!= null) {
+            throw JSJDCBSJSERVICE_EXCEPTION;
+        }
+        return JSJDCBSJSERVICE_WSDL_LOCATION;
+    }
+
+}

+ 44 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/JsjdcbsjWebService.java

@@ -0,0 +1,44 @@
+
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2.4-b01
+ * Generated source version: 2.2
+ * 
+ */
+@WebService(name = "JsjdcbsjWebService", targetNamespace = "http://webService.jsjy.com/")
+@XmlSeeAlso({
+    ObjectFactory.class
+})
+public interface JsjdcbsjWebService {
+
+
+    /**
+     * 
+     * @param arg0
+     * @return
+     *     returns com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjEntity
+     */
+    @WebMethod
+    @WebResult(targetNamespace = "")
+    @RequestWrapper(localName = "save", targetNamespace = "http://webService.jsjy.com/", className = "com.xt.jygl.gkjsgl.jsjdcbsj.client.Save")
+    @ResponseWrapper(localName = "saveResponse", targetNamespace = "http://webService.jsjy.com/", className = "com.xt.jygl.gkjsgl.jsjdcbsj.client.SaveResponse")
+    @Action(input = "http://webService.jsjy.com/JsjdcbsjWebService/saveRequest", output = "http://webService.jsjy.com/JsjdcbsjWebService/saveResponse")
+    public JsjdcbsjEntity save(
+        @WebParam(name = "arg0", targetNamespace = "")
+        JsjdcbsjEntity arg0);
+
+}

+ 143 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/ObjectFactory.java

@@ -0,0 +1,143 @@
+
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+import com.xt.jygl.gkjcxx.gk.entity.GkEntity;
+import com.xt.jygl.gkjcxx.gq.entity.GqEntity;
+import com.xt.jygl.gkjcxx.xzdwxxgl.xzglbmxx.entity.XzglbmxxEntity;
+import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
+import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.GkjyrEntity;
+import com.xtframe.sec.code.entity.CodeEntity;
+import com.xtframe.sec.common.BaseEntity;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the com.xt.jygl.gkjsgl.jsjdcbsj.client package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _Save_QNAME = new QName("http://webService.jsjy.com/", "save");
+    private final static QName _SaveResponse_QNAME = new QName("http://webService.jsjy.com/", "saveResponse");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.xt.jygl.gkjsgl.jsjdcbsj.client
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link Save }
+     * 
+     */
+    public Save createSave() {
+        return new Save();
+    }
+
+    /**
+     * Create an instance of {@link SaveResponse }
+     * 
+     */
+    public SaveResponse createSaveResponse() {
+        return new SaveResponse();
+    }
+
+    /**
+     * Create an instance of {@link GkjyrEntity }
+     * 
+     */
+    public GkjyrEntity createGkjyrEntity() {
+        return new GkjyrEntity();
+    }
+
+    /**
+     * Create an instance of {@link Timestamp }
+     * 
+     */
+    public Timestamp createTimestamp() {
+        return new Timestamp();
+    }
+
+    /**
+     * Create an instance of {@link JsjdcbsjEntity }
+     * 
+     */
+    public JsjdcbsjEntity createJsjdcbsjEntity() {
+        return new JsjdcbsjEntity();
+    }
+
+    /**
+     * Create an instance of {@link XzglbmxxEntity }
+     * 
+     */
+    public XzglbmxxEntity createXzglbmxxEntity() {
+        return new XzglbmxxEntity();
+    }
+
+    /**
+     * Create an instance of {@link BaseEntity }
+     * 
+     */
+    public BaseEntity createBaseEntity() {
+        return new BaseEntity();
+    }
+
+    /**
+     * Create an instance of {@link GqEntity }
+     * 
+     */
+    public GqEntity createGqEntity() {
+        return new GqEntity();
+    }
+
+    /**
+     * Create an instance of {@link GkEntity }
+     * 
+     */
+    public GkEntity createGkEntity() {
+        return new GkEntity();
+    }
+
+    /**
+     * Create an instance of {@link CodeEntity }
+     * 
+     */
+    public CodeEntity createCodeEntity() {
+        return new CodeEntity();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link Save }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://webService.jsjy.com/", name = "save")
+    public JAXBElement<Save> createSave(Save value) {
+        return new JAXBElement<Save>(_Save_QNAME, Save.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link SaveResponse }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://webService.jsjy.com/", name = "saveResponse")
+    public JAXBElement<SaveResponse> createSaveResponse(SaveResponse value) {
+        return new JAXBElement<SaveResponse>(_SaveResponse_QNAME, SaveResponse.class, null, value);
+    }
+
+}

+ 62 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/Save.java

@@ -0,0 +1,62 @@
+
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
+
+
+/**
+ * <p>Java class for save complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="save">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="arg0" type="{http://webService.jsjy.com/}jsjdcbsjEntity" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "save", propOrder = {
+    "arg0"
+})
+public class Save {
+
+    protected JsjdcbsjEntity arg0;
+
+    /**
+     * Gets the value of the arg0 property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link JsjdcbsjEntity }
+     *     
+     */
+    public JsjdcbsjEntity getArg0() {
+        return arg0;
+    }
+
+    /**
+     * Sets the value of the arg0 property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link JsjdcbsjEntity }
+     *     
+     */
+    public void setArg0(JsjdcbsjEntity value) {
+        this.arg0 = value;
+    }
+
+}

+ 64 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/SaveResponse.java

@@ -0,0 +1,64 @@
+
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
+
+
+/**
+ * <p>Java class for saveResponse complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="saveResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://webService.jsjy.com/}jsjdcbsjEntity" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "saveResponse", propOrder = {
+    "_return"
+})
+public class SaveResponse {
+
+    @XmlElement(name = "return")
+    protected JsjdcbsjEntity _return;
+
+    /**
+     * Gets the value of the return property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link JsjdcbsjEntity }
+     *     
+     */
+    public JsjdcbsjEntity getReturn() {
+        return _return;
+    }
+
+    /**
+     * Sets the value of the return property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link JsjdcbsjEntity }
+     *     
+     */
+    public void setReturn(JsjdcbsjEntity value) {
+        this._return = value;
+    }
+
+}

+ 52 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/Timestamp.java

@@ -0,0 +1,52 @@
+
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for timestamp complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="timestamp">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="nanos" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "timestamp", propOrder = {
+    "nanos"
+})
+public class Timestamp {
+
+    protected int nanos;
+
+    /**
+     * Gets the value of the nanos property.
+     * 
+     */
+    public int getNanos() {
+        return nanos;
+    }
+
+    /**
+     * Sets the value of the nanos property.
+     * 
+     */
+    public void setNanos(int value) {
+        this.nanos = value;
+    }
+
+}

+ 2 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/client/package-info.java

@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://webService.jsjy.com/")
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;

+ 16 - 18
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/ctl/JsjdcbsjCtl.java

@@ -37,6 +37,7 @@ import com.xt.jygl.common.GlobalData;
 import com.xt.jygl.gkjcxx.gk.entity.GkEntity;
 import com.xt.jygl.gkjcxx.gk.service.GkService;
 import com.xt.jygl.gkjcxx.gq.entity.GqEntity;
+import com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjWebService;
 import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
 import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjfjEntity;
 import com.xt.jygl.gkjsgl.jsjdcbsj.service.JsjdcbsjService;
@@ -222,25 +223,13 @@ public class JsjdcbsjCtl extends BaseWebCtl {
 				} else {
 					vo.setShowjsjd("N");
 				}
-				/*
-				 * List<TzjhglEntity> tzjh =
-				 * tzjhglService.findByXmid(entity.getId() != null ?
-				 * entity.getId() : ""); if (tzjh.size() != 0) { String
-				 * flagForYear = "1"; vo.setFlagForYear(flagForYear); }
-				 */
+				
 				List<TaskInfoEntity> listtask = taskInfoService.findByBusIdAndBusKeyAndRecordStatus(entity.getId().toString(), JsjdcbsjEntity.PROCESS_DEFINITION_KEY);
 				String flag = "";
 				if (listtask.size() != 0 || entity.getRecordStatus() == BaseEntity.RECORD_STATE_COMPLETED) {
 					flag = "1";
 					vo.setFlag(flag);
 				}
-				/*
-				 * boolean judge = false; for (TzjhglEntity tz : tzjh) { if
-				 * (("是").equals(tz.getSfyzjbz().getText())) { judge = true; }
-				 * 
-				 * } if (judge) { vo.setSfyzjbz("是"); } else {
-				 * vo.setSfyzjbz("否"); }
-				 */
 
 				voList.add(vo);
 			}
@@ -580,10 +569,11 @@ public class JsjdcbsjCtl extends BaseWebCtl {
 			wr.setMessage("请输入建设地点");
 			return wr;
 		}
+		JsjdcbsjEntity jsjdcbsj = new JsjdcbsjEntity();
 		try {
 			if (!StringUtils.isEmpty(code.getId())) {
 				// 修改
-				JsjdcbsjEntity jsjdcbsj = jsjdcbsjService.findOne(code.getId());
+				jsjdcbsj = jsjdcbsjService.findOne(code.getId());
 				jsjdcbsj.setXmmc(code.getXmmc());
 				jsjdcbsj.setXmfr(code.getXmfr());
 				jsjdcbsj.setJsdd(code.getJsdd());
@@ -641,7 +631,7 @@ public class JsjdcbsjCtl extends BaseWebCtl {
 				} else {
 					jsjdcbsj.setAxspjb(null);
 				}
-				jsjdcbsjService.save(jsjdcbsj);
+				jsjdcbsj = jsjdcbsjService.save(jsjdcbsj);
 			} else {
 				if (!StringUtils.isEmpty(ssjyrid)) {
 					GkjyrEntity jyr = new GkjyrEntity();
@@ -685,10 +675,18 @@ public class JsjdcbsjCtl extends BaseWebCtl {
 					axspjbdx.setId(axspjbid);
 					code.setAxspjb(axspjbdx);
 				}
-				jsjdcbsjService.save(code);
-
+				jsjdcbsj = jsjdcbsjService.save(code);
+			}
+			// 如果是市级新增或者修改,保存后同步到省级
+			try {
+				if (GlobalData.DEPLOY_MODE.equals(Constants.DEPLOY_MODE_CITY) && needWS()) {
+					JsjdcbsjWebService webService = jsjdcbsjService.getWebService(null);
+					System.out.print(1111);
+					
+				}
+			} catch (Exception e) {
+				
 			}
-
 		} catch (Exception e) {
 			wr.setSuccess(false);
 			wr.setMessage("操作失败!");

+ 1 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/ctl/JsjdcbsjWebService.java

@@ -23,6 +23,7 @@ public class JsjdcbsjWebService {
 	 */
 	public JsjdcbsjEntity save(JsjdcbsjEntity entity) {
 		JsjdcbsjEntity newjsjdcbsj = jsjdcbsjService.save(entity);
+		System.out.print(1234);
 		return newjsjdcbsj;
 	}
 	

+ 2 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/service/JsjdcbsjService.java

@@ -1,5 +1,6 @@
 package com.xt.jygl.gkjsgl.jsjdcbsj.service;
 
+import com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjWebService;
 import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
 import com.xt.jygl.workflow.service.BaseWorkFlowService;
 
@@ -17,4 +18,5 @@ public interface JsjdcbsjService extends BaseWorkFlowService {
 
 	public boolean changeAudit(String shyj, JsjdcbsjEntity xmxx, boolean flag,String userids);
 
+	public JsjdcbsjWebService getWebService(String szdId);
 }

+ 20 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/service/impl/JsjdcbsjServiceImpl.java

@@ -1,5 +1,6 @@
 package com.xt.jygl.gkjsgl.jsjdcbsj.service.impl;
 
+import java.net.URL;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
@@ -10,6 +11,8 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import com.xt.jygl.common.Constants;
+import com.xt.jygl.common.GlobalData;
+import com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjWebService;
 import com.xt.jygl.gkjsgl.jsjdcbsj.dao.JsjdcbsjDao;
 import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
 import com.xt.jygl.gkjsgl.jsjdcbsj.service.JsjdcbsjService;
@@ -18,6 +21,7 @@ import com.xt.jygl.workflow.param.WorkFlowParam;
 import com.xt.jygl.workflow.service.WorkflowMangerService;
 import com.xt.jygl.workflow.service.impl.BaseWorkFlowServiceImpl;
 import com.xtframe.core.support.SecurityMgr;
+import com.xtframe.core.webService.AuthHandlerResolver;
 import com.xtframe.sec.common.BaseEntity;
 import com.xtframe.sec.common.SecRepository;
 import com.xtframe.sec.utils.SecUtils;
@@ -110,4 +114,20 @@ public class JsjdcbsjServiceImpl extends BaseWorkFlowServiceImpl<JsjdcbsjEntity,
 		return false;
 	}
 
+	@Override
+	public JsjdcbsjWebService getWebService(String szdId) { 
+		URL wsdlLocation;
+		if (null == szdId && GlobalData.DEPLOY_MODE.equals(Constants.DEPLOY_MODE_CITY)) {
+			// 市级取省级的
+			wsdlLocation = com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService.getWsdlLocationByIp(GlobalData.WEBSERVICE_IP_MAIN, GlobalData.WEBSERVICE_PORT_MAIN);
+		} else {// 省级取市级的webservice 根据数据的所在地
+			// TODO
+			wsdlLocation = com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService.getWsdlLocationByIp("192.168.30.143", "18088");
+		}
+		com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService service = new com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService(wsdlLocation, com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService.JSJDCBSJSERVICE_QNAME);
+		service.setHandlerResolver(new AuthHandlerResolver(com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService.JSJDCBSJSERVICE_QNAME));
+		JsjdcbsjWebService webService = service.getJsjdcbsjWebServicePort();
+		return webService;
+	}
+
 }

+ 30 - 0
gkjsjy/trunk/src/com/xt/jygl/gkjsgl/jsjdcbsj/webservice/JsjdcbsjWebService.java

@@ -0,0 +1,30 @@
+package com.xt.jygl.gkjsgl.jsjdcbsj.webservice;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+
+import com.xt.jygl.gkjsgl.jsjdcbsj.entity.JsjdcbsjEntity;
+import com.xt.jygl.gkjsgl.jsjdcbsj.service.JsjdcbsjService;
+
+@Controller
+@WebService(targetNamespace = "http://webService.jsjy.com/", serviceName = "jsjdcbsjService")
+@HandlerChain(file="handle-chain.xml")
+public class JsjdcbsjWebService {
+	@Autowired
+	private JsjdcbsjService jsjdcbsjService;
+	
+
+
+	/**
+	 * 保存信息
+	 */
+	public JsjdcbsjEntity save(JsjdcbsjEntity entity) {
+		JsjdcbsjEntity newjsjdcbsj = jsjdcbsjService.save(entity);
+		return newjsjdcbsj;
+	}
+	
+
+}