Package org.apache.woden.wsdl20.extensions

Examples of org.apache.woden.wsdl20.extensions.ExtensionRegistry


                }
                return null;   // can't go any further without the wsdl
            }
            Service[] services = description.getServices();
            for (int i = 0; i < services.length; i++) {
                Service service = services[i];
                // set the serviceName on the parent to setup call to populateService
                serviceName = service.getName();
                this.axisService = new AxisService();
                    AxisService retAxisService = populateService();
                    if (retAxisService != null) {
                        axisServices.add(retAxisService);
                    } // end if axisService was returned
View Full Code Here


                        new Object[] {elementType, parentType.getName()},
                        ErrorReporter.SEVERITY_ERROR);
                return null;
            }

            ExtensionRegistry extReg = fWsdlContext.extensionRegistry;

            ExtensionDeserializer extDS = extReg.queryDeserializer(parentType, elementType);

            return extDS.unmarshall(parentType, parent, elementType, el, desc, extReg);
        }
        catch (WSDLException e)
        {
View Full Code Here

       
        /*
         * Create a ComponentExtensions object for each registered extension
         * namespace used within this operation by extension elements or attributes.
         */
    ExtensionRegistry er = fDesc.getWsdlContext().extensionRegistry;
    URI[] extNamespaces = er
        .queryComponentExtensionNamespaces(InterfaceOperation.class);

    for (int i = 0; i < extNamespaces.length; i++) {
      URI extNS = extNamespaces[i];
      if (oper.hasExtensionAttributesForNamespace(extNS)) {
View Full Code Here

   * This helper method factors out common code for creating
   * ComponentExtensionContexts registered in the ExtensionRegistry.
   */
  private ComponentExtensionContext createComponentExtensions(Class parentClass,
      WSDLComponent parentComp, URI extNS) {
    ExtensionRegistry er = fDesc.getWsdlContext().extensionRegistry;
    ComponentExtensionContext compExt = null;
    try {
      compExt = er.createComponentExtension(parentClass, parentComp, extNS);
      //TODO remove with woden-47 ((ComponentExtensionsImpl) compExt).init(parentElem, extNS);
    } catch (WSDLException e) {
      // This exception occurs if there is no Java class registered for
      // the namespace, but
      // this namespace was obtained from the extension registry so we
View Full Code Here

    protected WSDLContext fWsdlContext;
   
    protected BaseWSDLFactory() throws WSDLException {
        ErrorReporter errRpt = new ErrorReporterImpl();
        ExtensionRegistry extReg = new PopulatedExtensionRegistry(errRpt);
        ((ErrorReporterImpl)errRpt).setExtensionRegistry(extReg);
        fWsdlContext = new WSDLContext(this, errRpt, extReg, null);
    }
View Full Code Here

                    !namespaceURI.equals(Constants.NS_STRING_XSI))  //TODO handle xsi attrs elsewhere, without need to register
                {
                    //TODO reg namespaces at appropriate element scope, not just at desc.
                    //DOMUtils.registerUniquePrefix(prefix, namespaceURI, desc);
                   
                    ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                    XMLAttr xmlAttr = extReg.createExtAttribute(wsdlClass, attrType, extEl, attrValue);
                    if(xmlAttr != null) //TODO use an 'UnknownAttr' class in place of null
                    {
                        wsdlObj.setExtensionAttribute(attrType, xmlAttr);
                    }
                }
View Full Code Here

                    !namespaceURI.equals(Constants.NS_STRING_XSI))  //TODO handle xsi attrs elsewhere, without need to register
                {
                    //TODO reg namespaces at appropriate element scope, not just at desc.
                    //DOMUtils.registerUniquePrefix(prefix, namespaceURI, desc);
                   
                    ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                    XMLAttr xmlAttr = extReg.createExtAttribute(wsdlClass, attrType, extEl, attrValue);
                    if(xmlAttr != null) //TODO use an 'UnknownAttr' class in place of null
                    {
                        wsdlObj.setExtensionAttribute(attrType, xmlAttr);
                    }
                }
View Full Code Here

                        new Object[] {elementType, parentType.getName()},
                        ErrorReporter.SEVERITY_ERROR);
                return null;
            }

            ExtensionRegistry extReg = fWsdlContext.extensionRegistry;

            ExtensionDeserializer extDS = extReg.queryDeserializer(parentType, elementType);

            return extDS.unmarshall(parentType, parent, elementType, el, desc, extReg);
        }
        catch (WSDLException e)
        {
View Full Code Here

                                              throws WSDLException{
        if (extensibilityElements != null){
            for(int ind=0;ind<extensibilityElements.length;ind++){
                ExtensionElement ext =extensibilityElements[ind];
                QName elementType = ext.getExtensionType();
                ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                if (extReg == null){
                    throw new WSDLException(WSDLException.CONFIGURATION_ERROR,
                            "No ExtensionRegistry set for this " +
                            "Description, so unable to serialize a '" +
                            elementType +
                            "' element in the context of a '" +
                            parentType.getName() + "'.");
                }
                ExtensionSerializer extSer = extReg.querySerializer(parentType,
                        elementType);
                extSer.marshall(parentType, elementType, ext, pw, def, extReg);
            }

        }
View Full Code Here

                                              throws WSDLException{
        if (extensibilityElements != null){
             for(int ind=0;ind<extensibilityElements.length;ind++){
                 ExtensionElement ext =extensibilityElements[ind];
                 QName elementType = ext.getExtensionType();
                 ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                 if (extReg == null){
                     throw new WSDLException(WSDLException.CONFIGURATION_ERROR,
                             "No ExtensionRegistry set for this " +
                             "Description, so unable to serialize a '" +
                             elementType +
                             "' element in the context of a '" +
                             parentType.getName() + "'.");
                 }
                 ExtensionSerializer extSer = extReg.querySerializer(parentType,
                         elementType);
                 extSer.marshall(parentType, elementType, ext, pw, def, extReg);
             }

         }
View Full Code Here

TOP

Related Classes of org.apache.woden.wsdl20.extensions.ExtensionRegistry

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.