ws调用冲突

3.2.4.44
wyb 2 years ago
parent 2681f3440f
commit 62482ca042

@ -1,7 +1,7 @@
{
"url":"http:/192.168.5.55:8090/PacsService.wsdl",
"interval": 1000,
"namespaceUri":"com.docus",
"namespaceUri":"",
"operationName":"Service",
"functionName":"ReportServerDll.GetPdfReport",
"functionType":"",

@ -1,12 +1,13 @@
package com.docus.server;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.Properties;
@Slf4j
//@EnableFeignClients(basePackages = ("com.feign"))
@ -15,6 +16,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@MapperScan("com.docus.server.**.mapper")
public class AppRunBootstrap {
public static void main(String[] args) {
Properties props = System.getProperties();
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
props.setProperty("UseSunHttpHandler", "true");
System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
SpringApplication.run(AppRunBootstrap.class,args);
}

@ -23,7 +23,7 @@ public class JaxWsDynamicClient {
private static final Logger logger= LoggerFactory.getLogger(JaxWsDynamicClient.class);
public static String send(String wsdlUrl,String namespaceUri,String operationName,Object[] params){
logger.debug("wsdlUrl" + wsdlUrl +"namespaceUri: "+namespaceUri+ " operationName" + operationName + "param:" + Arrays.toString(params));
logger.debug("wsdlUrl" + wsdlUrl +" ,namespaceUri: "+namespaceUri+ " operationName" + operationName + "param:" + Arrays.toString(params));
try {
Client client = getClient(wsdlUrl);
Object[] result;
@ -38,7 +38,8 @@ public class JaxWsDynamicClient {
}
return String.valueOf(result[0]);
} catch (Exception ex) {
logger.error("wsdlUrl" + wsdlUrl +"namespaceUri: "+namespaceUri+ " operationName" + operationName + "param:" + Arrays.toString(params)+" 调用失败了!", ex);
ex.printStackTrace();
logger.error("wsdlUrl" + wsdlUrl +",namespaceUri: "+namespaceUri+ " operationName" + operationName + "param:" + Arrays.toString(params)+" 调用失败了!", ex);
return null;
}
}

Loading…
Cancel
Save