📄 receivemessageservicestub.java
字号:
}
if (ex instanceof cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException) {
callback.receiveErrorgetMessage((cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ServiceException) ex);
return;
}
callback.receiveErrorgetMessage(new java.rmi.RemoteException(
ex.getMessage(), ex));
} catch (java.lang.ClassCastException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
} catch (java.lang.ClassNotFoundException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
} catch (java.lang.NoSuchMethodException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
} catch (java.lang.reflect.InvocationTargetException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
} catch (java.lang.IllegalAccessException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
} catch (java.lang.InstantiationException e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
} catch (org.apache.axis2.AxisFault e) {
// we cannot intantiate the class - throw the original Axis fault
callback.receiveErrorgetMessage(f);
}
} else {
callback.receiveErrorgetMessage(f);
}
} else {
callback.receiveErrorgetMessage(f);
}
} else {
callback.receiveErrorgetMessage(error);
}
}
public void onFault(
org.apache.axis2.context.MessageContext faultContext) {
org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
onError(fault);
}
public void onComplete() {
// Do nothing by default
}
});
org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
if ((_operations[2].getMessageReceiver() == null) &&
_operationClient.getOptions().isUseSeparateListener()) {
_callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
_operations[2].setMessageReceiver(_callbackReceiver);
}
//execute the operation client
_operationClient.execute(false);
}
/**
* A utility method that copies the namepaces from the SOAPEnvelope
*/
private java.util.Map getEnvelopeNamespaces(
org.apache.axiom.soap.SOAPEnvelope env) {
java.util.Map returnMap = new java.util.HashMap();
java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
while (namespaceIterator.hasNext()) {
org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
returnMap.put(ns.getPrefix(), ns.getNamespaceURI());
}
return returnMap;
}
private boolean optimizeContent(javax.xml.namespace.QName opName) {
if (opNameArray == null) {
return false;
}
for (int i = 0; i < opNameArray.length; i++) {
if (opName.equals(opNameArray[i])) {
return true;
}
}
return false;
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessage4 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessage4.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageResponse6 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageResponse6.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.PolicyException1 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.PolicyException1.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.ServiceException2 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.ServiceException2.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageURIs5 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageURIs5.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageURIsResponse7 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageURIsResponse7.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessages9 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessages9.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessagesResponse8 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessagesResponse8.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessage4 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody()
.addChild(param.getOMElement(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessage4.MY_QNAME,
factory));
return emptyEnvelope;
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageURIs5 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody()
.addChild(param.getOMElement(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetMessageURIs5.MY_QNAME,
factory));
return emptyEnvelope;
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.receive.v2_2.service.ReceiveMessageServiceStub.GetReceivedMessages9 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -