Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 252258 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/wsi/internal/core/wsdl/WSDLReaderImpl.java (-7 / +19 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 47-52 Link Here
47
import org.xml.sax.InputSource;
47
import org.xml.sax.InputSource;
48
48
49
import com.ibm.wsdl.Constants;
49
import com.ibm.wsdl.Constants;
50
import com.ibm.wsdl.extensions.schema.SchemaConstants;
50
import com.ibm.wsdl.util.StringUtils;
51
import com.ibm.wsdl.util.StringUtils;
51
import com.ibm.wsdl.util.xml.DOMUtils;
52
import com.ibm.wsdl.util.xml.DOMUtils;
52
import com.ibm.wsdl.util.xml.QNameUtils;
53
import com.ibm.wsdl.util.xml.QNameUtils;
Lines 234-240 Link Here
234
            else
235
            else
235
            {
236
            {
236
              QName qname = QNameUtils.newQName(element2);
237
              QName qname = QNameUtils.newQName(element2);
237
              if (Constants.XSD_QNAME_LIST.contains(qname))
238
              if (SchemaConstants.XSD_QNAME_LIST.contains(qname))
238
              {
239
              {
239
                WSDLFactory wsdlfactory =
240
                WSDLFactory wsdlfactory =
240
                  factoryImplName == null
241
                  factoryImplName == null
Lines 445-451 Link Here
445
          partEl,
446
          partEl,
446
          Constants.ATTR_ELEMENT,
447
          Constants.ATTR_ELEMENT,
447
          Constants.ELEM_MESSAGE,
448
          Constants.ELEM_MESSAGE,
448
          false);
449
          false,
450
          def);
449
    }
451
    }
450
452
451
    catch (WSDLException we)
453
    catch (WSDLException we)
Lines 463-469 Link Here
463
        partEl,
465
        partEl,
464
        Constants.ATTR_TYPE,
466
        Constants.ATTR_TYPE,
465
        Constants.ELEM_MESSAGE,
467
        Constants.ELEM_MESSAGE,
466
        false);
468
        false,
469
        def);
467
470
468
    if (name != null)
471
    if (name != null)
469
    {
472
    {
Lines 496-504 Link Here
496
      tempEl = DOMUtils.getNextSiblingElement(tempEl);
499
      tempEl = DOMUtils.getNextSiblingElement(tempEl);
497
    }
500
    }
498
501
499
    Map extensionAttributes = part.getExtensionAttributes();
502
    parseExtensibilityAttributes(partEl, Part.class, part, def);
500
503
//    Map extensionAttributes = part.getExtensionAttributes();
501
    extensionAttributes.putAll(getPartAttributes(partEl, def));
504
//    extensionAttributes.putAll(getPartAttributes(partEl, def));
502
505
503
    // Need to do something here to locate part definition.
506
    // Need to do something here to locate part definition.
504
507
Lines 797-801 Link Here
797
800
798
    return bindingOperation;
801
    return bindingOperation;
799
  }
802
  }
803
  
804
 protected ExtensibilityElement parseSchema(Class ccc, Element elem, Definition def) throws WSDLException
805
{
806
   ExtensibilityElement extElem = null;
807
   extElem = super.parseSchema(ccc, elem, def);
800
808
809
   // Try to add element to list
810
   addElementToList(elem, extElem);
811
  return extElem;
812
 }
801
}
813
}
(-)src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/InlineSchemaValidator.java (-5 / +6 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 19-31 Link Here
19
19
20
import javax.wsdl.Definition;
20
import javax.wsdl.Definition;
21
import javax.wsdl.Types;
21
import javax.wsdl.Types;
22
import javax.wsdl.extensions.UnknownExtensibilityElement;
22
import javax.wsdl.extensions.schema.Schema;
23
23
24
import org.w3c.dom.Element;
24
import org.w3c.dom.Element;
25
import org.w3c.dom.NamedNodeMap;
25
import org.w3c.dom.NamedNodeMap;
26
import org.w3c.dom.Node;
26
import org.w3c.dom.Node;
27
27
28
import com.ibm.wsdl.Constants;
28
import com.ibm.wsdl.Constants;
29
import com.ibm.wsdl.extensions.schema.SchemaConstants;
29
30
30
/**
31
/**
31
 * Plugin validator for the WSDL Validation framework. Validates inline schema found in a WSDL document.
32
 * Plugin validator for the WSDL Validation framework. Validates inline schema found in a WSDL document.
Lines 40-46 Link Here
40
  public Map validate(Object element, List parents, String filename) throws Exception
41
  public Map validate(Object element, List parents, String filename) throws Exception
41
  {
42
  {
42
  	elements = new Vector();
43
  	elements = new Vector();
43
    UnknownExtensibilityElement elem = (UnknownExtensibilityElement) element;
44
  	Schema elem = (Schema) element;
44
    Definition wsdlDefinition = (Definition) parents.get(parents.size() - 1);
45
    Definition wsdlDefinition = (Definition) parents.get(parents.size() - 1);
45
    // Add in the namespaces defined in the doc already that aren't defined locally in this schema.
46
    // Add in the namespaces defined in the doc already that aren't defined locally in this schema.
46
    // There is no need to check for namespaces other then in the defintions and types elements as
47
    // There is no need to check for namespaces other then in the defintions and types elements as
Lines 63-69 Link Here
63
64
64
    // If the namespace given is one of the old schema namespaces produce a warning.
65
    // If the namespace given is one of the old schema namespaces produce a warning.
65
    String namespace = w3celement.getNamespaceURI();
66
    String namespace = w3celement.getNamespaceURI();
66
    if(namespace.equals(Constants.NS_URI_XSD_1999) || namespace.equals(Constants.NS_URI_XSD_2000))
67
    if(namespace.equals(SchemaConstants.NS_URI_XSD_1999) || namespace.equals(SchemaConstants.NS_URI_XSD_2000))
67
    {
68
    {
68
      throw new Exception("An old version of the schema namespace is specified.");
69
      throw new Exception("An old version of the schema namespace is specified.");
69
    }
70
    }
Lines 132-138 Link Here
132
      Iterator iSchemas = schemas.iterator();
133
      Iterator iSchemas = schemas.iterator();
133
      while (iSchemas.hasNext())
134
      while (iSchemas.hasNext())
134
      {
135
      {
135
        UnknownExtensibilityElement extElem = (UnknownExtensibilityElement) iSchemas.next();
136
    	Schema extElem = (Schema) iSchemas.next();
136
        String thisNamespace = extElem.getElement().getAttribute(Constants.ATTR_TARGET_NAMESPACE);
137
        String thisNamespace = extElem.getElement().getAttribute(Constants.ATTR_TARGET_NAMESPACE);
137
        if (thisNamespace != null && !thisNamespace.equalsIgnoreCase(targetNamespace))
138
        if (thisNamespace != null && !thisNamespace.equalsIgnoreCase(targetNamespace))
138
        {
139
        {
(-)src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/InlineSchemaGenerator.java (-7 / +7 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 21-27 Link Here
21
import org.w3c.dom.Node;
21
import org.w3c.dom.Node;
22
import org.w3c.dom.NodeList;
22
import org.w3c.dom.NodeList;
23
23
24
import com.ibm.wsdl.Constants;
24
import com.ibm.wsdl.extensions.schema.SchemaConstants;
25
25
26
/**
26
/**
27
 * Generate a String representation of a schema for an inline schema. Will add imports for unresolved
27
 * Generate a String representation of a schema for an inline schema. Will add imports for unresolved
Lines 42-48 Link Here
42
  protected final String TYPE = "type";
42
  protected final String TYPE = "type";
43
  protected final String NAME = "name";
43
  protected final String NAME = "name";
44
  protected final String[] ignoreNamespaces =
44
  protected final String[] ignoreNamespaces =
45
    { Constants.NS_URI_XSD_1999, Constants.NS_URI_XSD_2000, Constants.NS_URI_XSD_2001 };
45
    { SchemaConstants.NS_URI_XSD_1999, SchemaConstants.NS_URI_XSD_2000, SchemaConstants.NS_URI_XSD_2001 };
46
46
47
  protected static InlineSchemaGenerator instance = null;
47
  protected static InlineSchemaGenerator instance = null;
48
48
Lines 194-202 Link Here
194
          }
194
          }
195
        }
195
        }
196
        // Replace old schema namespaces with the new schema namespace.
196
        // Replace old schema namespaces with the new schema namespace.
197
        if(nodeValue.equals(Constants.NS_URI_XSD_1999) || nodeValue.equals(Constants.NS_URI_XSD_2000))
197
        if(nodeValue.equals(SchemaConstants.NS_URI_XSD_1999) || nodeValue.equals(SchemaConstants.NS_URI_XSD_2000))
198
         {
198
         {
199
          nodeValue = Constants.NS_URI_XSD_2001;
199
          nodeValue = SchemaConstants.NS_URI_XSD_2001;
200
        }
200
        }
201
        xsdString.append(nodeValue).append("\"");
201
        xsdString.append(nodeValue).append("\"");
202
      }
202
      }
Lines 213-221 Link Here
213
      {
213
      {
214
        String key = (String)keys.nextElement();
214
        String key = (String)keys.nextElement();
215
        String declNS = (String)reqNSDecl.get(key);
215
        String declNS = (String)reqNSDecl.get(key);
216
        if(declNS.equals(Constants.NS_URI_XSD_1999) || declNS.equals(Constants.NS_URI_XSD_2000))
216
        if(declNS.equals(SchemaConstants.NS_URI_XSD_1999) || declNS.equals(SchemaConstants.NS_URI_XSD_2000))
217
         {
217
         {
218
          declNS = Constants.NS_URI_XSD_2001;
218
          declNS = SchemaConstants.NS_URI_XSD_2001;
219
        }
219
        }
220
        xsdString.append(" ").append(key).append("=\"").append(declNS).append("\"");
220
        xsdString.append(" ").append(key).append("=\"").append(declNS).append("\"");
221
      }
221
      }
(-)META-INF/MANIFEST.MF (-2 / +2 lines)
Lines 2-8 Link Here
2
Bundle-ManifestVersion: 2
2
Bundle-ManifestVersion: 2
3
Bundle-Name: %_PLUGIN_NAME
3
Bundle-Name: %_PLUGIN_NAME
4
Bundle-SymbolicName: org.eclipse.wst.wsi; singleton:=true
4
Bundle-SymbolicName: org.eclipse.wst.wsi; singleton:=true
5
Bundle-Version: 1.0.205.qualifier
5
Bundle-Version: 1.0.305.qualifier
6
Bundle-Activator: org.eclipse.wst.wsi.internal.WSITestToolsPlugin
6
Bundle-Activator: org.eclipse.wst.wsi.internal.WSITestToolsPlugin
7
Bundle-Vendor: %_PROVIDER_NAME
7
Bundle-Vendor: %_PROVIDER_NAME
8
Bundle-Localization: plugin
8
Bundle-Localization: plugin
Lines 49-55 Link Here
49
 org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
49
 org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
50
 org.eclipse.wst.wsdl.validation;bundle-version="[1.1.0,1.2.0)",
50
 org.eclipse.wst.wsdl.validation;bundle-version="[1.1.0,1.2.0)",
51
 org.eclipse.wst.ws;bundle-version="[1.0.100,2.0.0)",
51
 org.eclipse.wst.ws;bundle-version="[1.0.100,2.0.0)",
52
 javax.wsdl;bundle-version="[1.4.0,1.5.0)",
52
  javax.wsdl;bundle-version="[1.5.0,1.6.0)",
53
 org.uddi4j;bundle-version="[2.0.4,2.1.0)",
53
 org.uddi4j;bundle-version="[2.0.4,2.1.0)",
54
 org.apache.axis;bundle-version="[1.3.0,2.0.0)",
54
 org.apache.axis;bundle-version="[1.3.0,2.0.0)",
55
 com.ibm.icu;bundle-version="[3.4.4,4.0.0)",
55
 com.ibm.icu;bundle-version="[3.4.4,4.0.0)",
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSDLValidatorImpl.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 36-42 Link Here
36
import javax.wsdl.Service;
36
import javax.wsdl.Service;
37
import javax.wsdl.Types;
37
import javax.wsdl.Types;
38
import javax.wsdl.extensions.ExtensibilityElement;
38
import javax.wsdl.extensions.ExtensibilityElement;
39
import javax.wsdl.extensions.UnknownExtensibilityElement;
39
import javax.wsdl.extensions.schema.Schema;
40
import javax.wsdl.extensions.soap.SOAPBinding;
40
import javax.wsdl.extensions.soap.SOAPBinding;
41
import javax.wsdl.extensions.soap.SOAPBody;
41
import javax.wsdl.extensions.soap.SOAPBody;
42
import javax.wsdl.extensions.soap.SOAPFault;
42
import javax.wsdl.extensions.soap.SOAPFault;
Lines 1665-1678 Link Here
1665
        extElement = (ExtensibilityElement) iterator.next();
1665
        extElement = (ExtensibilityElement) iterator.next();
1666
        // If this is an unknown ext. element, then see if it is a schema element
1666
        // If this is an unknown ext. element, then see if it is a schema element
1667
        TargetNamespaceProcessor tnsProcessor = null;
1667
        TargetNamespaceProcessor tnsProcessor = null;
1668
        if (extElement instanceof UnknownExtensibilityElement)
1668
        if (extElement instanceof Schema)
1669
        {
1669
        {
1670
          tnsProcessor = new TargetNamespaceProcessor(definition.getDocumentBaseURI());
1670
          tnsProcessor = new TargetNamespaceProcessor(definition.getDocumentBaseURI());
1671
1671
1672
1672
1673
          if ((nextList =
1673
          if ((nextList =
1674
            tnsProcessor.processAllSchema(
1674
            tnsProcessor.processAllSchema(
1675
              ((UnknownExtensibilityElement) extElement).getElement()))
1675
              ((Schema) extElement).getElement()))
1676
            != null)
1676
            != null)
1677
            if (list == null)
1677
            if (list == null)
1678
              list = new Vector();
1678
              list = new Vector();
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP4202.java (-4 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 10-18 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.wst.wsi.internal.core.profile.validator.impl.wsdl;
11
package org.eclipse.wst.wsi.internal.core.profile.validator.impl.wsdl;
12
12
13
import javax.wsdl.Message;
13
import javax.wsdl.Types;
14
import javax.wsdl.Types;
14
import javax.wsdl.extensions.ExtensibilityElement;
15
import javax.wsdl.extensions.ExtensibilityElement;
15
import javax.wsdl.extensions.UnknownExtensibilityElement;
16
import javax.wsdl.extensions.schema.Schema;
16
17
17
import org.eclipse.wst.wsi.internal.core.WSIException;
18
import org.eclipse.wst.wsi.internal.core.WSIException;
18
import org.eclipse.wst.wsi.internal.core.WSITag;
19
import org.eclipse.wst.wsi.internal.core.WSITag;
Lines 57-65 Link Here
57
    */
58
    */
58
   public void visit(ExtensibilityElement obj, Object parent, WSDLTraversalContext ctx)
59
   public void visit(ExtensibilityElement obj, Object parent, WSDLTraversalContext ctx)
59
   {
60
   {
60
     if((obj != null) && (obj instanceof UnknownExtensibilityElement))
61
     if((obj != null) && (obj instanceof Schema))
61
     {
62
     {
62
       UnknownExtensibilityElement el = (UnknownExtensibilityElement) obj;
63
    	 Schema el = (Schema) obj;
63
       try {
64
       try {
64
         processor.processAllSchema(el.getElement());
65
         processor.processAllSchema(el.getElement());
65
       } catch (WSIException e) {}
66
       } catch (WSIException e) {}
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2034.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 14-20 Link Here
14
14
15
import javax.wsdl.Definition;
15
import javax.wsdl.Definition;
16
import javax.wsdl.Types;
16
import javax.wsdl.Types;
17
import javax.wsdl.extensions.UnknownExtensibilityElement;
17
import javax.wsdl.extensions.schema.Schema;
18
18
19
import org.eclipse.wst.wsi.internal.core.WSIConstants;
19
import org.eclipse.wst.wsi.internal.core.WSIConstants;
20
import org.eclipse.wst.wsi.internal.core.WSIException;
20
import org.eclipse.wst.wsi.internal.core.WSIException;
Lines 70-77 Link Here
70
      for (int i = 0; i < extElems.size(); i++)
70
      for (int i = 0; i < extElems.size(); i++)
71
      {
71
      {
72
        // Getting wsdl:schema element
72
        // Getting wsdl:schema element
73
        UnknownExtensibilityElement schema =
73
        Schema schema =
74
          (UnknownExtensibilityElement) extElems.get(i);
74
          (Schema) extElems.get(i);
75
        // Getting a value of the attribute xmlns:xml
75
        // Getting a value of the attribute xmlns:xml
76
        String attrValue = schema.getElement().getAttributeNS(
76
        String attrValue = schema.getElement().getAttributeNS(
77
          WSIConstants.NS_URI_XMLNS, "xml");
77
          WSIConstants.NS_URI_XMLNS, "xml");
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2122.java (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 14-20 Link Here
14
14
15
import javax.wsdl.Types;
15
import javax.wsdl.Types;
16
import javax.wsdl.extensions.ExtensibilityElement;
16
import javax.wsdl.extensions.ExtensibilityElement;
17
import javax.wsdl.extensions.UnknownExtensibilityElement;
17
import javax.wsdl.extensions.schema.Schema;
18
18
19
import org.eclipse.wst.wsi.internal.core.WSIException;
19
import org.eclipse.wst.wsi.internal.core.WSIException;
20
import org.eclipse.wst.wsi.internal.core.WSITag;
20
import org.eclipse.wst.wsi.internal.core.WSITag;
Lines 67-73 Link Here
67
      {
67
      {
68
        // If it is an unknown ext. element and it is a schema, then check it
68
        // If it is an unknown ext. element and it is a schema, then check it
69
        if ((extElement = (ExtensibilityElement) extElements.get(i))
69
        if ((extElement = (ExtensibilityElement) extElements.get(i))
70
          instanceof UnknownExtensibilityElement)
70
          instanceof Schema)
71
        {
71
        {
72
          if (!extElement.getElementType().equals(WSITag.ELEM_XSD_SCHEMA))
72
          if (!extElement.getElementType().equals(WSITag.ELEM_XSD_SCHEMA))
73
          {
73
          {
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2011.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 23-29 Link Here
23
import javax.wsdl.Definition;
23
import javax.wsdl.Definition;
24
import javax.wsdl.Types;
24
import javax.wsdl.Types;
25
import javax.wsdl.extensions.ExtensibilityElement;
25
import javax.wsdl.extensions.ExtensibilityElement;
26
import javax.wsdl.extensions.UnknownExtensibilityElement;
26
import javax.wsdl.extensions.schema.Schema;
27
27
28
import org.eclipse.wst.wsi.internal.core.WSIException;
28
import org.eclipse.wst.wsi.internal.core.WSIException;
29
import org.eclipse.wst.wsi.internal.core.WSITag;
29
import org.eclipse.wst.wsi.internal.core.WSITag;
Lines 102-109 Link Here
102
      while (it.hasNext())
102
      while (it.hasNext())
103
      {
103
      {
104
        ExtensibilityElement el = (ExtensibilityElement) it.next();
104
        ExtensibilityElement el = (ExtensibilityElement) it.next();
105
        if (el instanceof UnknownExtensibilityElement)
105
        if (el instanceof Schema)
106
          searchForSchema(((UnknownExtensibilityElement) el).getElement(),
106
          searchForSchema(((Schema) el).getElement(),
107
              definition.getDocumentBaseURI(), new ArrayList());
107
              definition.getDocumentBaseURI(), new ArrayList());
108
      }
108
      }
109
    }
109
    }
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2202.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 23-29 Link Here
23
import javax.wsdl.Definition;
23
import javax.wsdl.Definition;
24
import javax.wsdl.Types;
24
import javax.wsdl.Types;
25
import javax.wsdl.extensions.ExtensibilityElement;
25
import javax.wsdl.extensions.ExtensibilityElement;
26
import javax.wsdl.extensions.UnknownExtensibilityElement;
26
import javax.wsdl.extensions.schema.Schema;
27
27
28
import org.eclipse.wst.wsi.internal.core.WSIException;
28
import org.eclipse.wst.wsi.internal.core.WSIException;
29
import org.eclipse.wst.wsi.internal.core.WSITag;
29
import org.eclipse.wst.wsi.internal.core.WSITag;
Lines 100-108 Link Here
100
      while (it.hasNext())
100
      while (it.hasNext())
101
      {
101
      {
102
        ExtensibilityElement el = (ExtensibilityElement) it.next();
102
        ExtensibilityElement el = (ExtensibilityElement) it.next();
103
        if (el instanceof UnknownExtensibilityElement
103
        if (el instanceof Schema
104
          && el.getElementType().equals(ELEM_XSD_SCHEMA))
104
          && el.getElementType().equals(ELEM_XSD_SCHEMA))
105
          searchForSchema(((UnknownExtensibilityElement) el).getElement(),
105
          searchForSchema(((Schema) el).getElement(),
106
              definition.getDocumentBaseURI(), new ArrayList());
106
              definition.getDocumentBaseURI(), new ArrayList());
107
      }
107
      }
108
    }
108
    }
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2103.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 12-18 Link Here
12
12
13
import javax.wsdl.Definition;
13
import javax.wsdl.Definition;
14
import javax.wsdl.extensions.ExtensibilityElement;
14
import javax.wsdl.extensions.ExtensibilityElement;
15
import javax.wsdl.extensions.UnknownExtensibilityElement;
15
import javax.wsdl.extensions.schema.Schema;
16
import javax.xml.namespace.QName;
16
import javax.xml.namespace.QName;
17
17
18
import org.eclipse.wst.wsi.internal.core.WSIException;
18
import org.eclipse.wst.wsi.internal.core.WSIException;
Lines 60-67 Link Here
60
    Object parent,
60
    Object parent,
61
    WSDLTraversalContext ctx)
61
    WSDLTraversalContext ctx)
62
  {
62
  {
63
    if (el instanceof UnknownExtensibilityElement)
63
    if (el instanceof Schema)
64
      searchForImport(((UnknownExtensibilityElement) el).getElement());
64
      searchForImport(((Schema) el).getElement());
65
  }
65
  }
66
66
67
  /* Validates the test assertion.
67
  /* Validates the test assertion.
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2107.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 15-21 Link Here
15
15
16
import javax.wsdl.Types;
16
import javax.wsdl.Types;
17
import javax.wsdl.extensions.ExtensibilityElement;
17
import javax.wsdl.extensions.ExtensibilityElement;
18
import javax.wsdl.extensions.UnknownExtensibilityElement;
18
import javax.wsdl.extensions.schema.Schema;
19
19
20
import org.eclipse.wst.wsi.internal.core.WSIException;
20
import org.eclipse.wst.wsi.internal.core.WSIException;
21
import org.eclipse.wst.wsi.internal.core.WSITag;
21
import org.eclipse.wst.wsi.internal.core.WSITag;
Lines 72-79 Link Here
72
      while (it.hasNext())
72
      while (it.hasNext())
73
      {
73
      {
74
        ExtensibilityElement el = (ExtensibilityElement) it.next();
74
        ExtensibilityElement el = (ExtensibilityElement) it.next();
75
        if (el instanceof UnknownExtensibilityElement)
75
        if (el instanceof Schema)
76
          searchForSchema(((UnknownExtensibilityElement) el).getElement());
76
          searchForSchema(((Schema) el).getElement());
77
      }
77
      }
78
    }
78
    }
79
79
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2102.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 18-24 Link Here
18
import javax.wsdl.Definition;
18
import javax.wsdl.Definition;
19
import javax.wsdl.Types;
19
import javax.wsdl.Types;
20
import javax.wsdl.extensions.ExtensibilityElement;
20
import javax.wsdl.extensions.ExtensibilityElement;
21
import javax.wsdl.extensions.UnknownExtensibilityElement;
21
import javax.wsdl.extensions.schema.Schema;
22
22
23
import org.eclipse.wst.wsi.internal.core.WSIException;
23
import org.eclipse.wst.wsi.internal.core.WSIException;
24
import org.eclipse.wst.wsi.internal.core.WSITag;
24
import org.eclipse.wst.wsi.internal.core.WSITag;
Lines 82-90 Link Here
82
        while (it.hasNext())
82
        while (it.hasNext())
83
        {
83
        {
84
          ExtensibilityElement el = (ExtensibilityElement) it.next();
84
          ExtensibilityElement el = (ExtensibilityElement) it.next();
85
          if (el instanceof UnknownExtensibilityElement
85
          if (el instanceof Schema
86
            && el.getElementType().equals(ELEM_XSD_SCHEMA))
86
            && el.getElementType().equals(ELEM_XSD_SCHEMA))
87
            testNode(((UnknownExtensibilityElement) el).getElement(),
87
            testNode(((Schema) el).getElement(),
88
              definition.getDocumentBaseURI(), new ArrayList());
88
              definition.getDocumentBaseURI(), new ArrayList());
89
89
90
          if (result.equals(AssertionResult.RESULT_FAILED))
90
          if (result.equals(AssertionResult.RESULT_FAILED))
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/BaseMessageValidator.java (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2003 IBM Corporation, Parasoft and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation, Parasoft and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 17-23 Link Here
17
import java.util.Iterator;
17
import java.util.Iterator;
18
import java.util.List;
18
import java.util.List;
19
import java.util.Map;
19
import java.util.Map;
20
import com.ibm.icu.util.StringTokenizer;
21
import java.util.Vector;
20
import java.util.Vector;
22
21
23
import javax.wsdl.Binding;
22
import javax.wsdl.Binding;
Lines 77-82 Link Here
77
import org.w3c.dom.NodeList;
76
import org.w3c.dom.NodeList;
78
import org.xml.sax.SAXException;
77
import org.xml.sax.SAXException;
79
78
79
import com.ibm.icu.util.StringTokenizer;
80
import com.ibm.wsdl.Constants;
80
import com.ibm.wsdl.Constants;
81
import com.ibm.wsdl.util.xml.DOM2Writer;
81
import com.ibm.wsdl.util.xml.DOM2Writer;
82
import com.ibm.wsdl.util.xml.DOMUtils;
82
import com.ibm.wsdl.util.xml.DOMUtils;
Lines 1651-1657 Link Here
1651
                {
1651
                {
1652
                  if (attr != null)
1652
                  if (attr != null)
1653
                    xsiType =
1653
                    xsiType =
1654
                      DOMUtils.getQName(attr.getNodeValue(), (Element) m);
1654
                      DOMUtils.getQName(attr.getNodeValue(), (Element) m, wsdlDocument.getDefinitions());
1655
                }
1655
                }
1656
                catch (javax.wsdl.WSDLException we)
1656
                catch (javax.wsdl.WSDLException we)
1657
                {
1657
                {
(-)src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1204.java (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 20-26 Link Here
20
import javax.wsdl.Part;
20
import javax.wsdl.Part;
21
import javax.wsdl.Types;
21
import javax.wsdl.Types;
22
import javax.wsdl.extensions.ExtensibilityElement;
22
import javax.wsdl.extensions.ExtensibilityElement;
23
import javax.wsdl.extensions.UnknownExtensibilityElement;
23
import javax.wsdl.extensions.schema.Schema;
24
import javax.xml.namespace.QName;
24
import javax.xml.namespace.QName;
25
25
26
import org.eclipse.wst.wsi.internal.core.WSIConstants;
26
import org.eclipse.wst.wsi.internal.core.WSIConstants;
Lines 274-280 Link Here
274
              .equals(new QName(WSIConstants.NS_URI_XSD, "schema")))
274
              .equals(new QName(WSIConstants.NS_URI_XSD, "schema")))
275
            {
275
            {
276
              typesElement =
276
              typesElement =
277
                ((UnknownExtensibilityElement) extElem).getElement();
277
                ((Schema) extElem).getElement();
278
              break;
278
              break;
279
            }
279
            }
280
          }
280
          }
(-)src/org/eclipse/wst/wsi/internal/core/profile/impl/ProfileAssertionsReaderImpl.java (-2 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 576-582 Link Here
576
		         id.equals("BP2123") ||
576
		         id.equals("BP2123") ||
577
		         id.equals("SSBP2209") ||
577
		         id.equals("SSBP2209") ||
578
		         id.equals("AP2209") ||
578
		         id.equals("AP2209") ||
579
		         id.equals("BP2700")	         
579
		         id.equals("BP2700") ||
580
		         id.equals("BP2011")
580
		         );
581
		         );
581
	 }
582
	 }
582
	 return result;
583
	 return result;
(-)src/org/eclipse/wst/wsi/internal/core/util/TypesRegistry.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002-2005 IBM Corporation and others.
2
 * Copyright (c) 2002, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 37-43 Link Here
37
import javax.wsdl.Service;
37
import javax.wsdl.Service;
38
import javax.wsdl.Types;
38
import javax.wsdl.Types;
39
import javax.wsdl.extensions.ExtensibilityElement;
39
import javax.wsdl.extensions.ExtensibilityElement;
40
import javax.wsdl.extensions.UnknownExtensibilityElement;
40
import javax.wsdl.extensions.schema.Schema;
41
import javax.wsdl.extensions.soap.SOAPBinding;
41
import javax.wsdl.extensions.soap.SOAPBinding;
42
import javax.wsdl.extensions.soap.SOAPBody;
42
import javax.wsdl.extensions.soap.SOAPBody;
43
import javax.wsdl.extensions.soap.SOAPFault;
43
import javax.wsdl.extensions.soap.SOAPFault;
Lines 398-406 Link Here
398
      while (it.hasNext())
398
      while (it.hasNext())
399
      {
399
      {
400
        ExtensibilityElement el = (ExtensibilityElement) it.next();
400
        ExtensibilityElement el = (ExtensibilityElement) it.next();
401
        if (el instanceof UnknownExtensibilityElement)
401
        if (el instanceof Schema)
402
          searchForSchema(
402
          searchForSchema(
403
            ((UnknownExtensibilityElement) el).getElement(),
403
            ((Schema) el).getElement(),
404
            context);
404
            context);
405
      }
405
      }
406
    }
406
    }

Return to bug 252258