Author: dkulp
Date: Wed Oct 31 05:03:40 2007
New Revision: 590635
URL: http://svn.apache.org/viewvc?rev=590635&view=rev
Log:
Merged revisions 590526 via svnmerge from
https://svn.apache.org/repos/asf/incubator/cxf/trunk
........
r590526 | bimargulies | 2007-10-30 21:13:44 -0400 (Tue, 30 Oct 2007) | 23
lines
Some rationalization of the XmlSchemaCollection usage associated with
ServiceInfo objects. Get rid of the use of a property on the
ServiceInfo (using the get/setProperty API) since the schema
collection object actually built into the ServiceInfo works perfectly fine.
There is work left to do in ReflectionServiceFactoryBean to get
schemata that it builds itself into the collection.
--This line, and those below, will be ignored--
M
rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
M
rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
M
rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
M
rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
M
rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean1.java
M
rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
M rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
M rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
M
rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
M
tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
M api/src/main/java/org/apache/cxf/service/model/ServiceInfo.java
........
Modified:
incubator/cxf/branches/2.0.x-fixes/ (props changed)
incubator/cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/service/model/ServiceInfo.java
incubator/cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
incubator/cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
incubator/cxf/branches/2.0.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
incubator/cxf/branches/2.0.x-fixes/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
incubator/cxf/branches/2.0.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
Propchange: incubator/cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
incubator/cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/service/model/ServiceInfo.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/service/model/ServiceInfo.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/service/model/ServiceInfo.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/service/model/ServiceInfo.java
Wed Oct 31 05:03:40 2007
@@ -40,6 +40,7 @@
private XmlSchemaCollection xmlSchemaCollection;
public ServiceInfo() {
+ xmlSchemaCollection = new XmlSchemaCollection();
}
public String getTargetNamespace() {
@@ -138,10 +139,6 @@
public Collection<SchemaInfo> getSchemas() {
return Collections.unmodifiableCollection(schemas);
- }
-
- public void setXmlSchemaCollection(XmlSchemaCollection col) {
- this.xmlSchemaCollection = col;
}
public XmlSchemaCollection getXmlSchemaCollection() {
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapBindingFactory.java
Wed Oct 31 05:03:40 2007
@@ -389,8 +389,7 @@
if (header != null && serviceInfo.getMessage(header.getMessage()) ==
null) {
Definition def =
(Definition)serviceInfo.getProperty(WSDLServiceBuilder.WSDL_DEFINITION);
- XmlSchemaCollection schemas = (XmlSchemaCollection)serviceInfo
- .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST);
+ XmlSchemaCollection schemas = serviceInfo.getXmlSchemaCollection();
if (def != null && schemas != null) {
javax.wsdl.Message msg = def.getMessage(header.getMessage());
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Wed Oct 31 05:03:40 2007
@@ -187,10 +187,9 @@
ServiceInfo service = new ServiceInfo();
service.setDescription(description);
service.setProperty(WSDL_DEFINITION, def);
- XmlSchemaCollection schemas = getSchemas(def, service);
+ getSchemas(def, service);
service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList);
- service.setProperty(WSDL_SCHEMA_LIST, schemas);
serviceList.add(service);
}
}
@@ -208,12 +207,10 @@
ServiceInfo service = new ServiceInfo();
service.setDescription(description);
service.setProperty(WSDL_DEFINITION, def);
- XmlSchemaCollection schemas = getSchemas(def, service);
+ getSchemas(def, service);
service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList);
- service.setProperty(WSDL_SCHEMA_LIST, schemas);
-
buildInterface(service, p);
return service;
@@ -249,9 +246,8 @@
service.setProperty(WSDL_DEFINITION, def);
service.setProperty(WSDL_SERVICE, serv);
- XmlSchemaCollection schemas = getSchemas(def, service);
+ getSchemas(def, service);
service.setProperty(WSDL_SCHEMA_ELEMENT_LIST, this.schemaList);
- service.setProperty(WSDL_SCHEMA_LIST, schemas);
service.setTargetNamespace(def.getTargetNamespace());
service.setName(serv.getQName());
copyExtensors(service, serv.getExtensibilityElements());
@@ -272,9 +268,8 @@
return new ArrayList<ServiceInfo>(services.values());
}
- private XmlSchemaCollection getSchemas(Definition def, ServiceInfo
serviceInfo) {
- XmlSchemaCollection schemaCol = new XmlSchemaCollection();
- serviceInfo.setXmlSchemaCollection(schemaCol);
+ private void getSchemas(Definition def, ServiceInfo serviceInfo) {
+ XmlSchemaCollection schemaCol = serviceInfo.getXmlSchemaCollection();
schemaCol.getExtReg().setDefaultExtensionDeserializer(
new FixedExtensionDeserializer());
@@ -288,8 +283,6 @@
// added
getSchemaList(def2);
}
-
- return schemaCol;
}
private void parseImports(Definition def, List<Definition> defList) {
@@ -641,8 +634,7 @@
if (!passedRule) {
return;
}
- XmlSchemaCollection schemas =
(XmlSchemaCollection)opInfo.getInterface().getService()
- .getProperty(WSDL_SCHEMA_LIST);
+ XmlSchemaCollection schemas =
opInfo.getInterface().getService().getXmlSchemaCollection();
XmlSchemaElement inputEl = null;
XmlSchemaElement outputEl = null;
@@ -787,8 +779,8 @@
}
private void buildMessage(AbstractMessageContainer minfo, Message msg) {
- XmlSchemaCollection schemas =
(XmlSchemaCollection)minfo.getOperation().getInterface().getService()
- .getProperty(WSDL_SCHEMA_LIST);
+ XmlSchemaCollection schemas =
minfo.getOperation().getInterface().getService()
+ .getXmlSchemaCollection();
List orderedParam = msg.getOrderedParts(null);
for (Part part : cast(orderedParam, Part.class)) {
MessagePartInfo pi = minfo.addMessagePart(new
QName(minfo.getName().getNamespaceURI(), part
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
Wed Oct 31 05:03:40 2007
@@ -363,8 +363,7 @@
@Test
public void testSchema() {
- XmlSchemaCollection schemas =
serviceInfo.getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST,
- XmlSchemaCollection.class);
+ XmlSchemaCollection schemas = serviceInfo.getXmlSchemaCollection();
assertNotNull(schemas);
assertEquals(serviceInfo.getSchemas().size(), 1);
SchemaInfo schemaInfo = serviceInfo.getSchemas().iterator().next();
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
Wed Oct 31 05:03:40 2007
@@ -59,7 +59,6 @@
import org.apache.cxf.service.model.OperationInfo;
import org.apache.cxf.service.model.ServiceInfo;
import org.apache.cxf.wsdl.WSDLConstants;
-import org.apache.cxf.wsdl11.WSDLServiceBuilder;
import org.apache.ws.commons.schema.XmlSchema;
import org.apache.ws.commons.schema.XmlSchemaAnnotated;
import org.apache.ws.commons.schema.XmlSchemaCollection;
@@ -312,17 +311,11 @@
types.add(t);
}
for (ServiceInfo si : s.getServiceInfos()) {
- XmlSchemaCollection col = (XmlSchemaCollection)si
- .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST);
-
- if (col != null) {
+ XmlSchemaCollection col = si.getXmlSchemaCollection();
+ if (col.getXmlSchemas().length > 1) {
// someone has already filled in the types
continue;
}
-
- col = new XmlSchemaCollection();
- si.setProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST, col);
- si.setXmlSchemaCollection(col);
}
for (Map.Entry<String, Set<Type>> entry : tns2Type.entrySet()) {
@@ -378,8 +371,7 @@
org.w3c.dom.Document schema = new DOMOutputter().output(new
Document(e));
for (ServiceInfo si : s.getServiceInfos()) {
- XmlSchemaCollection col = (XmlSchemaCollection)si
- .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST);
+ XmlSchemaCollection col = si.getXmlSchemaCollection();
col.setNamespaceContext(nsMap);
XmlSchema xmlSchema = addSchemaDocument(si, col, schema,
entry.getKey());
// Work around bug in JDOM DOMOutputter which fails to
correctly
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
Wed Oct 31 05:03:40 2007
@@ -69,7 +69,6 @@
import org.apache.cxf.service.factory.ServiceConstructionException;
import org.apache.cxf.service.model.ServiceInfo;
import org.apache.cxf.ws.addressing.ObjectFactory;
-import org.apache.cxf.wsdl11.WSDLServiceBuilder;
import org.apache.ws.commons.schema.XmlSchemaCollection;
public final class JAXBDataBinding extends AbstractDataBinding implements
DataBinding {
@@ -206,16 +205,13 @@
for (ServiceInfo serviceInfo : service.getServiceInfos()) {
- XmlSchemaCollection col = (XmlSchemaCollection)serviceInfo
- .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST);
-
- if (col != null) {
+ XmlSchemaCollection col = serviceInfo.getXmlSchemaCollection();
+
+ if (col.getXmlSchemas().length > 1) {
// someone has already filled in the types
continue;
}
- col = new XmlSchemaCollection();
-
Collection<DOMSource> schemas = getSchemas();
if (schemas != null) {
for (DOMSource r : schemas) {
@@ -233,7 +229,6 @@
}
}
- serviceInfo.setProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST, col);
JAXBContextImpl riContext;
if (context instanceof JAXBContextImpl) {
riContext = (JAXBContextImpl) context;
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Wed Oct 31 05:03:40 2007
@@ -83,6 +83,7 @@
import org.apache.ws.commons.schema.XmlSchemaForm;
import org.apache.ws.commons.schema.XmlSchemaImport;
import org.apache.ws.commons.schema.XmlSchemaObject;
+import org.apache.ws.commons.schema.XmlSchemaObjectTable;
import org.apache.ws.commons.schema.XmlSchemaSequence;
import org.apache.ws.commons.schema.XmlSchemaType;
import org.apache.ws.commons.schema.constants.Constants;
@@ -165,10 +166,75 @@
getService().put(MethodDispatcher.class.getName(),
getMethodDispatcher());
createEndpoints();
+
+ fillInSchemaCrossreferences();
return getService();
}
+ private void fillInSchemaCrossreferences() {
+ Service service = getService();
+ for (ServiceInfo serviceInfo : service.getServiceInfos()) {
+ XmlSchemaCollection schemaCollection =
serviceInfo.getXmlSchemaCollection();
+
+ // First pass, fill in any types for which we have a name but no
type.
+ for (SchemaInfo schemaInfo : serviceInfo.getSchemas()) {
+ XmlSchemaObjectTable elementsTable =
schemaInfo.getSchema().getElements();
+ Iterator elementsIterator = elementsTable.getNames();
+ while (elementsIterator.hasNext()) {
+ QName elementName = (QName)elementsIterator.next();
+ XmlSchemaElement element =
schemaInfo.getSchema().getElementByName(elementName);
+ if (element.getSchemaType() == null) {
+ QName typeName = element.getSchemaTypeName();
+ if (typeName != null) {
+ XmlSchemaType type =
schemaCollection.getTypeByQName(typeName);
+ if (type == null) {
+ Message message = new
Message("REFERENCE_TO_UNDEFINED_TYPE", LOG,
+
element.getQName(),
+ typeName,
+
service.getName());
+ LOG.severe(message.toString());
+ } else {
+ element.setSchemaType(type);
+ }
+ }
+ }
+ }
+
+ }
+
+ // second pass. Fill in based on refs.
+ for (SchemaInfo schemaInfo : serviceInfo.getSchemas()) {
+ XmlSchemaObjectTable elementsTable =
schemaInfo.getSchema().getElements();
+ Iterator elementsIterator = elementsTable.getNames();
+ while (elementsIterator.hasNext()) {
+ QName elementName = (QName)elementsIterator.next();
+ XmlSchemaElement element =
schemaInfo.getSchema().getElementByName(elementName);
+ if (element.getSchemaType() == null) {
+ QName refElementName = element.getRefName();
+ if (refElementName != null) {
+ XmlSchemaElement refElement =
+
schemaCollection.getElementByQName(refElementName);
+ if (refElement == null) {
+ Message message = new
Message("REFERENCE_TO_UNDEFINED_ELEMENT",
+ LOG,
+
element.getQName(),
+ refElementName,
+
service.getName());
+ LOG.severe(message.toString());
+ } else {
+ // it is convenient for other consumers if we
put the type in place.
+ // we trust that anything generating XSD will
avoid something stupid like:
+ // <element ref='x' type='y'/> as a result.
+
element.setSchemaType(refElement.getSchemaType());
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
protected void createEndpoints() {
Service service = getService();
@@ -228,6 +294,9 @@
}
ServiceInfo serviceInfo = new ServiceInfo();
+ XmlSchemaCollection col = serviceInfo.getXmlSchemaCollection();
+ col.getExtReg().registerSerializer(MimeAttribute.class, new
MimeSerializer());
+
ServiceImpl service = new ServiceImpl(serviceInfo);
setService(service);
@@ -808,12 +877,12 @@
}
SchemaInfo schemaInfo = new SchemaInfo(serviceInfo, namespaceURI);
- XmlSchemaCollection col = new XmlSchemaCollection();
+ XmlSchemaCollection col = serviceInfo.getXmlSchemaCollection();
+
XmlSchema schema = new XmlSchema(namespaceURI, col);
if (qualified) {
schema.setElementFormDefault(new
XmlSchemaForm(XmlSchemaForm.QUALIFIED));
}
- serviceInfo.setXmlSchemaCollection(col);
schemaInfo.setSchema(schema);
Map<String, String> explicitNamespaceMappings =
this.getDataBinding().getDeclaredNamespaceMappings();
Modified:
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
(original)
+++
incubator/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
Wed Oct 31 05:03:40 2007
@@ -24,5 +24,5 @@
USING_PROXY_FOR_SERVICE = Service class: {0} is a java.lang.reflect.Proxy
instance. This is known not to work well as \
annotations on the real instance are not available. We suggest overriding
the ServiceClass via spring config or \
other configuration. (serviceClass/implementorClass attributes on the
endpoint/server spring config entry)
-
-
\ No newline at end of file
+REFERENCE_TO_UNDEFINED_TYPE = Schema element {0} references undefined type {1}
for service {2}.
+REFERENCE_TO_UNDEFINED_ELEMENT = Schema element {0} references undefined
element {1} for service {2}.
\ No newline at end of file
Modified:
incubator/cxf/branches/2.0.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java?rev=590635&r1=590634&r2=590635&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
Wed Oct 31 05:03:40 2007
@@ -49,7 +49,6 @@
import org.apache.cxf.tools.util.NameUtil;
import org.apache.cxf.tools.util.URIParserUtil;
import org.apache.cxf.tools.wsdlto.core.DataBindingProfile;
-import org.apache.cxf.wsdl11.WSDLServiceBuilder;
import org.apache.ws.commons.schema.XmlSchema;
import org.apache.ws.commons.schema.XmlSchemaCollection;
import org.apache.ws.commons.schema.XmlSchemaComplexType;
@@ -355,8 +354,7 @@
List<WrapperElement> qnames = new ArrayList<WrapperElement>();
ServiceInfo serviceInfo = (ServiceInfo)context.get(ServiceInfo.class);
- XmlSchemaCollection schema = (XmlSchemaCollection)serviceInfo
- .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST);
+ XmlSchemaCollection schema = serviceInfo.getXmlSchemaCollection();
XmlSchemaElement elementByName = schema.getElementByQName(partElement);
@@ -397,8 +395,8 @@
public static boolean isSchemaFormQualified(ToolContext context, QName
partElement) {
ServiceInfo serviceInfo = (ServiceInfo)context.get(ServiceInfo.class);
- XmlSchemaCollection schemaCol = (XmlSchemaCollection)serviceInfo
- .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_LIST);
+ XmlSchemaCollection schemaCol = serviceInfo.getXmlSchemaCollection();
+
for (int i = 0; i < schemaCol.getXmlSchemas().length; i++) {
XmlSchema schema = schemaCol.getXmlSchemas().clone()[i];
if (schema.getElementByName(partElement) != null) {