Examples of ServiceType


Examples of org.jboss.jbosswsTools.ServiceType

  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
    ServiceType service = java2Wsdl.addNewService();
    service.setEndpoint( values.get( ENDPOINT ) );
    service.setStyle( Style.Enum.forString( values.get( STYLE ) ) );
    service.setParameterStyle( ParameterStyle.Enum.forString( values.get( PARAMETER_STYLE ) ) );
    service.setName( values.get( SERVICE_NAME ) );

    MappingType mapping = java2Wsdl.addNewMapping();
    mapping.setFile( values.get( MAPPING ) );

    NamespacesType namespaces = java2Wsdl.addNewNamespaces();
View Full Code Here

Examples of org.jboss.jbosswsTools.ServiceType

  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
    ServiceType service = java2Wsdl.addNewService();
    service.setEndpoint( values.get( ENDPOINT ) );
    service.setStyle( Style.Enum.forString( values.get( STYLE ) ) );
    service.setParameterStyle( ParameterStyle.Enum.forString( values.get( PARAMETER_STYLE ) ) );
    service.setName( values.get( SERVICE_NAME ) );

    MappingType mapping = java2Wsdl.addNewMapping();
    mapping.setFile( values.get( MAPPING ) );

    NamespacesType namespaces = java2Wsdl.addNewNamespaces();
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceType

   */
  private static String serviceXMLRequest(RegistryService regService, ServiceBean serviceInfo,
      ServiceMapDocument template) throws GfacException {
    ServiceMapDocument smd;
    ServiceMapType smt;
    ServiceType st;

    if (template != null) {
      smd = template;
      smt = smd.getServiceMap();
      st = smt.getService();
    } else {
      smd = ServiceMapDocument.Factory.newInstance();
      smt = smd.addNewServiceMap();
      st = smt.addNewService();
    }

    QName serviceName;
    if (serviceInfo.getServiceName().startsWith("{")) {
      serviceName = QName.valueOf(serviceInfo.getServiceName().trim());
    } else {
      serviceName = new QName(serviceInfo.getObjectNamespace(), serviceInfo.getServiceName().trim());
    }

    ServiceName sn = st.getServiceName();
    if (sn == null) {
      sn = st.addNewServiceName();
      ;
    }
    sn.setStringValue(serviceName.getLocalPart());
    sn.setTargetNamespace(serviceInfo.getObjectNamespace());

View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceType

  }

  public static String simpleServiceXMLRequest(ServiceBean serviceInfo) throws GfacException {
    ServiceMapDocument smd;
    ServiceMapType smt;
    ServiceType st;

    smd = ServiceMapDocument.Factory.newInstance();
    smt = smd.addNewServiceMap();
    st = smt.addNewService();

    QName serviceName;
    if (serviceInfo.getServiceName().startsWith("{")) {
      serviceName = QName.valueOf(serviceInfo.getServiceName().trim());
    } else {
      serviceName = new QName(serviceInfo.getObjectNamespace(), serviceInfo.getServiceName().trim());
    }

    ServiceName sn = st.getServiceName();
    if (sn == null) {
      sn = st.addNewServiceName();
      ;
    }
    sn.setStringValue(serviceName.getLocalPart());
    sn.setTargetNamespace(serviceInfo.getObjectNamespace());
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceType

      throws GFacSchemaException {

    ServiceMapDocument serviceMapDocument = ServiceMapDocument.Factory
        .newInstance();
    ServiceMapType serviceMapType = serviceMapDocument.addNewServiceMap();
    ServiceType serviceType = serviceMapType.addNewService();
    serviceType.setServiceDescription(serviceInfo.getServiceDescription());

    QName serviceQName;
    if (serviceInfo.getServiceName().startsWith("{")) {
      serviceQName = QName.valueOf(serviceInfo.getServiceName().trim());
    } else {
      serviceQName = new QName(serviceInfo.getObjectNamespace(),
          serviceInfo.getServiceName().trim());
    }

    ServiceName serviceName = serviceType.getServiceName();
    if (serviceName == null) {
      serviceName = serviceType.addNewServiceName();
      ;
    }
    serviceName.setStringValue(serviceQName.getLocalPart());
    serviceName.setTargetNamespace(serviceInfo.getObjectNamespace());
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceType

    ServiceBean serviceBean = new ServiceBean();
    ServiceMapDocument serviceMapDocument = ServiceMapDocument.Factory
        .parse(new StringReader(serviceMapStr));
    ServiceMapType serviceMapType = serviceMapDocument.getServiceMap();
    ServiceType serviceType = serviceMapType.getService();
    serviceBean.setServiceDescription(serviceType.getServiceDescription());

    if (serviceMapType.getLifeTime() != null) {
      notAfterInactiveMinutes = serviceMapType.getLifeTime()
          .getNotAfterInactiveMinutes();
    }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceType

public class ServiceMapValidator
{
    // FIXME: Although this is a basic validator, a more comprehensive validation is required
    public void validateServiceMap(ServiceMapType serviceMap) throws GFacSchemaException
    {
        ServiceType service = serviceMap.getService();
        if(service == null)
        {
            throw new GFacSchemaException("Service cannot be null");
        }

        if(service.getServiceName() == null)
        {
            throw new GFacSchemaException("Service name cannot be null");
        }

        if(service.getServiceName().getTargetNamespace() == null)
        {
            throw new GFacSchemaException("Target namespace for service cannot be null");
        }

        PortTypeType[] portTypes = serviceMap.getPortTypeArray();
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

    if (Strings.isNullOrEmpty(itemId)) {
      throw new IllegalArgumentException("Cannot resolve path (item id not resolved): " + path);
    }

    FederationKey host = null;
    return new PlatformLayerKey(host, project, new ServiceType(serviceType), new ItemType(itemType),
        new ManagedItemId(itemId));
  }
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

      serviceType = getServiceTypeFromItemType(client, itemType);
    }

    FederationKey host = null;
    ProjectId project = client.getProject();
    return new PlatformLayerKey(host, project, new ServiceType(serviceType), new ItemType(itemType), null);
  }
View Full Code Here

Examples of org.platformlayer.ids.ServiceType

  public List<ServiceInfo> getAllServices() {
    return Collections.unmodifiableList(allServices);
  }

  public void addService(ServiceProvider serviceProvider) {
    ServiceType serviceType = serviceProvider.getServiceType();
    if (serviceProviders.containsKey(serviceType)) {
      throw new IllegalArgumentException("Duplicate service key: " + serviceType);
    }
    serviceProviders.put(serviceType, serviceProvider);
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.