Package javax.wsdl.extensions

Examples of javax.wsdl.extensions.ExtensionDeserializer


    try
    {

      QName elementType = QNameUtils.newQName(el);

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

      //Now unmarshall the DOM element.
      ExtensibilityElement ee =
          exDS.unmarshall(parentType, elementType, el, def, extReg);

      if (ee instanceof Schema)
      {
        schema = (Schema) ee;
      }
View Full Code Here


                "a '" + elementType + "' element in the " +
                "context of a '" + parentType.getName() +
                "'.");
      }

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

      return extDS.unmarshall(parentType, elementType, el, def, extReg);
    }
    catch (WSDLException e)
    {
      if (e.getLocation() == null)
      {
View Full Code Here

        this.contributionFactory = modelFactories.getFactory(ContributionFactory.class);
        this.xsdFactory = modelFactories.getFactory(XSDFactory.class);

        wsdlExtensionRegistry = this.wsdl4jFactory.newPopulatedExtensionRegistry();
        // REVIEW: [rfeng] Disable the schema extension for WSDL4J to avoid aggressive loading
        ExtensionDeserializer deserializer = new UnknownExtensionDeserializer();
        ExtensionSerializer serializer = new UnknownExtensionSerializer();
        for (QName schema : XSD_QNAME_LIST) {
            wsdlExtensionRegistry.registerSerializer(Types.class, schema, serializer);
            wsdlExtensionRegistry.registerDeserializer(Types.class, schema, deserializer);
        }
View Full Code Here

        this.contributionFactory = modelFactories.getFactory(ContributionFactory.class);
        this.xsdFactory = modelFactories.getFactory(XSDFactory.class);

        wsdlExtensionRegistry = this.wsdl4jFactory.newPopulatedExtensionRegistry();
        // REVIEW: [rfeng] Disable the schema extension for WSDL4J to avoid aggressive loading
        ExtensionDeserializer deserializer = new UnknownExtensionDeserializer();
        ExtensionSerializer serializer = new UnknownExtensionSerializer();
        for (QName schema : XSD_QNAME_LIST) {
            wsdlExtensionRegistry.registerSerializer(Types.class, schema, serializer);
            wsdlExtensionRegistry.registerDeserializer(Types.class, schema, deserializer);
        }
View Full Code Here

        @Override
        protected ExtensibilityElement parseSchema(Class parentType, Element el, Definition def, ExtensionRegistry extReg)
                throws WSDLException {
            QName elementType = QNameUtils.newQName(el);

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

            // Now unmarshall the DOM element.
            ExtensibilityElement ee = exDS.unmarshall(parentType, elementType, el, def, extReg);

            return ee;
        }
View Full Code Here

    try
    {

      QName elementType = QNameUtils.newQName(el);

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

      //Now unmarshall the DOM element.
      ExtensibilityElement ee =
          exDS.unmarshall(parentType, elementType, el, def, extReg);

      if (ee instanceof Schema)
      {
        schema = (Schema) ee;
      }
View Full Code Here

                "a '" + elementType + "' element in the " +
                "context of a '" + parentType.getName() +
                "'.");
      }

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

      return extDS.unmarshall(parentType, elementType, el, def, extReg);
    }
    catch (WSDLException e)
    {
      if (e.getLocation() == null)
      {
View Full Code Here

/*  688 */     SchemaReference schemaRef = null;
/*      */     try
/*      */     {
/*  692 */       QName elementType = QNameUtils.newQName(el);
/*      */
/*  694 */       ExtensionDeserializer exDS = extReg.queryDeserializer(parentType, elementType);
/*      */
/*  698 */       ExtensibilityElement ee = exDS.unmarshall(parentType, elementType, el, def, extReg);
/*      */
/*  701 */       if ((ee instanceof Schema))
/*      */       {
/*  703 */         schema = (Schema)ee;
/*      */       }
View Full Code Here

/* 1843 */       if (extReg == null)
/*      */       {
/* 1845 */         throw new WSDLException("CONFIGURATION_ERROR", "No ExtensionRegistry set for this Definition, so unable to deserialize a '" + elementType + "' element in the " + "context of a '" + parentType.getName() + "'.");
/*      */       }
/*      */
/* 1853 */       ExtensionDeserializer extDS = extReg.queryDeserializer(parentType, elementType);
/*      */
/* 1856 */       return extDS.unmarshall(parentType, elementType, el, def, extReg);
/*      */     }
/*      */     catch (WSDLException e)
/*      */     {
/* 1860 */       if (e.getLocation() == null)
/*      */       {
View Full Code Here

    try
    {

      QName elementType = QNameUtils.newQName(el);

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

      //Now unmarshall the DOM element.
      ExtensibilityElement ee =
          exDS.unmarshall(parentType, elementType, el, def, extReg);

      if (ee instanceof Schema)
      {
        schema = (Schema) ee;
      }
View Full Code Here

TOP

Related Classes of javax.wsdl.extensions.ExtensionDeserializer

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.