package com.name.webservice.server.impl;

import javax.xml.rpc.ServiceException;

import com.name.myapp.websevice.axis.PersonType;

public class PersonService implements javax.xml.rpc.server.ServiceLifecycle {
	private String id;
	
	public PersonService(String id)
	{
		this.id = id;
	}
	
	public PersonType getPersonType()
	{
		return new PersonType(id, "lastname", "firstname");
	}
	
  // TODO here it works not!
	public void init(Object arg0) throws ServiceException {
		System.out.println("PersonService - init");
	}

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