Package org.jboss.jbosswsTools

Examples of org.jboss.jbosswsTools.JavaToWsdlType


  private ConfigurationDocument createConfigFile( StringToStringMap values )
  {
    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();
    namespaces.setTargetNamespace( values.get( TARGET_NAMESPACE ) );
    namespaces.setTypeNamespace( values.get( TYPES_NAMESPACE ) );

    WsxmlType webservices = java2Wsdl.addNewWebservices();
    if( values.get( EJB_LINK ) != null && values.get( EJB_LINK ).length() > 0 )
      webservices.setEjbLink( values.get( EJB_LINK ) );
    if( values.get( SERVLET_LINK ) != null && values.get( SERVLET_LINK ).length() > 0 )
      webservices.setServletLink( values.get( SERVLET_LINK ) );
    return configDocument;
View Full Code Here


  private ConfigurationDocument createConfigFile( StringToStringMap values )
  {
    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();
    namespaces.setTargetNamespace( values.get( TARGET_NAMESPACE ) );
    namespaces.setTypeNamespace( values.get( TYPES_NAMESPACE ) );

    WsxmlType webservices = java2Wsdl.addNewWebservices();
    if( values.get( EJB_LINK ) != null && values.get( EJB_LINK ).length() > 0 )
      webservices.setEjbLink( values.get( EJB_LINK ) );
    if( values.get( SERVLET_LINK ) != null && values.get( SERVLET_LINK ).length() > 0 )
      webservices.setServletLink( values.get( SERVLET_LINK ) );
    return configDocument;
View Full Code Here

    private ConfigurationDocument createConfigFile(StringToStringMap values) {
        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();
        namespaces.setTargetNamespace(values.get(TARGET_NAMESPACE));
        namespaces.setTypeNamespace(values.get(TYPES_NAMESPACE));

        WsxmlType webservices = java2Wsdl.addNewWebservices();
        if (values.get(EJB_LINK) != null && values.get(EJB_LINK).length() > 0) {
            webservices.setEjbLink(values.get(EJB_LINK));
        }
        if (values.get(SERVLET_LINK) != null && values.get(SERVLET_LINK).length() > 0) {
            webservices.setServletLink(values.get(SERVLET_LINK));
View Full Code Here

    private ConfigurationDocument createConfigFile(StringToStringMap values) {
        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();
        namespaces.setTargetNamespace(values.get(TARGET_NAMESPACE));
        namespaces.setTypeNamespace(values.get(TYPES_NAMESPACE));

        WsxmlType webservices = java2Wsdl.addNewWebservices();
        if (values.get(EJB_LINK) != null && values.get(EJB_LINK).length() > 0) {
            webservices.setEjbLink(values.get(EJB_LINK));
        }
        if (values.get(SERVLET_LINK) != null && values.get(SERVLET_LINK).length() > 0) {
            webservices.setServletLink(values.get(SERVLET_LINK));
View Full Code Here

TOP

Related Classes of org.jboss.jbosswsTools.JavaToWsdlType

Copyright © 2018 www.massapicom. 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.