java 调用 .net webservic
来源:互联网 发布:移动硬盘与mac不兼容 编辑:程序博客网 时间:2024/05/17 23:50
public static void WSAccountListGetList(){
try {
String endpoint = strUrl+"/WSAccountList.asmx";
// 创建一个服务(service)调用(call)
Service service = new Service();
Call call = (Call) service.createCall();// 通过service创建call对象
// 设置service所在URL
call.setTargetEndpointAddress(new java.net.URL(endpoint));
/*
setSOAPActionURI,是动态调用接口使用,而不需要在java里再生成wsdl文件,再引用
Axis' JAXRPC Dynamic Invocation Interface implementation of the Call interface.
This class should be used to actually invoke the Web Service.
It can be prefilled by a WSDL document (on the constructor to the Service object)
or you can fill in the data yourself. */
call.setSOAPActionURI("http://tempuri.org/GetList");
call.setOperationName(new QName("http://tempuri.org/",
"GetList"));
Object o = call.invoke(new Object[]{});
System.out.print(o);
} catch (Exception e) {
e.printStackTrace();
}
}
try {
String endpoint = strUrl+"/WSAccountList.asmx";
// 创建一个服务(service)调用(call)
Service service = new Service();
Call call = (Call) service.createCall();// 通过service创建call对象
// 设置service所在URL
call.setTargetEndpointAddress(new java.net.URL(endpoint));
/*
setSOAPActionURI,是动态调用接口使用,而不需要在java里再生成wsdl文件,再引用
Axis' JAXRPC Dynamic Invocation Interface implementation of the Call interface.
This class should be used to actually invoke the Web Service.
It can be prefilled by a WSDL document (on the constructor to the Service object)
or you can fill in the data yourself. */
call.setSOAPActionURI("http://tempuri.org/GetList");
call.setOperationName(new QName("http://tempuri.org/",
"GetList"));
Object o = call.invoke(new Object[]{});
System.out.print(o);
} catch (Exception e) {
e.printStackTrace();
}
}
- java 调用 .net webservic
- 用JAX-WS实现java调用webServic
- webServic的调用方式
- Axis 调用.net WebServic接口出现:验证消息的安全性时发生错误
- Webservic -客户端异步调用Webservic 与Webservic服务器异步Web方法
- Mule webservic 服务调用(待修改)
- 这是采用两种方法来调用WebServic
- java调用.net Webservice
- Java调用.net webservice
- java 调用.net webService
- .NET调用java webservice
- Java调用.net webservice
- java 调用 .net WebService
- net调用java接口
- java 调用.net webservice
- java调用.net webservice
- java调用.net webservices
- ASP.NET 三层架构技术 人力资源管理系统项目HR (深入WebServic
- 后顾之忧
- C#连接各种数据库代码Access,Sql Server,Oracle,Mysql,IBM DB2,Sybase
- 判断点在多边形内外的简单算法
- 真戏假做
- TableCellRenderer的一个例子
- java 调用 .net webservic
- restlet overview 1
- POJ 1426
- 详解android应用程序的反编译
- restlet overview 2
- NumberFormat 类
- restlet getting start 1
- 在eclipse中引入jdom
- 为CSDN添加友情链接