/**
* SimpleServiceStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.5.5 Built on : May 28, 2011 (08:30:56 CEST)
*/
package pojoclient;
/*
* SimpleServiceStub java implementation
*/
public class SimpleServiceStub 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 java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(java.lang.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("SimpleService" + getUniqueSuffix());
addAnonymousOperations();
//creating the operations
org.apache.axis2.description.AxisOperation __operation;
_operations = new org.apache.axis2.description.AxisOperation[2];
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://ws.apache.org/axis2", "getPrice"));
_service.addOperation(__operation);
_operations[0]=__operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://ws.apache.org/axis2", "getGreeting"));
_service.addOperation(__operation);
_operations[1]=__operation;
}
//populates the faults
private void populateFaults(){
}
/**
*Constructor that takes in a configContext
*/
public SimpleServiceStub(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 SimpleServiceStub(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);
_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 SimpleServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
this(configurationContext,"http://localhost:8080/axis2/services/SimpleService.SimpleServiceHttpSoap12Endpoint/" );
}
/**
* Default Constructor
*/
public SimpleServiceStub() throws org.apache.axis2.AxisFault {
this("http://localhost:8080/axis2/services/SimpleService.SimpleServiceHttpSoap12Endpoint/" );
}
/**
* Constructor taking the target endpoint
*/
public SimpleServiceStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
this(null,targetEndpoint);
}
/**
* Auto generated method signature
*
* @see pojoclient.SimpleService#getPrice
*/
public pojoclient.SimpleServiceStub.GetPriceResponse getPrice(
)
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:getPrice");
_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;
//Style is taken to be "document". No input parameters
// according to the WS-Basic profile in this case we have to send an empty soap message
org.apache.axiom.soap.SOAPFactory factory = getFactory(_operationClient.getOptions().getSoapVersionURI());
env = factory.getDefaultEnvelope();
//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() ,
pojoclient.SimpleServiceStub.GetPriceResponse.class,
getEnvelopeNamespaces(_returnEnv));
return (pojoclient.SimpleServiceStub.GetPriceResponse)object;
}catch(org.apache.axis2.AxisFault f){
org.apache.axiom.om.OMElement faultElt = f.getDetail();
if (faultElt!=null){
if (faultExceptionNameMap.containsKey(faultElt.getQName())){
//make the fault by reflection
try{
java.lang.String exceptionClassName = (java.lang.String)faultExcep
没有合适的资源?快使用搜索试试~ 我知道了~
webservice之axis2引擎
共159个文件
jsp:38个
jar:35个
class:21个
5星 · 超过95%的资源 需积分: 11 562 下载量 142 浏览量
2011-09-13
09:50:02
上传
评论 10
收藏 50.51MB RAR 举报
温馨提示
本人总结的关于webservice之axis2引擎的开发文档,其实是以备自己日后使用的,现在贡献出来供大家学习,参考。我人深感因为没有资源分而不能获得文档的苦恼。学习的权利是平等的。所以,我的文档就不设资源分了。如果哪位仁兄感觉资料有用的话,在施舍点资源费,本人感激不尽!
资源推荐
资源详情
资源评论
收起资源包目录
webservice之axis2引擎 (159个子文件)
version.aar 13KB
AxiomService.aar 5KB
RPCService.aar 1KB
SimpleServiceStub.class 13KB
SimpleServiceStub$GetPriceResponse.class 8KB
SimpleServiceStub$GetGreetingResponse.class 8KB
SimpleServiceStub$GetGreeting.class 8KB
FileTransportClient.class 6KB
FileTransferServer.class 5KB
SimpleServiceStub$GetGreetingResponse$Factory.class 3KB
SimpleServiceStub$GetGreeting$Factory.class 3KB
SimpleServiceStub$GetPriceResponse$Factory.class 3KB
RevokeAxiomClient.class 3KB
RevokeAxiomService.class 3KB
POJORPCClient.class 2KB
ServiceRPCClient.class 2KB
SimpleServiceStub$GetGreetingResponse$1.class 2KB
SimpleServiceStub$GetPriceResponse$1.class 2KB
SimpleServiceStub$GetGreeting$1.class 2KB
StubClient.class 1KB
SimpleServiceStub$ExtensionMapper.class 1KB
MyService.class 874B
SimpleService.class 758B
SimpleService.class 758B
.classpath 2KB
axis-style.css 2KB
asf-logo.gif 6KB
axis.gif 2KB
AuthError.html 1KB
GenError.html 1KB
footer.inc 1KB
header.inc 1KB
adminheader.inc 1KB
link-footer.inc 927B
adminfooter.inc 903B
axis2-kernel-1.5.5.jar 981KB
axis2-kernel-1.5.5.jar 981KB
axis2-adb-1.5.5.jar 763KB
axis2-adb-1.5.5.jar 763KB
axiom-api-1.2.11.jar 418KB
axiom-api-1.2.11.jar 418KB
log4j-1.2.15.jar 383KB
log4j-1.2.15.jar 383KB
mail-1.4.jar 380KB
mail-1.4.jar 380KB
commons-httpclient-3.1.jar 298KB
commons-httpclient-3.1.jar 298KB
httpcore-4.0.jar 169KB
httpcore-4.0.jar 169KB
axis2-transport-http-1.5.5.jar 150KB
axis2-transport-http-1.5.5.jar 150KB
woden-api-1.0M8.jar 146KB
woden-api-1.0M8.jar 146KB
wsdl4j-1.6.2.jar 145KB
wsdl4j-1.6.2.jar 145KB
XmlSchema-1.4.3.jar 140KB
XmlSchema-1.4.3.jar 140KB
axiom-impl-1.2.11.jar 120KB
axiom-impl-1.2.11.jar 120KB
commons-io-1.4.jar 106KB
commons-logging-1.1.1.jar 59KB
commons-logging-1.1.1.jar 59KB
commons-fileupload-1.2.jar 52KB
commons-fileupload-1.2.jar 52KB
commons-codec-1.3.jar 46KB
commons-codec-1.3.jar 46KB
neethi-2.0.5.jar 33KB
neethi-2.0.5.jar 33KB
axis2-transport-local-1.5.5.jar 20KB
axis2-transport-local-1.5.5.jar 20KB
SimpleServiceStub.java 87KB
FileTransportClient.java 6KB
FileTransferServer.java 5KB
RevokeAxiomService.java 3KB
RevokeAxiomClient.java 3KB
POJORPCClient.java 2KB
ServiceRPCClient.java 2KB
StubClient.java 999B
MyService.java 558B
SimpleService.java 215B
axis_l.jpg 12KB
axis.jpg 3KB
HappyAxis.jsp 17KB
listService.jsp 6KB
ViewServiceHandlers.jsp 6KB
ViewGlobalHandlers.jsp 5KB
LeftFrame.jsp 5KB
listServices.jsp 5KB
engagingtoaservice.jsp 5KB
ServiceParaEdit.jsp 5KB
EngageToServiceGroup.jsp 5KB
engagingtoanoperation.jsp 5KB
viewphases.jsp 4KB
httpbase.jsp 4KB
listSingleService.jsp 4KB
listGroupService.jsp 4KB
listFaultyService.jsp 4KB
SelectService.jsp 4KB
adminheader.jsp 4KB
Login.jsp 3KB
共 159 条
- 1
- 2
绿竹痕
- 粉丝: 121
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Fluent电弧,激光,熔滴一体模拟 UDF包括高斯旋转体热源、双椭球热源(未使用)、VOF梯度计算、反冲压力、磁场力、表面张
- 基于Vue框架的Java+JavaScript+HTML+Vue.js全栈开发设计源码
- 基于Java语言的MyAdmin无忧保姆后台服务器设计源码
- comsol 采动影响下考虑塑性变形煤层瓦斯抽采模型comsol流固耦合瓦斯抽采模型
- 基于Java语言的数据库字段在线统计维护系统后端源码设计
- 基于Android平台的科瑞康心电Java & Kotlin双语言设计源码
- 基于Java开发的智慧景区微信小程序后端设计源码
- 基于Java的UETool界面视图属性查看与编辑设计源码
- 基于电流差分法的无模型预测电流控制方法 无需观测器(MFPCC),基于上一时刻的电流差分,采用查表法,选取最优电压矢量
- 基于Lucene 5.x版本的ik-analyzer分词器改造设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页