All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.axis2.wsdl.template.java.MessageReceiverTemplate.xsl Maven / Gradle / Ivy

There is a newer version: 1.8.2
Show newest version



    

    
    
    
    


    
    

        
        
/**
 * .java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: #axisVersion# #today#
 */
        package ;

        /**
        *   message receiver
        */

        public class  extends {


        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);

         skel = ()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.xmlNameToJavaIdentifier(op.getName().getLocalPart())) != null)){


        
            } else 

            if("".equals(methodName)){
                
                
                
                    

                        

                        
                        

                        
                        
                        
                        
                        
                        

						
	                        
	                            
	                             
	                             = 0;
	                        	
	                        
	                        
	                            
	                             
	                             = false;
	                        	                        					

	                        
	                            
	                             
	                             = '\u0000';
	                        	
	                        						
	                        
	                            
	                             
	                             = null;
	                        
						
						

                        
                            
                            

                                
                                
                                
                                

                                
                                    
                                        
                                               
                                                      wrappedParam =
                                                                 ()fromOM(
                                                        msgContext.getEnvelope().getBody().getFirstElement(),
                                                        .class,
                                                        getEnvelopeNamespaces(msgContext.getEnvelope()));

                                                         =
                                                        
                                                            
                                                                   wrap(skel.(
                                                                      get(wrappedParam)));
                                                            
                                                            
                                                                   skel.(
                                                                      get(wrappedParam));
                                                            
                                                            
                                                                   wrap(skel.(wrappedParam));
                                                            
                                                            
                                                                 skel.(wrappedParam);
                                                            
                                                         

                                                
                                                
                                                      =
                                                     
                                                         
                                                             wrap(skel.());
                                                         
                                                         
                                                             skel.();
                                                         
                                                     
                                                
                                        
                                    
                                    

                                         
                                            
                                                  wrappedParam =
                                                             ()fromOM(
                                    msgContext.getEnvelope().getBody().getFirstElement(),
                                    .class,
                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
                                                
                                               
                                                =
                                                   
                                                   
                                                       
                                                           wrap(
                                                       
                                                       
                                                           wrap(
                                                       
                                                       
                                                           wrap();
                                                       
                                                   
                                               

                                                
                                                    
                                                        

                                                        
                                                       skel.(
                                                            
                                                                ,
                                                                get(wrappedParam)
                                                            )
                                                    
                                                    
                                                         skel.(wrappedParam)
                                                    
                                                
                                                
                                                     
                                                         )
                                                     
                                                 ;
                                            
                                            
                                                  =
                                                     
                                                       
                                                           wrap(
                                                       
                                                       
                                                           wrap(
                                                       
                                                   
                                                 
                                                 skel.()
                                                
                                                     
                                                         )
                                                     
                                                 ;
                                            
                                        
                                    
                                


                                
                                    
                                        envelope = toEnvelope(getSOAPFactory(msgContext), , false, new javax.xml.namespace.QName("",
                                                    ""));
                                    
                                    
                                        envelope = getSOAPFactory(msgContext).getDefaultEnvelope();
                                    
                                
                            

                            
                                //Unknown style!! No code is generated
                                throw new java.lang.UnsupportedOperationException("Unknown Style");
                            
                        
                    

                    
                        envelope = (msgContext.getEnvelope().getBody().getFirstElement(), skel, getSOAPFactory(msgContext));
                    

                

        
        
            } else {
              throw new java.lang.RuntimeException("method not found");
            }
        

        newMsgContext.setEnvelope(envelope);
        }
        
            } catch ( e) {

            msgContext.setProperty(org.apache.axis2.Constants.FAULT_NAME,"");
            org.apache.axis2.AxisFault f = createAxisFault(e);
            if (e.getFaultMessage() != null){
                f.setDetail(toOM(e.getFaultMessage(),false));
            }
            throw f;
            }
        
        
        }
        catch (java.lang.Exception e) {
        throw org.apache.axis2.AxisFault.makeFault(e);
        }
        }
        
        //message-receiver

        /**
        *  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
    
    

    
    
        

/**
 * .java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: #axisVersion# #today#
 */
        package ;

        /**
        *   message receiver
        */

        public class  extends {

        public void invokeBusinessLogic(org.apache.axis2.context.MessageContext inMessage) throws org.apache.axis2.AxisFault{

        try {

        // get the implementation class for the Web Service
        Object obj = getTheImplementationObject(inMessage);

         skel = ()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 = inMessage.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.xmlNameToJavaIdentifier(op.getName().getLocalPart())) != null)){

        

            

            } else 
            if("".equals(methodName)){
            
            
            
                

                    
                        
                        

                            
                            
                            
                                
                                     wrappedParam = ()fromOM(
                                                        inMessage.getEnvelope().getBody().getFirstElement(),
                                                        .class,
                                                        getEnvelopeNamespaces(inMessage.getEnvelope()));
                                            
                                                
                                                    

                                                    
                                                   skel.(
                                                        
                                                            ,
                                                            get(wrappedParam)
                                                        );
                                                
                                                
                                                     skel.(wrappedParam);
                                                
                                            
                                
                                
                                    skel.();
                                
                            
                        

                        
                            //Unknown style!! No code is generated
                            throw new java.lang.UnsupportedOperationException("Unknown Style");
                        
                    

                

                
                    (inMessage.getEnvelope().getBody().getFirstElement(), skel, null);
                

            
        
            
                } else {
                  throw new java.lang.RuntimeException("method not found");
                }
            

        }
        } catch (java.lang.Exception e) {
        throw org.apache.axis2.AxisFault.makeFault(e);
        }
        }


        
        //message-receiver



        /**
        *  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;
        }



        }//end of class

    

    
    

        
        

/**
 * .java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: #axisVersion# #today#
 */
        package ;

        /**
        *   message receiver
        */

        public class  extends {


        public void invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext)
        throws org.apache.axis2.AxisFault{

        try {

        // get the implementation class for the Web Service
        Object obj = getTheImplementationObject(msgContext);

         skel = ()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.xmlNameToJavaIdentifier(op.getName().getLocalPart())) != null)){
     
        
            } else 
            if("".equals(methodName)){
            
            
            
                

                    

                    
                        
                        
                            //doc style
                            
                            
                            

                            
                                
                                     
                                        
                                              wrappedParam =
                                                         ()fromOM(
                                                        msgContext.getEnvelope().getBody().getFirstElement(),
                                                        .class,
                                                        getEnvelopeNamespaces(msgContext.getEnvelope()));
                                            
                                           
                                           
                                            
                                                
                                                   skel.(
                                                        get(wrappedParam)
                                                    );
                                                
                                                
                                                     skel.(wrappedParam) ;
                                                
                                            
                                        
                                        
                                             skel.();
                                        
                                    
                                
                                
                                     
                                        
                                              wrappedParam =
                                                         ()fromOM(
                                                        msgContext.getEnvelope().getBody().getFirstElement(),
                                                        .class,
                                                        getEnvelopeNamespaces(msgContext.getEnvelope()));
                                            
                                           
                                            
                                                
                                               skel.(
                                                    
                                                        ,
                                                        get(wrappedParam)
                                                    

                                                );
                                                
                                                
                                                     skel.(wrappedParam) ;
                                                
                                            
                                        
                                        
                                             skel.();
                                        
                                    
                                
                            

                             envelope = getSOAPFactory(msgContext).getDefaultEnvelope();
                        

                        
                            //Unknown style!! No code is generated
                            throw new java.lang.UnsupportedOperationException("Unknown Style");
                        
                    
                

                
                    envelope = (msgContext.getEnvelope().getBody().getFirstElement(), skel, getSOAPFactory(msgContext));
                

            
        
             
                } else {
                  throw new java.lang.RuntimeException("method not found");
                }
            

        }
        
            } catch ( e) {
            msgContext.setProperty(org.apache.axis2.Constants.FAULT_NAME,"");
            org.apache.axis2.AxisFault f = createAxisFault(e);
            if (e.getFaultMessage() != null){
                f.setDetail(toOM(e.getFaultMessage(),false));
            }
            throw f;
            }
        
        
        }
        catch (java.lang.Exception e) {
        throw org.apache.axis2.AxisFault.makeFault(e);
        }
        }
        
        //message-receiver

        /**
        *  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
    
    






© 2015 - 2024 Weber Informatics LLC | Privacy Policy