惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - _万古如长夜

解析文件内容,匹配请求路径 WEB项目引入druid监控配置 java log4j 代码中 新增按日保存日志文件的功能 按钮居中固定 博文阅读密码验证 - 博客园 tomcat-设置jdk-设置标题-设置内存-配置项目路径 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 qrtz表初始化脚本_mysql 工具类 从jar包里复制要打生产的补丁(仅限T2) CPU使用过高问题/死锁 tomcat jvm 内存配置 文件下载-文件后缀 匹配content-type 工具类-老版hibernate 占位符模式(?) in 的问题解决方案 nginx 设置超时 常用的正则表达式 DB2各种命令 mysql 各种命令
wsdl调用 不生成java文件方式
_万古如长夜 · 2022-06-10 · via 博客园 - _万古如长夜
public static void main(String[] args) {

            getUserCreditFilesData();
            String result = null;
            try {
                //直接引用远程的wsdl文件
                //以下都是套路
                Service service = new Service();

                Call call = (Call) service.createCall();
                //wsdl地址
                call.setTargetEndpointAddress(new URL("wsdl地址"));
                //命名空间(wsdl文件中的targetNameSpace属性值) 以及方法名
                call.setOperationName(new QName("wsdl文件中的targetNameSpace属性值", "wsdl暴露的方法"));//WSDL里面描述的接口名称
                //参数类型
                call.addParameter("data", org.apache.axis.encoding.XMLType.XSD_DATE, javax.xml.rpc.ParameterMode.IN);//接口的参数
                //返回值类型
                call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);//设置返回类型
                //参数
                String resul = "{ \"cdSign\":\"1\",\"beginDate\":\"2021-11-21\",\"endDate\":\"2021-11-22\"}";
                result = (String)call.invoke(new Object[]{resul});
                //给方法传递参数,并且调用方法
                System.out.println("result is "+result);
            } catch (Exception e1) {
                e1.printStackTrace();
            }
        }

posted @ 2022-06-10 18:45  _万古如长夜  阅读(136)  评论()    收藏  举报