Package org.ogce.schemas.gfac.wsdl

Examples of org.ogce.schemas.gfac.wsdl.WSDLGenerator


           // FIXME: Already validated when you create service map.
            SchemaValidator validator = new SchemaValidator(serviceMap);
            validator.validate();
            QName serviceQname = new QName(serviceMap.getService().getServiceName()
                    .getTargetNamespace(), serviceMap.getService().getServiceName().getStringValue());
            WSDLGenerator wsdlGenerator = new WSDLGenerator();
            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null, serviceMap,
                    true);
            String wsdl = (String) serviceTable.get(WSDLConstants.AWSDL);
            return wsdl;
        } catch (Exception e) {
            throw new GfacException(e,FaultCode.InvaliedLocalArgumnet);
View Full Code Here


            SchemaValidator validator = new SchemaValidator(serviceMap);
            validator.validate();
            QName serviceQname = new QName(serviceMap.getService().getServiceName()
                    .getTargetNamespace(), serviceMap.getService().getServiceName()
                    .getStringValue());
            WSDLGenerator wsdlGenerator = new WSDLGenerator();
            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null,
                    serviceMap, true);
            String wsdl = (String) serviceTable.get(WSDLConstants.AWSDL);

            XmlElement ele = XmlConstants.BUILDER.parseReader(new StringReader(wsdl))
                    .getDocumentElement();
View Full Code Here

            ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapAsStr)
                    .getServiceMap();
          
            QName serviceQname = new QName(serviceMap.getService().getServiceName()
                    .getTargetNamespace(), serviceMap.getService().getServiceName().getStringValue());
            WSDLGenerator wsdlGenerator = new WSDLGenerator();
            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null, serviceMap,
                    true);
            String wsdl = (String) serviceTable.get(WSDLConstants.AWSDL);
            return wsdl;
        } catch (XmlException e) {
            throw new GFacSchemaException(e);
View Full Code Here

TOP

Related Classes of org.ogce.schemas.gfac.wsdl.WSDLGenerator

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.