Can you try dropping the @WebService annotation. You can certainly control
the name of the service using the name Attribute on the services.xml.

Thanks,
Keith.

On Wed, Feb 18, 2009 at 1:44 AM, Cromer, Rick <rick.cro...@stratus.com>wrote:

>  *I'm having problems controlling my ServiceName.  This is important since
> I'm trying to migrate Axis1 to Axis2 and need to preserve the service name
> to minimize the impact on the SOAP clients.  I set the WebService name
> attribute in the service class to "Address", the class name of the service
> is "AddressService" and the service name attribute in the services.xml file
> to "Address".  What Axis appears to be doing it setting the Service name to
> ClassName + "Service".  Why can't I control the service name from the class
> @WebService attribute name value?*
>
> * *
>
> *package* book.sample;
>
>
>
> *import* javax.jws.WebService;
>
>
>
> @WebService (name = "Address")
>
> *public* *class* AddressService {
>
>
>
>     *public* Address getAddress(String name) {
>
>
>
>         Address address = *new* Address();
>
>         address.setStreet("Street");
>
>         address.setNumber("Number 15");
>
>         *return* address;
>
>     }
>
> }
> *Content of the services.xml file*
>
>     <service name=*"Address"*>
>
>         <parameter name=*"ServiceClass"* locked=*"false"*>
> book.sample.AddressService</parameter>
>
>     </service>
> * * 
> *AddressServiceService<http://localhost:8080/axis2/services/AddressServiceService?wsdl>
> *
>
> Service EPR : http://localhost:8080/axis2/services/AddressServiceService
> *Service Description : Address*
>
> *Service Status : Active*
> *Available Operations*
>
>    - getAddress
>
> Rick
>
>
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to