org.codehaus.xfire.annotations
Class WebServiceAnnotation

java.lang.Object
  extended by org.codehaus.xfire.annotations.WebServiceAnnotation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WebService

public class WebServiceAnnotation
extends Object
implements Serializable

Represents an common representation of a web service annotation. Specifies that the given method is exposed as a Web Service operation, making it part of the Web Service���s public contract. A WebMethod annotation is required for each method that is published by the Web Service.

Author:
Arjen Poutsma
See Also:
Serialized Form

Constructor Summary
WebServiceAnnotation()
           
 
Method Summary
 String getEndpointInterface()
          Returns the complete name of the service endpoint interface defining the service���s abstract Web Service contract.
 String getName()
          Returns the name of the Web Service.
 String getPortName()
           
 String getServiceName()
          Returns the service name of the Web Service.
 String getTargetNamespace()
          Returns the XML namespace used for the WSDL and XML elements generated from this Web Service.
 String getWsdlLocation()
          The location of the WSDL for the service.
 void setEndpointInterface(String endpointInterface)
          Sets the complete name of the service endpoint interface defining the service���s abstract Web Service contract.
 void setName(String name)
          Sets the name of the Web Service.
 void setPortName(String portName)
           
 void setServiceName(String serviceName)
          Sets the service name of the Web Service.
 void setTargetNamespace(String targetNamespace)
          Sets the XML namespace used for the WSDL and XML elements generated from this Web Service.
 void setWsdlLocation(String wsdlLocation)
           
 String toString()
          Returns a String representation of this WebServiceAnnotation attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebServiceAnnotation

public WebServiceAnnotation()
Method Detail

getWsdlLocation

public String getWsdlLocation()
The location of the WSDL for the service.

Returns:

setWsdlLocation

public void setWsdlLocation(String wsdlLocation)

getPortName

public String getPortName()

setPortName

public void setPortName(String portName)

getName

public String getName()
Returns the name of the Web Service. Used as the name of the wsdl:portType when mapped to WSDL 1.1. Defaults to the simple name of the Java class or interface.

Returns:
the name of the Web Service.

setName

public void setName(String name)
Sets the name of the Web Service. Used as the name of the wsdl:portType when mapped to WSDL 1.1. Defaults to the simple name of the Java class or interface.

Parameters:
name - The new name of the Web Service.

getEndpointInterface

public String getEndpointInterface()
Returns the complete name of the service endpoint interface defining the service���s abstract Web Service contract.

Returns:
the name of the service endpoint interface.

setEndpointInterface

public void setEndpointInterface(String endpointInterface)
Sets the complete name of the service endpoint interface defining the service���s abstract Web Service contract.

Parameters:
endpointInterface - the new name of the service endpoint interface.

getServiceName

public String getServiceName()
Returns the service name of the Web Service. Used as the name of the wsdl:service when mapped to WSDL 1.1. Not allowed on interfaces. Defaults to the simple name of the Java class + ���Service".

Returns:
the service name of the Web Service.

setServiceName

public void setServiceName(String serviceName)
Sets the service name of the Web Service. Used as the name of the wsdl:service when mapped to WSDL 1.1. Not allowed on interfaces. Defaults to the simple name of the Java class + ���Service".

Parameters:
serviceName - the new service name of the Web Service.

getTargetNamespace

public String getTargetNamespace()
Returns the XML namespace used for the WSDL and XML elements generated from this Web Service.

Returns:
the XML namespace used.

setTargetNamespace

public void setTargetNamespace(String targetNamespace)
Sets the XML namespace used for the WSDL and XML elements generated from this Web Service.

Parameters:
targetNamespace - the new XML namespace used.

toString

public String toString()
Returns a String representation of this WebServiceAnnotation attribute.

Overrides:
toString in class Object
Returns:
a string representation.


Copyright © 2004-2013. All Rights Reserved.