/**
* EcardSystemStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.4.1 Built on : Aug 19, 2008 (10:13:39 LKT)
*/
package com.chenxi.ecardsystem_client;
/*
* EcardSystemStub java implementation
*/
public class EcardSystemStub extends org.apache.axis2.client.Stub
{
protected org.apache.axis2.description.AxisOperation[] _operations;
//hashmaps to keep the fault mapping
private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
private java.util.HashMap faultMessageMap = new java.util.HashMap();
private static int counter = 0;
private static synchronized String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return Long.toString(System.currentTimeMillis()) + "_" + counter;
}
private void populateAxisService() throws org.apache.axis2.AxisFault {
//creating the Service with a unique name
_service = new org.apache.axis2.description.AxisService("EcardSystem" + getUniqueSuffix());
addAnonymousOperations();
//creating the operations
org.apache.axis2.description.AxisOperation __operation;
_operations = new org.apache.axis2.description.AxisOperation[3];
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://ecardsystem_server.chenxi.com", "login"));
_service.addOperation(__operation);
_operations[0]=__operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://ecardsystem_server.chenxi.com", "checkAccount"));
_service.addOperation(__operation);
_operations[1]=__operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://ecardsystem_server.chenxi.com", "charge"));
_service.addOperation(__operation);
_operations[2]=__operation;
}
//populates the faults
private void populateFaults(){
}
/**
*Constructor that takes in a configContext
*/
public EcardSystemStub(org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint)
throws org.apache.axis2.AxisFault {
this(configurationContext,targetEndpoint,false);
}
/**
* Constructor that takes in a configContext and useseperate listner
*/
public EcardSystemStub(org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint, boolean useSeparateListener)
throws org.apache.axis2.AxisFault {
//To populate AxisService
populateAxisService();
populateFaults();
_serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
configurationContext = _serviceClient.getServiceContext().getConfigurationContext();
_serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(
targetEndpoint));
_serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
//Set the soap version
_serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
}
/**
* Default Constructor
*/
public EcardSystemStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
this(configurationContext,"http://localhost:8080/axis2/services/EcardSystem.EcardSystemHttpSoap12Endpoint/" );
}
/**
* Default Constructor
*/
public EcardSystemStub() throws org.apache.axis2.AxisFault {
this("http://localhost:8080/axis2/services/EcardSystem.EcardSystemHttpSoap12Endpoint/" );
}
/**
* Constructor taking the target endpoint
*/
public EcardSystemStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
this(null,targetEndpoint);
}
/**
* Auto generated method signature
*
* @see com.chenxi.ecardsystem_client.EcardSystem#login
* @param login0
*/
public com.chenxi.ecardsystem_client.EcardSystemStub.LoginResponse login(
com.chenxi.ecardsystem_client.EcardSystemStub.Login login0)
throws java.rmi.RemoteException
{
org.apache.axis2.context.MessageContext _messageContext = null;
try{
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
_operationClient.getOptions().setAction("urn:login");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
// create a message context
_messageContext = new org.apache.axis2.context.MessageContext();
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env = null;
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
login0,
optimizeContent(new javax.xml.namespace.QName("http://ecardsystem_server.chenxi.com",
"login")));
//adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// set the message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
//execute the operation client
_operationClient.execute(true);
org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
java.lang.Object object = fromOM(
_returnEnv.getBody().getFirstElement() ,
com.chenxi.ecardsystem_client.EcardSystemStub.LoginResponse.class,
没有合适的资源?快使用搜索试试~ 我知道了~
基于SOAP的一卡通充值查询系统(axis2)
共101个文件
jar:62个
class:26个
java:4个
4星 · 超过85%的资源 需积分: 9 38 下载量 139 浏览量
2010-12-17
21:41:28
上传
评论
收藏 18.66MB RAR 举报
温馨提示
基于SOAP协议的一卡通充值查询系统,使用Axis2开发,虽然简单,但功能完整,适合初学者分析学习
资源推荐
资源详情
资源评论
收起资源包目录
基于SOAP的一卡通充值查询系统(axis2) (101个子文件)
EcardSystem.aar 2KB
EcardSystemStub.class 20KB
EcardSystemStub$Charge.class 9KB
EcardSystemStub$Login.class 9KB
EcardSystemStub$CheckAccountResponse.class 8KB
EcardSystemStub$ChargeResponse.class 8KB
EcardSystemStub$LoginResponse.class 8KB
EcardSystemStub$CheckAccount.class 8KB
EcardSystemStub$2.class 5KB
EcardSystemStub$3.class 5KB
EcardSystemStub$1.class 5KB
EcardSystemClient.class 4KB
EcardSystemStub$Charge$Factory.class 4KB
EcardSystemStub$Login$Factory.class 3KB
EcardSystemStub$CheckAccount$Factory.class 3KB
EcardSystemStub$CheckAccountResponse$Factory.class 3KB
EcardSystemStub$ChargeResponse$Factory.class 3KB
EcardSystemStub$LoginResponse$Factory.class 3KB
EcardSystemCallbackHandler.class 2KB
EcardSystemServer.class 2KB
EcardSystemStub$CheckAccountResponse$1.class 2KB
EcardSystemStub$ChargeResponse$1.class 2KB
EcardSystemStub$LoginResponse$1.class 2KB
EcardSystemStub$CheckAccount$1.class 2KB
EcardSystemStub$Charge$1.class 2KB
EcardSystemStub$Login$1.class 2KB
EcardSystemStub$ExtensionMapper.class 1KB
.classpath 5KB
jaxb-xjc-2.1.7.jar 2.98MB
xalan-2.7.0.jar 2.6MB
xmlbeans-2.3.0.jar 2.54MB
jalopy-1.5rc3.jar 1.27MB
xercesImpl-2.6.2.jar 987KB
axis2-kernel-1.5.1.jar 974KB
jaxb-impl-2.1.7.jar 835KB
axis2-adb-1.5.1.jar 759KB
axis2-jaxws-1.5.1.jar 629KB
wstx-asl-3.2.4.jar 508KB
bcel-5.1.jar 504KB
smackx-3.0.4.jar 464KB
jibx-bind-1.2.1.jar 399KB
axis2-metadata-1.5.1.jar 383KB
log4j-1.2.15.jar 383KB
mail-1.4.jar 380KB
commons-httpclient-3.1.jar 298KB
smack-3.0.4.jar 262KB
axiom-api-1.2.8.jar 240KB
commons-lang-2.3.jar 240KB
axis2-codegen-1.5.1.jar 238KB
jaxen-1.1.1.jar 222KB
woden-impl-dom-1.0M8.jar 220KB
xml-apis-1.3.02.jar 190KB
httpcore-4.0.jar 169KB
axis2-adb-codegen-1.5.1.jar 164KB
axiom-dom-1.2.8.jar 158KB
woden-api-1.0M8.jar 146KB
wsdl4j-1.6.2.jar 145KB
axis2-transport-http-1.5.1.jar 142KB
XmlSchema-1.4.3.jar 140KB
axis2-corba-1.5.1.jar 138KB
axiom-impl-1.2.8.jar 128KB
jibx-run-1.2.1.jar 126KB
commons-io-1.4.jar 106KB
axis2-clustering-1.5.1.jar 100KB
jaxb-api-2.1.jar 88KB
axis2-saaj-1.5.1.jar 87KB
xml-resolver-1.2.jar 82KB
axis2-fastinfoset-1.5.1.jar 70KB
activation-1.1.jar 62KB
commons-logging-1.1.1.jar 59KB
jettison-1.0-RC2.jar 53KB
commons-fileupload-1.2.jar 52KB
geronimo-jaxws_2.1_spec-1.0.jar 47KB
commons-codec-1.3.jar 46KB
axis2-jibx-1.5.1.jar 35KB
mex-1.5.1.jar 33KB
neethi-2.0.4.jar 32KB
soapmonitor-1.5.1.jar 31KB
geronimo-saaj_1.3_spec-1.0.1.jar 29KB
geronimo-stax-api_1.0_spec-1.0.1.jar 28KB
axis2-xmlbeans-1.5.1.jar 26KB
axis2-java2wsdl-1.5.1.jar 25KB
axis2-jaxbri-1.5.1.jar 25KB
axis2-json-1.5.1.jar 17KB
axis2-ant-plugin-1.5.1.jar 16KB
geronimo-ws-metadata_2.0_spec-1.1.2.jar 14KB
axis2-mtompolicy-1.5.1.jar 13KB
geronimo-annotation_1.0_spec-1.1.jar 12KB
axis2-spring-1.5.1.jar 11KB
axis2-transport-local-1.5.1.jar 11KB
EcardSystemStub.java 207KB
EcardSystemCallbackHandler.java 3KB
EcardSystemClient.java 3KB
EcardSystemServer.java 2KB
MANIFEST.MF 36B
.mymetadata 306B
org.eclipse.jdt.core.prefs 330B
.project 1KB
build.xml 5KB
build.xml 5KB
共 101 条
- 1
- 2
资源评论
- zhongguorenmeiran2012-12-17都是基础性的,没有太过深入╮(╯▽╰)╭
- liuxsqq2014-02-18例子写的不错,就是axis里面那个4000多行的类是要自己写的吗,好难
- dmstudy2012-08-03还行了,就是还是不够详细
cx88410
- 粉丝: 34
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功