You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Enrico Brunetta <en...@motive.com> on 2004/09/30 00:16:22 UTC

RE: svn commit: rev 47508 - incubator/beehive/trunk/wsm/samples/dropInDeployment/AddressBook/server/web

Works like a charm....
Thanks, I was just trying so I do not get in cvs hell later...
Enrico.

> -----Original Message-----
> From: mmerz@apache.org [mailto:mmerz@apache.org]
> Sent: Wednesday, September 29, 2004 5:09 PM
> To: beehive-cvs@incubator.apache.org
> Subject: svn commit: rev 47508 -
>
incubator/beehive/trunk/wsm/samples/dropInDeployment/AddressBook/server/
we
> b
> 
> Author: mmerz
> Date: Wed Sep 29 15:09:08 2004
> New Revision: 47508
> 
> Added:
> 
>
incubator/beehive/trunk/wsm/samples/dropInDeployment/AddressBook/server/
we
> b/AddressBookWebService.jws
> Log:
> Somehow the AddressBookWebService.jws was deleted. Add it again.
> 
> Contributor: Daryoush Mehrtash
> 
> 
> 
> 
> Added:
>
incubator/beehive/trunk/wsm/samples/dropInDeployment/AddressBook/server/
we
> b/AddressBookWebService.jws
>
========================================================================
==
> ====
> --- (empty file)
> +++
>
incubator/beehive/trunk/wsm/samples/dropInDeployment/AddressBook/server/
we
> b/AddressBookWebService.jws	Wed Sep 29 15:09:08 2004
> @@ -0,0 +1,46 @@
> +import java.rmi.RemoteException;
> +
> +import org.beehive.demo.Address;
> +import org.beehive.demo.AddressBook;
> +import org.beehive.demo.AddressBookImpl;
> +
> +
> +import javax.jws.Oneway;
> +import javax.jws.WebMethod;
> +import javax.jws.WebParam;
> +import javax.jws.WebResult;
> +import javax.jws.WebService;
> +
> +@WebService( targetNamespace="http://www.beehive.com/AddressBook")
> +public class AddressBookWebService implements AddressBook {
> +
> +    AddressBook  addressBook;
> +
> +
> +    public AddressBookWebService() {
> +        addressBook= new AddressBookImpl();
> +    }
> +
> +    /**
> +     * @param name
> +     * @param address
> +     * @throws java.rmi.RemoteException
> +     */
> +    @WebMethod
> +    public void addEntry(String name, Address address) throws
> RemoteException {
> +        addressBook.addEntry(name, address);
> +    }
> +    /**
> +     * @param name
> +     * @return
> +     * @throws java.rmi.RemoteException
> +     */
> +    @WebMethod
> +    public Address getAddressFromName(String name) throws
RemoteException
> {
> +        return addressBook.getAddressFromName(name);
> +    }
> +
> +
> +    public void notWebService() {
> +    }
> +}