JAVA 调用Axis2 code generator 生成的webservice
2024-10-14 20:00:46
以下代码为调用 JAVA 调用Axis2 code generator 生成的webservice的代码。
package test; import java.rmi.RemoteException; import org.apache.axis2.AxisFault; import soap.*;
import type.*; public class soap
{
public static void main(String[] args) throws RemoteException
{
ScfMobileSoapStub stu = new ScfMobileSoapStub(null, "http://192.168.10.26:8081/upccService/ScfPccSoapServiceEndpointPort");
GetSubscriber inParam = new GetSubscriber();
SInSubscriberParaVO parm = new SInSubscriberParaVO();
SPccSubscriber par = new SPccSubscriber();
SAVP savap[] = new SAVP[1];
savap[0] = new SAVP();
savap[0].setKey("111111111211");
savap[0].setValue("111111111111");
par.setAttribute(savap);
parm.setSubscriber(par);
inParam.setInPara(parm); GetSubscriberResponse resp = stu.getSubscriber(inParam); System.out.println(resp.getResult().getResultCode());
System.out.println(resp.getResult().getSubscriber()[0].getAttribute()[0].getKey());
System.out.println(resp.getResult().getSubscriber()[0].getAttribute()[0].getValue()); }
}
最新文章
- 【机器学习Machine Learning】资料大全
- JS:event对象下的target属性和取消冒泡事件
- DestroyWindow函数注意事项
- 【SQL查询日志】查看数据库历史查询记录
- 进程控制之waitid函数
- cgdb调试postgresql
- delphi调用java编写的webservice
- codeforces 713D D. Animals and Puzzle 二分+二维rmq
- Unity cg vertex and fragment shaders(一)
- [转]How to build a data storage and VM Server using comodity hardware and free software
- IDL和生成代码分析
- Java中实现String.padLeft和String.padRight
- angular2 组件交互
- Jquery cookie操作示例,写入cookie,读取cookie,删除cookie
- 11 PopupMenu菜单和代码例子
- OkHttp框架从入门到放弃,解析图片使用Picasso裁剪,二次封装OkHttpUtils,Post提交表单数据
- ArcMap复制粘贴问题
- 程序员基层知识程序与cpu【更新1】
- git reset 版本回退
- ssrf绕过总结