以下代码为调用 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()); }
}

最新文章

  1. 【机器学习Machine Learning】资料大全
  2. JS:event对象下的target属性和取消冒泡事件
  3. DestroyWindow函数注意事项
  4. 【SQL查询日志】查看数据库历史查询记录
  5. 进程控制之waitid函数
  6. cgdb调试postgresql
  7. delphi调用java编写的webservice
  8. codeforces 713D D. Animals and Puzzle 二分+二维rmq
  9. Unity cg vertex and fragment shaders(一)
  10. [转]How to build a data storage and VM Server using comodity hardware and free software
  11. IDL和生成代码分析
  12. Java中实现String.padLeft和String.padRight
  13. angular2 组件交互
  14. Jquery cookie操作示例,写入cookie,读取cookie,删除cookie
  15. 11 PopupMenu菜单和代码例子
  16. OkHttp框架从入门到放弃,解析图片使用Picasso裁剪,二次封装OkHttpUtils,Post提交表单数据
  17. ArcMap复制粘贴问题
  18. 程序员基层知识程序与cpu【更新1】
  19. git reset 版本回退
  20. ssrf绕过总结

热门文章

  1. 网站前端优化 -saveForSelf
  2. thinkphp 杂乱笔记(1)
  3. Mysql存储过程知识,案例--mysql存储过程基本函数
  4. windows 查看某个端口号被占用情况
  5. 2014年度辛星html教程夏季版第四节
  6. Asp.net MVC2中你必须知道的扩展点(一):Controller Factory
  7. UIWebView1-b
  8. C# RichTextBox 获取当前显示部分的文字
  9. 模型 - 视图 - 控制器(MVC)详解
  10. SQLMAP系列教程