📄 terminallocationnotificationservicemessagereceiverinout.java
字号:
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.LocationNotificationResponse5 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5.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.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7 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.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7.MY_QNAME,
factory));
return emptyEnvelope;
} 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.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8 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.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8.MY_QNAME,
factory));
return emptyEnvelope;
} 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.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5 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.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5.MY_QNAME,
factory));
return emptyEnvelope;
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/**
* get the default envelope
*/
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory) {
return factory.getDefaultEnvelope();
}
private java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
java.lang.Class type, java.util.Map extraNamespaces)
throws org.apache.axis2.AxisFault {
try {
if (cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6.class.equals(
type)) {
return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7.class.equals(
type)) {
return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9.class.equals(
type)) {
return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8.class.equals(
type)) {
return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4.class.equals(
type)) {
return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5.class.equals(
type)) {
return cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
} catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
return null;
}
/**
* 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 org.apache.axis2.AxisFault createAxisFault(java.lang.Exception e) {
org.apache.axis2.AxisFault f;
Throwable cause = e.getCause();
if (cause != null) {
f = new org.apache.axis2.AxisFault(e.getMessage(), cause);
} else {
f = new org.apache.axis2.AxisFault(e.getMessage());
}
return f;
}
} //end of class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -