congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WSDDService
Code IndexAdd Tabnine to your IDE (free)

How to use
WSDDService
in
org.apache.axis.deployment.wsdd

Best Java code snippets using org.apache.axis.deployment.wsdd.WSDDService (Showing top 20 results out of 315)

origin: stackoverflow.com

 import org.apache.axis.EngineConfiguration;
import org.apache.axis.Handler;
import org.apache.axis.deployment.wsdd.WSDDProvider;
import org.apache.axis.deployment.wsdd.WSDDService;

public class WSDDSpringProvider extends WSDDProvider {

  public static final String PROVIDER_NAME = "SPRING";
  public static final String PARAM_SPRING_BEAN_ID = "springBeanId";

  public String getName(){
    return "SPRING";
  }

  public Handler newProviderInstance(WSDDService service, EngineConfiguration registry)
    throws Exception {
    return new SpringProvider(service.getParameter("springBeanId"));
  }

}
origin: org.apache.axis/com.springsource.org.apache.axis

protected void addService(WSDDService service) {
  WSDDService oldService = (WSDDService) services.get(service.getQName());
  if (oldService != null) {
    oldService.removeNamespaceMappings(this);
  }
  services.put(service.getQName(), service);
}
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Initialize a TypeMappingRegistry with the
 * WSDDTypeMappings.
 * Note: Extensions of WSDDService may override
 * initTMR to popluate the tmr with different
 * type mappings.
 */
protected void initTMR() throws WSDDException
{
  // If not created, construct a tmr
  // and populate it with the type mappings.
  if (tmr == null) {
    createTMR();
    for (int i=0; i<typeMappings.size(); i++) {
      deployTypeMapping((WSDDTypeMapping)
               typeMappings.get(i));
    }
  }
}
origin: axis/axis

initTMR();
WSDDChain request = getRequestFlow();
WSDDChain response = getResponseFlow();
service.setSendType(sendType);
if ( getQName() != null )
  service.setName(getQName().getLocalPart());
service.setOptions(getParametersTable());
WSDDFaultFlow [] faultFlows = getFaultFlows();
if (faultFlows != null && faultFlows.length > 0) {
  FaultableHandler wrapper = new FaultableHandler(service);
origin: axis/axis

desc.setName(getQName().getLocalPart());
Element [] operationElements = getChildElements(e, ELEM_WSDD_OPERATION);
for (int i = 0; i < operationElements.length; i++) {
  WSDDOperation operation = new WSDDOperation(operationElements[i],
                        desc);
  addOperation(operation);
Element [] typeMappingElements = getChildElements(e, ELEM_WSDD_TYPEMAPPING);
for (int i = 0; i < typeMappingElements.length; i++) {
  WSDDTypeMapping mapping =
Element [] beanMappingElements = getChildElements(e, ELEM_WSDD_BEANMAPPING);
for (int i = 0; i < beanMappingElements.length; i++) {
  WSDDBeanMapping mapping =
Element [] arrayMappingElements = getChildElements(e, ELEM_WSDD_ARRAYMAPPING);
for (int i = 0; i < arrayMappingElements.length; i++) {
  WSDDArrayMapping mapping =
Element [] namespaceElements = getChildElements(e, ELEM_WSDD_NAMESPACE);
for (int i = 0; i < namespaceElements.length; i++) {
Element [] roleElements = getChildElements(e, ELEM_WSDD_ROLE);
for (int i = 0; i < roleElements.length; i++) {
  String role = XMLUtils.getChildCharacterData(roleElements[i]);
Element wsdlElem = getChildElement(e, ELEM_WSDD_WSDLFILE);
if (wsdlElem != null) {
origin: axis/axis

/**
 * This method can be used for dynamic deployment using new WSDDService()
 * etc.  It validates some standard parameters for some standard providers
 * (if present).  Do this before deployment.deployService().
 */
public void validateDescriptors() throws WSDDException
{
  if (tmr == null) {
    initTMR();
  }
  desc.setTypeMappingRegistry(tmr);
  desc.setTypeMapping(getTypeMapping(desc.getUse().getEncoding()));
  String allowedMethods = getParameter(JavaProvider.OPTION_ALLOWEDMETHODS);
  if (allowedMethods != null && !"*".equals(allowedMethods)) {
    ArrayList methodList = new ArrayList();
    StringTokenizer tokenizer = new StringTokenizer(allowedMethods, " ,");
    while (tokenizer.hasMoreTokens()) {
      methodList.add(tokenizer.nextToken());
    }
    desc.setAllowedMethods(methodList);
  }
}
origin: org.apache.axis/axis

  throws IOException {
AttributesImpl attrs = new AttributesImpl();
QName name = getQName();
if (name != null) {
  attrs.addAttribute("", ATTR_NAME, ATTR_NAME,
  operation.writeToContext(context);
writeFlowsToContext(context);
writeParamsToContext(context);
origin: axis/axis

public void removeNamespaceMappings(WSDDDeployment registry)
{
  for (int i = 0; i < namespaces.size(); i++) {
    String namespace = (String) namespaces.elementAt(i);
    registry.removeNamespaceMapping(namespace);
  }
  registry.removeNamespaceMapping(getQName().getLocalPart());
}
origin: axis/axis

/**
 * Put a WSDDService into this deployment, replacing any other
 * WSDDService which might already be present with the same QName.
 *
 * @param service a WSDDHandler to insert in this deployment
 */
public void deployService(WSDDService service) {
  service.deployToRegistry(this);
}
origin: axis/axis

/**
 *
 * @param name XXX
 * @return XXX
 */
public WSDDFaultFlow getFaultFlow(QName name)
{
  WSDDFaultFlow[] t = getFaultFlows();
  for (int n = 0; n < t.length; n++) {
    if (t[n].getQName().equals(name)) {
      return t[n];
    }
  }
  return null;
}
origin: org.apache.axis/axis

createTMR();
origin: org.apache.axis/axis

for (i = 0; i < elements.length; i++) {
  try {
    WSDDService service = new WSDDService(elements[i]);
    deployService(service);
  } catch (WSDDNonFatalException ex) {
origin: org.apache.axis/com.springsource.org.apache.axis

initTMR();
WSDDChain request = getRequestFlow();
WSDDChain response = getResponseFlow();
service.setSendType(sendType);
if ( getQName() != null )
  service.setName(getQName().getLocalPart());
service.setOptions(getParametersTable());
WSDDFaultFlow [] faultFlows = getFaultFlows();
if (faultFlows != null && faultFlows.length > 0) {
  FaultableHandler wrapper = new FaultableHandler(service);
origin: org.apache.axis/com.springsource.org.apache.axis

desc.setName(getQName().getLocalPart());
Element [] operationElements = getChildElements(e, ELEM_WSDD_OPERATION);
for (int i = 0; i < operationElements.length; i++) {
  WSDDOperation operation = new WSDDOperation(operationElements[i],
                        desc);
  addOperation(operation);
Element [] typeMappingElements = getChildElements(e, ELEM_WSDD_TYPEMAPPING);
for (int i = 0; i < typeMappingElements.length; i++) {
  WSDDTypeMapping mapping =
Element [] beanMappingElements = getChildElements(e, ELEM_WSDD_BEANMAPPING);
for (int i = 0; i < beanMappingElements.length; i++) {
  WSDDBeanMapping mapping =
Element [] arrayMappingElements = getChildElements(e, ELEM_WSDD_ARRAYMAPPING);
for (int i = 0; i < arrayMappingElements.length; i++) {
  WSDDArrayMapping mapping =
Element [] namespaceElements = getChildElements(e, ELEM_WSDD_NAMESPACE);
for (int i = 0; i < namespaceElements.length; i++) {
Element [] roleElements = getChildElements(e, ELEM_WSDD_ROLE);
for (int i = 0; i < roleElements.length; i++) {
  String role = XMLUtils.getChildCharacterData(roleElements[i]);
Element wsdlElem = getChildElement(e, ELEM_WSDD_WSDLFILE);
if (wsdlElem != null) {
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * This method can be used for dynamic deployment using new WSDDService()
 * etc.  It validates some standard parameters for some standard providers
 * (if present).  Do this before deployment.deployService().
 */
public void validateDescriptors() throws WSDDException
{
  if (tmr == null) {
    initTMR();
  }
  desc.setTypeMappingRegistry(tmr);
  desc.setTypeMapping(getTypeMapping(desc.getUse().getEncoding()));
  String allowedMethods = getParameter(JavaProvider.OPTION_ALLOWEDMETHODS);
  if (allowedMethods != null && !"*".equals(allowedMethods)) {
    ArrayList methodList = new ArrayList();
    StringTokenizer tokenizer = new StringTokenizer(allowedMethods, " ,");
    while (tokenizer.hasMoreTokens()) {
      methodList.add(tokenizer.nextToken());
    }
    desc.setAllowedMethods(methodList);
  }
}
origin: org.apache.axis/com.springsource.org.apache.axis

  throws IOException {
AttributesImpl attrs = new AttributesImpl();
QName name = getQName();
if (name != null) {
  attrs.addAttribute("", ATTR_NAME, ATTR_NAME,
  operation.writeToContext(context);
writeFlowsToContext(context);
writeParamsToContext(context);
origin: org.apache.axis/axis

public void removeNamespaceMappings(WSDDDeployment registry)
{
  for (int i = 0; i < namespaces.size(); i++) {
    String namespace = (String) namespaces.elementAt(i);
    registry.removeNamespaceMapping(namespace);
  }
  registry.removeNamespaceMapping(getQName().getLocalPart());
}
origin: org.apache.axis/axis

/**
 * Put a WSDDService into this deployment, replacing any other
 * WSDDService which might already be present with the same QName.
 *
 * @param service a WSDDHandler to insert in this deployment
 */
public void deployService(WSDDService service) {
  service.deployToRegistry(this);
}
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 *
 * @param name XXX
 * @return XXX
 */
public WSDDFaultFlow getFaultFlow(QName name)
{
  WSDDFaultFlow[] t = getFaultFlows();
  for (int n = 0; n < t.length; n++) {
    if (t[n].getQName().equals(name)) {
      return t[n];
    }
  }
  return null;
}
origin: org.apache.axis/com.springsource.org.apache.axis

createTMR();
org.apache.axis.deployment.wsddWSDDService

Javadoc

A service represented in WSDD.

Most used methods

  • getParameter
  • getQName
  • <init>
  • addOperation
    Add a WSDDOperation to the Service.
  • createTMR
  • deployToRegistry
  • deployTypeMapping
  • getChildElement
  • getChildElements
  • getFaultFlows
  • getInstance
  • getParametersTable
  • getInstance,
  • getParametersTable,
  • getRequestFlow,
  • getResponseFlow,
  • getServiceDesc,
  • getTypeMapping,
  • initTMR,
  • makeNewInstance,
  • removeNamespaceMappings,
  • validateDescriptors

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now