📄 receivemessageservicestub.java
字号:
/**
* ReceiveMessageServiceStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT)
*/
package cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service;
/*
* ReceiveMessageServiceStub java implementation
*/
public class ReceiveMessageServiceStub 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 javax.xml.namespace.QName[] opNameArray = null;
/**
*Constructor that takes in a configContext
*/
public ReceiveMessageServiceStub(
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 ReceiveMessageServiceStub(
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);
}
/**
* Default Constructor
*/
public ReceiveMessageServiceStub(
org.apache.axis2.context.ConfigurationContext configurationContext)
throws org.apache.axis2.AxisFault {
this(configurationContext,
"http://localhost:9080/ReceiveMessageService/services/ReceiveMessage");
}
/**
* Default Constructor
*/
public ReceiveMessageServiceStub() throws org.apache.axis2.AxisFault {
this(
"http://localhost:9080/ReceiveMessageService/services/ReceiveMessage");
}
/**
* Constructor taking the target endpoint
*/
public ReceiveMessageServiceStub(java.lang.String targetEndpoint)
throws org.apache.axis2.AxisFault {
this(null, targetEndpoint);
}
private void populateAxisService() throws org.apache.axis2.AxisFault {
//creating the Service with a unique name
_service = new org.apache.axis2.description.AxisService(
"ReceiveMessageService" + this.hashCode());
//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://www.chinatelecom.com.cn/wsdl/ctcc/multimedia_messaging/receive/v2_2/service",
"getReceivedMessages"));
_service.addOperation(__operation);
_operations[0] = __operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/wsdl/ctcc/multimedia_messaging/receive/v2_2/service",
"getMessageURIs"));
_service.addOperation(__operation);
_operations[1] = __operation;
__operation = new org.apache.axis2.description.OutInAxisOperation();
__operation.setName(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/wsdl/ctcc/multimedia_messaging/receive/v2_2/service",
"getMessage"));
_service.addOperation(__operation);
_operations[2] = __operation;
}
//populates the faults
private void populateFaults() {
faultExceptionNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException");
faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException");
faultMessageMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub$PolicyException1");
faultExceptionNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException");
faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException");
faultMessageMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub$ServiceException2");
faultExceptionNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException");
faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException");
faultMessageMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub$PolicyException1");
faultExceptionNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException");
faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException");
faultMessageMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub$ServiceException2");
faultExceptionNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException");
faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException");
faultMessageMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"PolicyException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub$PolicyException1");
faultExceptionNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException");
faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException");
faultMessageMap.put(new javax.xml.namespace.QName(
"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
"ServiceException"),
"cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub$ServiceException2");
}
/**
* Auto generated method signature
* @see cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageService#getReceivedMessages
* @param getReceivedMessages0
*/
public cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessagesResponse8 getReceivedMessages(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessages9 getReceivedMessages0)
throws java.rmi.RemoteException,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.PolicyException,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException {
try {
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
_operationClient.getOptions().setAction("\"\"");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(_operationClient,
org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
"&");
// create a message context
org.apache.axis2.context.MessageContext _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()),
getReceivedMessages0,
optimizeContent(
new javax.xml.namespace.QName(
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -