1.1_jinyuwaisong
zengwh 2 years ago
parent 102e7c0696
commit bfe6b078eb

@ -1,24 +1,16 @@
package com.ann.demo.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.ann.demo.entity.constant.AliasName;
import com.ann.demo.entity.constant.InterfaceName;
import com.ann.demo.entity.filing.MessageSubordinate;
import com.ann.demo.entity.filing.dto.MessageDto;
import com.ann.demo.entity.filing.dto.PatientMainDto;
import com.ann.demo.service.AnalysisService;
import com.ann.demo.service.CollectCheckService;
import com.ann.demo.utils.XMLUtils;
import com.ann.demo.service.JAXDynamicClientFactory;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.Date;
import java.util.Objects;
/**
@ -43,7 +35,7 @@ public class TestController {
/*@ResponseBody*/
@RequestMapping("/haha")
public String cc(InterfaceForm interfaceForm) {
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
JAXDynamicClientFactory dcf = JAXDynamicClientFactory.newInstance();
Client client = dcf.createClient(interfaceForm.getUrl());
Object[] objects = new Object[0];
try {

@ -101,6 +101,7 @@ public class CollectCheckService {
//调用下载接口
String result = HttpClientUtils.doPost(downfileUrl,JSON.toJSONString(rootMap));
log.info("上传下载服务result:"+result);
System.out.println("上传下载服务result:"+result);
return result;
}
return null;

Loading…
Cancel
Save