diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-23 21:21:18 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-23 21:21:18 +0000 |
commit | 75c4045c9663debea932437ed12954e74e7e27bd (patch) | |
tree | b319b764c8368e29242c2f77343a8717375f9c2d /sandbox/rfeng/samples.M2/creditws-axis2/src/credit/CreditCheckServiceMessageReceiverInOut.java | |
parent | 0b8a310ea6ebded47de92651efbf234b181367e5 (diff) |
Delete obsolete contents
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@670762 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/rfeng/samples.M2/creditws-axis2/src/credit/CreditCheckServiceMessageReceiverInOut.java | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/sandbox/rfeng/samples.M2/creditws-axis2/src/credit/CreditCheckServiceMessageReceiverInOut.java b/sandbox/rfeng/samples.M2/creditws-axis2/src/credit/CreditCheckServiceMessageReceiverInOut.java deleted file mode 100644 index 498351f85d..0000000000 --- a/sandbox/rfeng/samples.M2/creditws-axis2/src/credit/CreditCheckServiceMessageReceiverInOut.java +++ /dev/null @@ -1,144 +0,0 @@ - -/** - * CreditCheckServiceMessageReceiverInOut.java - * - * This file was auto-generated from WSDL - * by the Apache Axis2 version: 1.1-RC2 Nov 02, 2006 (02:37:50 LKT) - */ -package credit; - -/** - * CreditCheckServiceMessageReceiverInOut message receiver - */ - -public class CreditCheckServiceMessageReceiverInOut 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); - - CreditCheckServiceSkeleton skel = (CreditCheckServiceSkeleton)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 = op.getName().getLocalPart()) != null) { - - if ("getCreditScore".equals(methodName)) { - - credit.GetCreditScoreResponse param11 = null; - - // doc style - credit.GetCreditScore wrappedParam = - (credit.GetCreditScore)fromOM(msgContext.getEnvelope().getBody().getFirstElement(), - credit.GetCreditScore.class, - getEnvelopeNamespaces(msgContext.getEnvelope())); - - param11 = skel.getCreditScore(wrappedParam); - - envelope = toEnvelope(getSOAPFactory(msgContext), param11, false); - - } - - newMsgContext.setEnvelope(envelope); - } - } catch (Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - // - private org.apache.axiom.om.OMElement toOM(credit.GetCreditScore param, boolean optimizeContent) { - - return param.getOMElement(credit.GetCreditScore.MY_QNAME, org.apache.axiom.om.OMAbstractFactory - .getOMFactory()); - - } - - private org.apache.axiom.om.OMElement toOM(credit.GetCreditScoreResponse param, boolean optimizeContent) { - - return param.getOMElement(credit.GetCreditScoreResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, - credit.GetCreditScoreResponse param, - boolean optimizeContent) { - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - - emptyEnvelope.getBody().addChild(param.getOMElement(credit.GetCreditScoreResponse.MY_QNAME, factory)); - - return emptyEnvelope; - } - - /** - * 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) { - - try { - - if (credit.GetCreditScore.class.equals(type)) { - - return credit.GetCreditScore.Factory.parse(param.getXMLStreamReaderWithoutCaching()); - - } - - if (credit.GetCreditScoreResponse.class.equals(type)) { - - return credit.GetCreditScoreResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching()); - - } - - } catch (Exception e) { - throw new RuntimeException(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 |