Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisService.addParameter()


            File resourcesDir = createDefaultFolders(jsFileNameShort, jsFile);

            Parameter serviceJSParameter =
                    new Parameter(MashupConstants.SERVICE_JS, jsFile.getAbsolutePath());
            axisService.addParameter(serviceJSParameter);

            // service-mgt UI uses this information to differentiate services when listing them.
            Parameter serviceTypeParameter =
                    new Parameter(JSConstants.AXIS2_SERVICE_TYPE, MashupConstants.JS_SERVICE);
            axisService.addParameter(serviceTypeParameter);
View Full Code Here


            axisService.addParameter(serviceJSParameter);

            // service-mgt UI uses this information to differentiate services when listing them.
            Parameter serviceTypeParameter =
                    new Parameter(JSConstants.AXIS2_SERVICE_TYPE, MashupConstants.JS_SERVICE);
            axisService.addParameter(serviceTypeParameter);

            // Add a reference to the resources folder, as this is quite useful in the runtime
            Parameter resourceFolderParameter =
                    new Parameter(MashupConstants.RESOURCES_FOLDER, resourcesDir);
            axisService.addParameter(resourceFolderParameter);
View Full Code Here

            axisService.addParameter(serviceTypeParameter);

            // Add a reference to the resources folder, as this is quite useful in the runtime
            Parameter resourceFolderParameter =
                    new Parameter(MashupConstants.RESOURCES_FOLDER, resourcesDir);
            axisService.addParameter(resourceFolderParameter);

            /*
            Add a reference to the mashup created user, as this is quite useful of getting user-specific
            registry for Registry hostobject
            */
 
View Full Code Here

            Add a reference to the mashup created user, as this is quite useful of getting user-specific
            registry for Registry hostobject
            */
            Parameter mashupAuthorParameter =
                    new Parameter(MashupConstants.MASHUP_AUTHOR, username);
            axisService.addParameter(mashupAuthorParameter);

            /*
             Service level java script annotations processing. We create a
             JavaScriptEngine and load the scripts and the associated host
             objects.
View Full Code Here

                                OMElement parameterElement = factory.createOMElement("parameter", null);
                                parameterElement.addAttribute("name", propertyName, null);
                                parameterElement.setText((String) propertyValueObject);
                                Parameter param = new Parameter(propertyName, propertyValueObject);
                                param.setParameterElement(parameterElement);
                                axisService.addParameter(param);
                            } catch (AxisFault axisFault) {
                                throw new DeploymentException(
                                        "Error adding service parameter : " + propertyName,
                                        axisFault);
                            }
View Full Code Here

                                OMElement parameterElement = factory.createOMElement("parameter", null);
                                parameterElement.addAttribute("name", propertyName, null);
                                parameterElement.addChild(axiom);
                                Parameter param = new Parameter(propertyName, axiom);
                                param.setParameterElement(parameterElement);
                                axisService.addParameter(param);
                            } catch (AxisFault axisFault) {
                                throw new DeploymentException(
                                        "Error adding service parameter : " + propertyName,
                                        axisFault);
                            }
View Full Code Here

                                for (OMNode node : omNodes) {
                                    parameterElement.addChild(node);
                                }
                                Parameter param = new Parameter(propertyName, omNodes);
                                param.setParameterElement(parameterElement);
                                axisService.addParameter(param);
                            } catch (AxisFault axisFault) {
                                throw new DeploymentException(
                                        "Error adding service parameter : " + propertyName,
                                        axisFault);
                            }
View Full Code Here

            /*
            The interfaceName is used by org.apache.axis2.description.AxisService2WSDL20 to
            set the interface during ?wsdl2
            */
            String interfaceName = serviceName + WSDL2Constants.INTERFACE_PREFIX;
            axisService.addParameter(WSDL2Constants.INTERFACE_LOCAL_NAME, interfaceName);

            /*
            Set a comparator so tha httpLocations are stored in descending order. We want the
            HTTPLocationBasedDiapatcher to make the best match hence we need them in descending
            order
View Full Code Here

                JavaScriptEngineUtils.loadHostObjects(engine, serviceName);
                init.call(engine.getCx(), engine, engine, new Object[0]);
            }

            if (destroy != null) {
                axisService.addParameter(JSConstants.MASHUP_DESTROY_FUNCTION, destroy);
            }

            ArrayList<AxisService> serviceList = new ArrayList<AxisService>();
            serviceList.add(axisService);
            return serviceList;
View Full Code Here

      dataServiceFilePath = ((DataService) axisService.getParameter(
          DBConstants.DATA_SERVICE_OBJECT).getValue()).getDsLocation();
      axisServiceGroup = axisService.getAxisServiceGroup();
      axisServiceGroup.addParameter(CarbonConstants.KEEP_SERVICE_HISTORY_PARAM, "true");
      axisServiceGroup.addParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true");
      axisService.addParameter(CarbonConstants.KEEP_SERVICE_HISTORY_PARAM, "true");
      axisService.addParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true");
      hotUpdateOrFaulty = true;
    }

    serviceContents = DBUtils.prettifyXML(serviceContents);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.