Package javax.wsdl

Examples of javax.wsdl.Types


        }
    }

    private void modifySchemaImportsAndIncludes(Definition definition, String name){
        // adjust the schema locations in types section
        Types types = definition.getTypes();
        if (types != null) {
            for (Iterator iter = types.getExtensibilityElements().iterator(); iter.hasNext();) {
                Object ext = iter.next();
                if (ext instanceof UnknownExtensibilityElement &&
                    XSD_QNAME_LIST.contains(((UnknownExtensibilityElement)ext).getElementType())) {
                    changeLocations(((UnknownExtensibilityElement)ext).getElement(), name);
                }
View Full Code Here


       
       
        /* This doesn't actually work.   Setting setSchemaLocationURI on the import
        * for some reason doesn't actually result in the new URI being written
        * */
        Types types = def.getTypes();
        if (types != null) {
            for (ExtensibilityElement el
                : CastUtils.cast((List)types.getExtensibilityElements(), ExtensibilityElement.class)) {
                if (el instanceof Schema) {
                    Schema see = (Schema)el;
                    updateSchemaImports(see, doneSchemas, base);
                }
            }
View Full Code Here

    throws WSIException
  {
    result = AssertionResult.RESULT_NOT_APPLICABLE;

    //Definition def = (Definition) entryContext.getEntry().getEntryDetail();
    Types types = (Types) entryContext.getEntry().getEntryDetail();

    List exts = null;
    //if (def.getTypes()!=null)
    if (types != null)
    {
      exts = types.getExtensibilityElements();
    }
    if (exts != null)
    {
      Definition definition = null;
      if ((definition =
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    Types t = (Types) entryContext.getEntry().getEntryDetail();
    List exts = t.getExtensibilityElements();
    if (exts != null)
    {
      //context = entryContext.getWSDLDocument().getDefinitions().getDocumentBaseURI();
      Iterator it = exts.iterator();
      while (it.hasNext())
View Full Code Here

                      ? url.toString()
                      : locationURI;

                  importedDef.setDocumentBaseURI(urlString);

                  Types types = importedDef.createTypes();
                  types.addExtensibilityElement(
                      parseSchema(Types.class, documentElement, importedDef));
                  importedDef.setTypes(types);
                }
              }
            }
View Full Code Here

  {
    //register any NS decls with the Definition
    NamedNodeMap attrs = typesEl.getAttributes();
    registerNSDeclarations(attrs, def);

    Types types = def.createTypes();
    Element tempEl = DOMUtils.getFirstChildElement(typesEl);
    QName tempElType;

    while (tempEl != null)
    {
      tempElType = QNameUtils.newQName(tempEl);

      if (QNameUtils.matches(Constants.Q_ELEM_DOCUMENTATION, tempEl))
      {
        types.setDocumentationElement(tempEl);
      }
      else if ((SchemaConstants.XSD_QNAME_LIST).contains(tempElType))
      {
        //the element qname indicates it is a schema.
        types.addExtensibilityElement(
          parseSchema(Types.class, tempEl, def));
      }
      else
      {
        types.addExtensibilityElement(
          parseExtensibilityElement(Types.class, tempEl, def));
      }

      tempEl = DOMUtils.getNextSiblingElement(tempEl);
    }
View Full Code Here

  {
    result = AssertionResult.RESULT_PASSED;
    ErrorList errorList = new ErrorList();

    // Get the types from the entry context
    Types types = (Types) entryContext.getEntry().getEntryDetail();

    if (types != null)
    {
      ExtensibilityElement extElement;
      List extElements = types.getExtensibilityElements();

      // Process each ext. element
      for (int i = 0; i < extElements.size(); i++)
      {
        // If it is an unknown ext. element and it is a schema, then check it
View Full Code Here

    EntryContext entryContext)
    throws WSIException
  {
    // Getting wsdl:definition element
    Definition def = (Definition) entryContext.getEntry().getEntryDetail();
    Types types;
    // Getting the namespace declaration xmlns:xml
    String xmlNs = (String) def.getNamespaces().get("xml");
    // If it exists and equals to "http://www.w3.org/XML/1998/namespace"
    if (xmlNs != null && xmlNs.equals(WSIConstants.NS_URI_XML))
    {
      // setting assertion result to warning
      result = AssertionResult.RESULT_WARNING;
    }
    // there is no namespace declaration xmlns:xml in the wsdl:definition
    // element, checking whether the definition has wsdl:type element
    else if ((types = def.getTypes()) != null)
    {
      // Getting the list of wsdl:schemaS
      List extElems = types.getExtensibilityElements();
      for (int i = 0; i < extElems.size(); i++)
      {
        // Getting wsdl:schema element
        Schema schema =
          (Schema) extElems.get(i);
View Full Code Here

    else
    {
      for (int i = 0; i < wsdlTypes.length; i++)
      {
        Types types = wsdlTypes[i];
        if (types == null)
        {
          // no Types element in i-th document
          continue;
        }
View Full Code Here

    throws WSIException
  {
    List list = null, nextList = null;

    // Get list of extension elements within the types element
    Types types = null;
    if ((types = definition.getTypes()) != null)
    {
      Iterator iterator = types.getExtensibilityElements().iterator();

      ExtensibilityElement extElement = null;
      while (iterator.hasNext())
      {
        // Get next ext. element
View Full Code Here

TOP

Related Classes of javax.wsdl.Types

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.