Example #1
0
 public static tDefinitions toEasyWsdl(org.xmlsoap.schemas.tDefinitions items)
 {
     tDefinitions x = new tDefinitions();
     x.Any = ConvertTo.toEasyAny(items.Any);
     x.binding = ConvertTo.toEasyBinding(items.binding);
     x.documentation = ConvertTo.toEasyDocumentation(items.documentation);
     x.import = ConvertTo.toEasyImport(items.import);
     x.message = ConvertTo.toEasyMessage(items.message);
     x.name = items.name;
     x.portType = ConvertTo.toEasyPorts(items.portType);
     x.service = ConvertTo.toEasyServices(items.service);
     x.targetNamespace = items.targetNamespace;
     x.types = ConvertTo.toEasyTypes(items.types);
     return x;
 }
Example #2
0
        public static tDefinitions toEasyWsdl(org.xmlsoap.schemas.tDefinitions items)
        {
            tDefinitions x = new tDefinitions();

            x.Any             = ConvertTo.toEasyAny(items.Any);
            x.binding         = ConvertTo.toEasyBinding(items.binding);
            x.documentation   = ConvertTo.toEasyDocumentation(items.documentation);
            x.import          = ConvertTo.toEasyImport(items.import);
            x.message         = ConvertTo.toEasyMessage(items.message);
            x.name            = items.name;
            x.portType        = ConvertTo.toEasyPorts(items.portType);
            x.service         = ConvertTo.toEasyServices(items.service);
            x.targetNamespace = items.targetNamespace;
            x.types           = ConvertTo.toEasyTypes(items.types);
            return(x);
        }
Example #3
0
        /**
         * Registers a WSDL Definition onto the UDDI node referenced by the
         * clerk. Note, if registration fails, no exception is thrown
         *
         * @param wsdlDefinition - the WSDL Definition
         * @param keyDomain - the keyDomain which will be used to construct the
         * UDDI key IDs. If left null the keyDomain defined in the node's
         * properties will be used.
         * @param businessKey - the key of the business to which this service
         * belongs. If left null the businessKey defined in the node's
         * properties will be used.
         *
         */
        public void registerWsdls(tDefinitions wsdlDefinition, String keyDomain, String businessKey)
        {
            try
            {
                Properties properties = new Properties();
                properties.putAll(this.getUDDINode().getProperties());

                if (keyDomain != null)
                {
                    properties.setProperty("keyDomain", keyDomain);
                }
                if (businessKey != null)
                {
                    properties.setProperty("businessKey", businessKey);
                }
                WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(this, new URLLocalizer(), properties);
                wsdl2UDDI.registerBusinessServices(wsdlDefinition);
            }
            catch (Exception e)
            {
                log.error("Unable to register wsdl " + " ." + e.Message, e);
            }
        }