123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package com.cxfws.demo.service.impl;
- import javax.annotation.PostConstruct;
- import javax.jws.WebService;
- import org.json.JSONArray;
- import org.json.JSONException;
- import org.json.JSONObject;
- import org.springframework.context.annotation.Lazy;
- import org.springframework.context.annotation.Scope;
- import org.springframework.stereotype.Component;
- import org.springframework.stereotype.Controller;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- @Service("diexcWebService")
- @WebService(targetNamespace = "http://service.web.jsjty.com/", portName = "diexcWebServicePort", serviceName = "diexcWebService")
- public class DiexcService implements IDiexcService {
- @PostConstruct
- private void init(){
- //System.out.println("------DiexcService--init-");
-
- }
- @Override
- public String excTable(int num) {
- JSONArray jsons=new JSONArray();
-
- try {
- jsons.put(new JSONObject().put("sid", "dservice"));
- } catch (JSONException e) {
- e.printStackTrace();
- }
-
- return jsons.toString();
- }
-
- }
|