beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Brunetta" <enr...@motive.com>
Subject RE: svn commit: rev 47508 - incubator/beehive/trunk/wsm/samples/dropInDeployment/AddressBook/server/web
Date Wed, 29 Sep 2004 22:16:22 GMT
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() {
> +    }
> +}



Mime
View raw message