java axis web service
编写 java调用web service的客户端比较简单,其中webservice为上一篇gsoap创建的server。
package clientTest;
import java.rmi.RemoteException; import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.encoding.XMLType; import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
public class ClientTest
{
public static void main(String[] args) {
try {
String endpoint = "http://localhost:8080";
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(endpoint); call.setOperationName(new QName(
"urn:calculator", "add"));
call.addParameter("a",XMLType.SOAP_DOUBLE,ParameterMode.IN);
call.addParameter("b", XMLType.SOAP_DOUBLE, ParameterMode.IN);
call.setReturnClass(Double.class);
Double temp = (Double)call.invoke(new Object[]{2,2}); //传入的参数(a、b),返回的类型为Double
System.out.println("result: " + temp);
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
所对应的wsdl文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="calculator"
targetNamespace="urn:calculator"
xmlns:tns="urn:calculator"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="urn:calculator"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <schema targetNamespace="urn:calculator"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="urn:calculator"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
</schema> </types> <message name="addRequest">
<part name="a" type="xsd:double"/><!-- ns__add::a -->
<part name="b" type="xsd:double"/><!-- ns__add::b -->
</message> <message name="addResponse">
<part name="result" type="xsd:double"/><!-- ns__add::result -->
</message> <message name="subRequest">
<part name="a" type="xsd:double"/><!-- ns__sub::a -->
<part name="b" type="xsd:double"/><!-- ns__sub::b -->
</message> <message name="subResponse">
<part name="result" type="xsd:double"/><!-- ns__sub::result -->
</message> <message name="sqrtRequest">
<part name="a" type="xsd:double"/><!-- ns__sqrt::a -->
</message> <message name="sqrtResponse">
<part name="result" type="xsd:double"/><!-- ns__sqrt::result -->
</message> <portType name="calculatorPortType">
<operation name="add">
<documentation>Service definition of function ns__add</documentation>
<input message="tns:addRequest"/>
<output message="tns:addResponse"/>
</operation>
<operation name="sub">
<documentation>Service definition of function ns__sub</documentation>
<input message="tns:subRequest"/>
<output message="tns:subResponse"/>
</operation>
<operation name="sqrt">
<documentation>Service definition of function ns__sqrt</documentation>
<input message="tns:sqrtRequest"/>
<output message="tns:sqrtResponse"/>
</operation>
</portType> <binding name="calculator" type="tns:calculatorPortType">
<SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="add">
<SOAP:operation style="rpc" soapAction=""/>
<input>
<SOAP:body use="encoded" namespace="urn:calculator" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<SOAP:body use="encoded" namespace="urn:calculator" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="sub">
<SOAP:operation style="rpc" soapAction=""/>
<input>
<SOAP:body use="encoded" namespace="urn:calculator" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<SOAP:body use="encoded" namespace="urn:calculator" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="sqrt">
<SOAP:operation style="rpc" soapAction=""/>
<input>
<SOAP:body use="encoded" namespace="urn:calculator" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<SOAP:body use="encoded" namespace="urn:calculator" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding> <service name="calculator">
<documentation>gSOAP 2.8.14 generated service definition</documentation>
<port name="calculator" binding="tns:calculator">
<SOAP:address location="http://localhost:8080"/>
</port>
</service> </definitions>
程序结构如图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVcAAADkCAIAAACjevAgAAAeeklEQVR4nO2de3AUx53H9x//rz9SlfDHlRNsc1SoCw6xfXjjEP8TYydV57vUOQWuuEywPRfnZeAuMZzhLGEbC4zPG7AQKRsFckEnbJTwCGvJhsMoloxjlyNeErAxAguQ0K7e0u7sakXfH7O709OP2dnHzM7sfD/Vpdrt7f51j0r9ne7e6a8CBABgM80/rWn+aY15ma1btzrTGZ5ApRoGANBABQAAFQMqAIDfKVIFAoGAT34CUMWoqtrf31/MH7p/hod/rhT4k+JVwDrzV+6wNT4AoBScmAt4XQUwFwDVTXnmAqda1+US/2mBKhBWAkqYEBIJBQPBUKTErgEA8lCGuUD3fsPI796/lilpqgJhJZBFCWdzyqACVFwmfsFgLgCqm+JVoKFuc0Pd5oa6+tSNptSNpnjfjtipV/pPbLhwaHVDXT0h5OH/2qeVlKpAWDGMzbASDEV0FSiGSCjIVC4uGh8HgKoljwocP368vr5e+NGvXlzz0q9PkvEOcaIGv0QFwor49uw6FcBcAFQ3Zipw7NixBQsWzJs3T1Z5zertJHpYnAh5u6N3/sod81fu+O27pwSVw4pkvk+vCHIjUZ/gZyuFlUAwFFKoTGoRoEfmVYAPRSKhILVsEMYBoGqRqoAmAcuWLZOpQCAQeOLffkOu/V6azClABeiiuVxqOaHv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5CYII=" alt="" />
添加的jar下载地址为java_webservice(注意文件类型,javarpc-api独立一个,其余的均在axis压缩包中)。
java axis web service的更多相关文章
- <<Java RESTful Web Service实战>> 读书笔记
<<Java RESTful Web Service实战>> 读书笔记 第一章 JAX-RS2.0入门 REST (Representational State ransf ...
- JAVA开发Web Service几种框架介绍
郑重声明:此文为转载来的,出处已不知了,侵告删. 在讲Web Service开发服务时,需要介绍一个目前开发Web Service的几个框架,分别为Axis,axis2,Xfire,CXF以及JWS( ...
- Java RESTful Web Service相关概念
原文地址:http://1.liangtao.sinaapp.com/?p=647 接上一篇文章REST|RESTful初步认识:p=639">http://1.liangtao.si ...
- Java主流Web Service框架介绍:CXF和Axis2
CXF和Axis2是目前java平台上最主流的两个框架,虽然两个项目都隶属ASF,但却是基于不同思想和风格实现的,因此也各有所长. CXF:http://cxf.apache.org/ 是由过去的 ...
- 【转】基于CXF Java 搭建Web Service (Restful Web Service与基于SOAP的Web Service混合方案)
转载:http://www.cnblogs.com/windwithlife/archive/2013/03/03/2942157.html 一,选择一个合适的,Web开发环境: 我选择的是Eclip ...
- SOAP: java+xfire(web service) + php客户端
作者: 吴俊杰 web service这项技术暂不说它有多落伍,但是项目中用到了,没法逃避! xml和json各有各的好处,但是JSON无疑是当今数据交互的主流了.客户soap服务器端用的是 j ...
- (转)JAVA 调用Web Service的三种方法
1.使用HttpClient用到的jar文件:commons-httpclient-3.1.jar方法:预先定义好Soap请求数据,可以借助于XMLSpy Professional软件来做这一步生成. ...
- Java restful web service 开发入门
可用的框架有不少,我用的是jersey. 直接上代码,其实,如果你会web service 这个restful的就很好理解了,自己跑一遍就OK了 用到的类 User.java package demo ...
- Java Restful Web Service 学习指南
Restful是一种架构style,目前常说的有restful web service, resultful http.现在热搜榜的微服务,大多数会采用Restful方式. JAX-RS 作为一个Re ...
随机推荐
- OC语法4——自定义构造方法,description方法
自定义构造方法: 我们已经知道创建对象分两步,1:在内存中开辟存储空间,并把地址存储在指针变量里,2:调用指针变量的初始化方法init初始化该对象. Student * stu = [Student ...
- select * from (select P.*,ROWNUM RN FROM(select * from Mp_Relatedart where pubbaseid=785 order by ID ASC )P)M WHERE M.RN>2 and M.RN <= 7
select * from (select P.*,ROWNUM RN FROM(select * from Mp_Relatedart where pubbaseid=785 order by ID ...
- 2 kNN-K-Nearest Neighbors algorithm k邻近算法(二)
2.3 示例:手写识别系统 2.3 .1 准备数据:将图像转换为测试向量 训练样本:trainingDigits 2000个例子,每个数字大约200个样本 测试数据:testDigits 大约900个 ...
- Eric6 右键点击生产对话框代码报错
问题没有解决,属于菜鸟级别的孩子~~~~ 求助啊,求助!!!!!! 报告如下: Warning:An unhandled exception occurred. Please report the p ...
- [C#]Windows文件分类器小程序
我平时习惯把各种文件都下载在`下载`文件夹中,时间久了,文件多了,想要找个文件就不那么方便了.于是我就想自己写一个小程序来实现下载文件的自动整理.我想到的文件分类方式是按照文件扩展名分类:把各文件移动 ...
- ArcEngine栅格和矢量渲染(含可视化颜色带)
使用ArcEngine9.3开发的栅格和矢量的渲染. 开发环境:ArcEngine9.3,VS2008. 功能:栅格(拉伸和分级)和矢量(简单.唯一值.分级.比例)渲染. 开发界面如图所示. 图1 主 ...
- [问题解决] 程序部署到Linux服务器乱码
错误: 在windows下开发的eclipse项目需要用java mail发送邮件,在将整个项目部署到linux服务器之后发送的邮件出现了乱码. 发生场景: Linux服务器下的Java mail程序 ...
- 利用RTE创建自定义软件安装包(一)
说明:鉴于MDK5.0推出的新功能,安富莱电子顺势推出几期MDK5.0新功能的使用方法.MDK5.0提供的RTE功能还是很不错的,这个功能一方面方便用户创建自己常用的驱动文件包,还有一个很重要的功能就 ...
- Delphi Socket Demo
Delphi Socket Demo 转自 http://www.anqn.com/dev/delphi/2010-01-07/a09122531-1.shtml 自己对中间有点修改,下面是代码 ...
- git配置别名
配置别名 有没有经常敲错命令?比如git status?status这个单词真心不好记. 如果敲git st就表示git status那就简单多了,当然这种偷懒的办法我们是极力赞成的. 我们只需要 ...