/**
* MyserviceStudentServerStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT)
*/
package com.toceansoft.ws;
/*
* MyserviceStudentServerStub java implementation
*/
public class MyserviceStudentServerStub 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("MyserviceStudentServer" + getUniqueSuffix());
addAnonymousOperations();
//creating the operations
org.apache.axis2.description.AxisOperation __operation;
_operations = new org.apache.axis2.description.AxisOperation[1];
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName("http://ws.toceansoft.com", "getStudent"));
_service.addOperation(__operation);
_operations[0]=__operation;
}
//populates the faults
private void populateFaults(){
}
/**
*Constructor that takes in a configContext
*/
public MyserviceStudentServerStub(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 MyserviceStudentServerStub(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 MyserviceStudentServerStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
this(configurationContext,"http://localhost:8080/ssh/services/myservice/StudentServer.StudentServerHttpSoap12Endpoint/" );
}
/**
* Default Constructor
*/
public MyserviceStudentServerStub() throws org.apache.axis2.AxisFault {
this("http://localhost:8080/ssh/services/myservice/StudentServer.StudentServerHttpSoap12Endpoint/" );
}
/**
* Constructor taking the target endpoint
*/
public MyserviceStudentServerStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
this(null,targetEndpoint);
}
/**
* Auto generated method signature
*
* @see com.toceansoft.ws.MyserviceStudentServer#getStudent
* @param getStudent0
*/
public com.toceansoft.ws.MyserviceStudentServerStub.GetStudentResponse getStudent(
com.toceansoft.ws.MyserviceStudentServerStub.GetStudent getStudent0)
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:getStudent");
_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()),
getStudent0,
optimizeContent(new javax.xml.namespace.QName("http://ws.toceansoft.com",
"getStudent")));
//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.toceansoft.ws.MyserviceStudentServerStub.GetStudentResponse.class,
getEnvelopeNamespaces(_returnEnv));
return (com.toceansoft.ws.MyserviceStudentServerStub.GetStudentResponse)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.lan
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SSH+axis2+extjs4.0项目 (1543个子文件)
simpleServer.aar 19KB
StudentServer.aar 19KB
version-1.6.2.aar 8KB
AdminAgent.class 18KB
MyserviceStudentServerStub.class 14KB
MyserviceSimpleServerStub.class 14KB
MyserviceStudentServerStub$GetStudent.class 9KB
MyserviceStudentServerStub$Student.class 9KB
MyserviceStudentServerStub$GetStudentResponse.class 9KB
MyserviceSimpleServerStub$SimpleMethod.class 9KB
MyserviceSimpleServerStub$SimpleMethodResponse.class 8KB
MyserviceSimpleServerStub$1.class 6KB
MyserviceStudentServerStub$1.class 6KB
MyserviceStudentServerStub$GetStudentResponse$Factory.class 4KB
MyserviceStudentServerStub$GetStudent$Factory.class 4KB
MyserviceStudentServerStub$Student$Factory.class 4KB
MyserviceSimpleServerStub$SimpleMethodResponse$Factory.class 3KB
MyserviceSimpleServerStub$SimpleMethod$Factory.class 3KB
AxisAdminServlet.class 2KB
MyserviceSimpleServerStub$SimpleMethodResponse$1.class 2KB
MyserviceStudentServerStub$GetStudentResponse$1.class 2KB
MyserviceSimpleServerStub$SimpleMethod$1.class 2KB
MyserviceStudentServerStub$GetStudent$1.class 2KB
MyserviceStudentServerStub$Student$1.class 2KB
UserDaoImpl.class 2KB
UserDaoImpl.class 2KB
MyserviceStudentServerStub$ExtensionMapper.class 1KB
StudentClient.class 1KB
SimpleClient.class 1KB
MyserviceSimpleServerCallbackHandler.class 1KB
MyserviceStudentServerCallbackHandler.class 1KB
AxisAdminServlet.class 1KB
TestSpringHibernate.class 1KB
TestSpringHibernate.class 1KB
UserAction.class 1KB
UserAction.class 1KB
MyserviceSimpleServerStub$ExtensionMapper.class 1KB
User.class 984B
User.class 984B
UserServiceImpl.class 874B
UserServiceImpl.class 874B
TestUserSave.class 838B
TestUserSave.class 838B
SimpleServer.class 736B
SimpleServer.class 736B
Student.class 715B
Student.class 715B
StudentServer.class 674B
StudentServer.class 674B
IUserService.class 176B
IUserService.class 176B
IUserDao.class 168B
IUserDao.class 168B
.classpath 9KB
org.eclipse.wst.common.component 439B
org.eclipse.wst.jsdt.ui.superType.container 49B
ext-sandbox.css 251KB
ext-all-scoped.css 245KB
ext-all.css 224KB
ext-ie-scoped.css 218KB
ext-all-gray.css 215KB
ext-all-access.css 207KB
ext-ie.css 197KB
ext-standard-scoped.css 171KB
ext-standard.css 156KB
axis-style.css 2KB
asf-logo.gif 6KB
tool-sprites.gif 6KB
tool-sprites.gif 5KB
btn.gif 4KB
error-tip-corners.gif 4KB
error-tip-corners.gif 4KB
error-tip-corners.gif 4KB
radio.gif 3KB
tip-sprite.gif 3KB
btn.gif 3KB
large-loading.gif 3KB
blue-loading.gif 3KB
large-loading.gif 3KB
blue-loading.gif 3KB
blue-loading.gif 3KB
large-loading.gif 3KB
checkbox.gif 3KB
btn.gif 3KB
tools-sprites-trans.gif 3KB
tools-sprites-trans.gif 3KB
tools-sprites-trans.gif 3KB
sort-hd.gif 3KB
axis.gif 2KB
group-cs.gif 2KB
group-cs.gif 2KB
group-cs.gif 2KB
search-trigger.gif 2KB
search-trigger.gif 2KB
loading-balls.gif 2KB
loading-balls.gif 2KB
sort-hd.gif 2KB
tb-sprite.gif 2KB
tb-sprite.gif 2KB
checkbox_.gif 2KB
共 1543 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16
jixueyou
- 粉丝: 2
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页