/**
* IServiceTestSoapBindingStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.wsdl.serviceImpl;
public class IServiceTestSoapBindingStub extends org.apache.axis.client.Stub implements com.wsdl.serviceImpl.IServiceTest {
private java.util.Vector cachedSerClasses = new java.util.Vector();
private java.util.Vector cachedSerQNames = new java.util.Vector();
private java.util.Vector cachedSerFactories = new java.util.Vector();
private java.util.Vector cachedDeserFactories = new java.util.Vector();
static org.apache.axis.description.OperationDesc [] _operations;
static {
_operations = new org.apache.axis.description.OperationDesc[2];
_initOperationDesc1();
}
private static void _initOperationDesc1(){
org.apache.axis.description.OperationDesc oper;
org.apache.axis.description.ParameterDesc param;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("sysHello");
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
oper.setReturnClass(java.lang.String.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "sysHelloReturn"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[0] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("sysBye");
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "in0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
oper.setReturnClass(java.lang.String.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "sysByeReturn"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[1] = oper;
}
public IServiceTestSoapBindingStub() throws org.apache.axis.AxisFault {
this(null);
}
public IServiceTestSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
this(service);
super.cachedEndpoint = endpointURL;
}
public IServiceTestSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
if (service == null) {
super.service = new org.apache.axis.client.Service();
} else {
super.service = service;
}
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
}
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
try {
org.apache.axis.client.Call _call = super._createCall();
if (super.maintainSessionSet) {
_call.setMaintainSession(super.maintainSession);
}
if (super.cachedUsername != null) {
_call.setUsername(super.cachedUsername);
}
if (super.cachedPassword != null) {
_call.setPassword(super.cachedPassword);
}
if (super.cachedEndpoint != null) {
_call.setTargetEndpointAddress(super.cachedEndpoint);
}
if (super.cachedTimeout != null) {
_call.setTimeout(super.cachedTimeout);
}
if (super.cachedPortName != null) {
_call.setPortName(super.cachedPortName);
}
java.util.Enumeration keys = super.cachedProperties.keys();
while (keys.hasMoreElements()) {
java.lang.String key = (java.lang.String) keys.nextElement();
_call.setProperty(key, super.cachedProperties.get(key));
}
return _call;
}
catch (java.lang.Throwable _t) {
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
}
}
public java.lang.String sysHello(java.lang.String in0) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[0]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("urn:IServiceTest", "sysHello"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (java.lang.String) _resp;
} catch (java.lang.Exception _exception) {
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
throw axisFaultException;
}
}
public java.lang.String sysBye(java.lang.String in0) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[1]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("urn:IServiceTest", "sysBye"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (java.lang.String) _resp;
} catch (java.lang.Exception _exception) {
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
throw axisFaultException;
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
AXIS WebService 例子 + 分布讲解 + 完整项目
共62个文件
class:17个
java:13个
jar:11个
4星 · 超过85%的资源 需积分: 10 66 下载量 141 浏览量
2010-03-09
15:55:28
上传
评论
收藏 3.41MB RAR 举报
温馨提示
AXIS WebService 的例子 ,其中有分布讲解还有一个异常的说明。其中包含完整的简单项目。
资源推荐
资源详情
资源评论
收起资源包目录
AXIS WebService例子+分布讲解+完整项目.rar (62个子文件)
01-AXIS WebService
wsdlClient
client
com
wsdl
serviceImpl
IServiceTestServiceLocator.java 5KB
IServiceTest.java 432B
IServiceTestService.java 557B
IServiceTestSoapBindingStub.java 7KB
META-INF
MANIFEST.MF 39B
src
com
wsdl
test
ClientTest.java 1KB
bin
com
wsdl
serviceImpl
IServiceTestServiceLocator.class 4KB
IServiceTestService.class 738B
IServiceTestSoapBindingStub.class 3KB
IServiceTest.class 289B
.classpath 763B
.mymetadata 311B
.settings
org.eclipse.jdt.core.prefs 629B
.myeclipse
.project 1012B
WEB-INF
classes
com
wsdl
serviceImpl
IServiceTestServiceLocator.class 4KB
IServiceTestService.class 422B
IServiceTestSoapBindingStub.class 6KB
IServiceTest.class 289B
test
ClientTest.class 1KB
lib
wsdl4j-1.5.1.jar 124KB
commons-logging.jar 37KB
commons-discovery-0.2.jar 70KB
axis.jar 1.53MB
web.xml 381B
项目开发步骤.doc 115KB
wsdlTest
src
com
wsdl
client
ISeiviceClient.java 1KB
serviceImpl
IServiceTestSoapBindingImpl.java 595B
undeploy.wsdd 689B
IServiceTestServiceLocator.java 5KB
IServiceTest.java 432B
IServiceTestSoapBindingSkeleton.java 4KB
deploy.wsdd 1KB
IServiceTestService.java 557B
IServiceTestSoapBindingStub.java 7KB
iservice
IServiceTest.java 149B
.classpath 875B
.mymetadata 297B
.settings
org.eclipse.jdt.core.prefs 330B
.myeclipse
.project 1KB
WebRoot
META-INF
MANIFEST.MF 39B
index.jsp 829B
WEB-INF
classes
com
wsdl
client
ISeiviceClient.class 1KB
serviceImpl
IServiceTestServiceLocator.class 4KB
undeploy.wsdd 689B
IServiceTestSoapBindingSkeleton.class 3KB
IServiceTestSoapBindingImpl.class 1KB
IServiceTestService.class 422B
deploy.wsdd 1KB
IServiceTestSoapBindingStub.class 6KB
IServiceTest.class 289B
iservice
IServiceTest.class 200B
IServiceTest.wsdl 3KB
buildws.bat 41B
lib
wsdl4j-1.5.1.jar 124KB
saaj.jar 19KB
commons-logging.jar 37KB
commons-discovery-0.2.jar 70KB
jaxrpc.jar 30KB
activation.jar 53KB
axis.jar 1.53MB
WSDL2Java.bat 1KB
web.xml 2KB
共 62 条
- 1
资源评论
- whyshin2011-12-20分步讲解很详细~
- jalin2012-12-11分步讲解很详细~ 谢谢分享
- qiye20082012-08-17分步讲解很详细~谢谢楼主分享!
- print0072013-08-28很详细,值得一学~
- Net218790282013-11-12好代码,值得拥有~
牛肉干
- 粉丝: 66
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功