📄 terminallocationnotificationservicemessagereceiverinout.java
字号:
/**
* TerminalLocationNotificationServiceMessageReceiverInOut.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.terminal_location.notification.v2_1.service;
/**
* TerminalLocationNotificationServiceMessageReceiverInOut message receiver
*/
public class TerminalLocationNotificationServiceMessageReceiverInOut extends org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver {
public void invokeBusinessLogic(
org.apache.axis2.context.MessageContext msgContext,
org.apache.axis2.context.MessageContext newMsgContext)
throws org.apache.axis2.AxisFault {
try {
// get the implementation class for the Web Service
Object obj = getTheImplementationObject(msgContext);
TerminalLocationNotificationServiceSkeleton skel = (TerminalLocationNotificationServiceSkeleton) obj;
//Out Envelop
org.apache.axiom.soap.SOAPEnvelope envelope = null;
//Find the axisOperation that has been set by the Dispatch phase.
org.apache.axis2.description.AxisOperation op = msgContext.getOperationContext()
.getAxisOperation();
if (op == null) {
throw new org.apache.axis2.AxisFault(
"Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
}
java.lang.String methodName;
if ((op.getName() != null) &&
((methodName = org.apache.axis2.util.JavaUtils.xmlNameToJava(
op.getName().getLocalPart())) != null)) {
if ("locationNotification".equals(methodName)) {
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5 locationNotificationResponse7 =
null;
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4 wrappedParam =
(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4) fromOM(msgContext.getEnvelope()
.getBody()
.getFirstElement(),
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4.class,
getEnvelopeNamespaces(msgContext.getEnvelope()));
locationNotificationResponse7 = skel.locationNotification(wrappedParam);
envelope = toEnvelope(getSOAPFactory(msgContext),
locationNotificationResponse7, false);
} else
if ("locationError".equals(methodName)) {
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8 locationErrorResponse9 =
null;
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9 wrappedParam =
(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9) fromOM(msgContext.getEnvelope()
.getBody()
.getFirstElement(),
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9.class,
getEnvelopeNamespaces(msgContext.getEnvelope()));
locationErrorResponse9 = skel.locationError(wrappedParam);
envelope = toEnvelope(getSOAPFactory(msgContext),
locationErrorResponse9, false);
} else
if ("locationEnd".equals(methodName)) {
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7 locationEndResponse11 =
null;
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6 wrappedParam =
(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6) fromOM(msgContext.getEnvelope()
.getBody()
.getFirstElement(),
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6.class,
getEnvelopeNamespaces(msgContext.getEnvelope()));
locationEndResponse11 = skel.locationEnd(wrappedParam);
envelope = toEnvelope(getSOAPFactory(msgContext),
locationEndResponse11, false);
} else {
throw new java.lang.RuntimeException("method not found");
}
newMsgContext.setEnvelope(envelope);
}
} catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
//
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6.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.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7.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.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9.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.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8.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.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -