org.ow2.jonas.ws.axis2.http
Class AxisServiceGenerator
java.lang.Object
org.ow2.jonas.ws.axis2.http.AxisServiceGenerator
public class AxisServiceGenerator
- extends Object
Get service description from class or wsdl If the service impl is ejb, use
Axis2MessageReceiver, if it is pojo, use its own JAXWSMessageReceiver
- Author:
- youchao, xiaoda
|
Method Summary |
static org.apache.axis2.jaxws.description.ServiceDescription |
createServiceDescription(Class<?> serviceImplClass,
org.apache.axis2.context.ConfigurationContext configurationContext,
PortMetaData pmd)
|
static org.apache.axis2.jaxws.description.EndpointDescription |
getEndpointDescription(org.apache.axis2.description.AxisService service)
|
org.apache.axis2.description.AxisService |
getServiceFromClass(Class endpointClass,
org.apache.axis2.context.ConfigurationContext configurationContext,
PortMetaData pmd)
Make AxisService from the service impl class |
org.apache.axis2.description.AxisService |
getServiceFromWSDL(String wsdlFile,
Class endpointClass,
URL configurationBaseUrl)
|
static URL |
getWsdlURL(String wsdlFile,
URL configurationBaseUrl,
ClassLoader classLoader)
Make AxisService from wsdl file |
static boolean |
isSOAP11(org.apache.axis2.description.AxisService service)
|
protected javax.wsdl.Definition |
readWSDL(String wsdlLocation,
URL configurationBaseUrl,
ClassLoader classLoader)
|
void |
setMessageReceiver(org.apache.axis2.engine.MessageReceiver messageReceiver)
Set method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AxisServiceGenerator
public AxisServiceGenerator()
setMessageReceiver
public void setMessageReceiver(org.apache.axis2.engine.MessageReceiver messageReceiver)
- Set method
- Parameters:
messageReceiver - Corresponding MessageReceiver for pojo or ejb
createServiceDescription
public static org.apache.axis2.jaxws.description.ServiceDescription createServiceDescription(Class<?> serviceImplClass,
org.apache.axis2.context.ConfigurationContext configurationContext,
PortMetaData pmd)
throws MalformedURLException
- Throws:
MalformedURLException- See Also:
DescriptionFactory.createServiceDescription(Class)
getServiceFromClass
public org.apache.axis2.description.AxisService getServiceFromClass(Class endpointClass,
org.apache.axis2.context.ConfigurationContext configurationContext,
PortMetaData pmd)
throws Exception
- Make AxisService from the service impl class
- Parameters:
endpointClass -
- Returns:
-
- Throws:
Exception
getWsdlURL
public static URL getWsdlURL(String wsdlFile,
URL configurationBaseUrl,
ClassLoader classLoader)
- Make AxisService from wsdl file
- Parameters:
portInfo - endpointClass - configurationBaseUrl -
- Returns:
-
- Throws:
Exception
getEndpointDescription
public static org.apache.axis2.jaxws.description.EndpointDescription getEndpointDescription(org.apache.axis2.description.AxisService service)
isSOAP11
public static boolean isSOAP11(org.apache.axis2.description.AxisService service)
getServiceFromWSDL
public org.apache.axis2.description.AxisService getServiceFromWSDL(String wsdlFile,
Class endpointClass,
URL configurationBaseUrl)
throws Exception
- Throws:
Exception
readWSDL
protected javax.wsdl.Definition readWSDL(String wsdlLocation,
URL configurationBaseUrl,
ClassLoader classLoader)
throws IOException,
javax.wsdl.WSDLException
- Throws:
IOException
javax.wsdl.WSDLException
Copyright © 2011 OW2 Consortium. All Rights Reserved.