/**
 * MyAppServiceBindingSkeleton.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.name.myapp.websevice.axis;

import javax.xml.rpc.ServiceException;

public class MyAppServiceBindingSkeleton implements com.name.myapp.websevice.axis.MyAppServicePort, 
   org.apache.axis.wsdl.Skeleton
   , javax.xml.rpc.server.ServiceLifecycle
   {
    private com.name.myapp.websevice.axis.MyAppServicePort impl;
    private static java.util.Map _myOperations = new java.util.Hashtable();
    private static java.util.Collection _myOperationsList = new java.util.ArrayList();

    /**
    * Returns List of OperationDesc objects with this name
    */
    public static java.util.List getOperationDescByName(java.lang.String methodName) {
        return (java.util.List)_myOperations.get(methodName);
    }

    /**
    * Returns Collection of OperationDescs
    */
    public static java.util.Collection getOperationDescs() {
        return _myOperationsList;
    }

    static {
        org.apache.axis.description.OperationDesc _oper;
        org.apache.axis.description.FaultDesc _fault;
        org.apache.axis.description.ParameterDesc [] _params;
        _params = new org.apache.axis.description.ParameterDesc [] {
            new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "PersonReq"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false), 
        };
        _oper = new org.apache.axis.description.OperationDesc("getPerson", _params, new javax.xml.namespace.QName("http://www.name.com/myapp/", "person"));
        _oper.setReturnType(new javax.xml.namespace.QName("http://www.name.com/myapp/", "PersonType"));
        _oper.setElementQName(new javax.xml.namespace.QName("", "getPerson"));
        _oper.setSoapAction("http://www.name.com/myapp");
        _myOperationsList.add(_oper);
        if (_myOperations.get("getPerson") == null) {
            _myOperations.put("getPerson", new java.util.ArrayList());
        }
        ((java.util.List)_myOperations.get("getPerson")).add(_oper);
    }

    public MyAppServiceBindingSkeleton() {
        this.impl = new com.name.webservice.server.ServiceImpl();
    }

    public MyAppServiceBindingSkeleton(com.name.myapp.websevice.axis.MyAppServicePort impl) {
        this.impl = impl;
    }
    public com.name.myapp.websevice.axis.PersonType getPerson(java.lang.String personReq) throws java.rmi.RemoteException
    {
        com.name.myapp.websevice.axis.PersonType ret = impl.getPerson(personReq);
        return ret;
    }

    // here it works very good
		public void init(Object arg0) throws ServiceException {
			System.out.println("Skeleton - init");
		}

		public void destroy() {
			System.out.println("Skeleton - destroy");
		}
}
