The JMS and MQ JMS Service and Export implementation is able to provide default implementations for data bindings that provide serialization of the DataObjects to and from JMS or MQ JMS formats.
When an XML Schema has a type defined without a global element the JMS Bindings (JMSDataBindingImplXML and JMSDataBindingImplJava) cannot resolve the type to an element.
Schema:
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com" xmlns:tns="http://www.ibm.com"> <!-- global element required but missing --> <complexType name="Quote"> <sequence> <element name="symbol" type="string"></element> <element name="price" type="float"></element> </sequence> </complexType> </schema>
If you receive an exception such as:
com.ibm.websphere.sca.ServiceRuntimeException: caused by: java.lang.IllegalArgumentException: {Quote}Quote is not corresponding to a global element.
Or
[8/25/06 10:20:40:938 PDT] 00000054 FFDC Z com.ibm.ws.sca.databinding.impl.DataBindingImplXML com.ibm.ws.sca.databinding.impl.DataBindingImplXML#002 Exception: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'Quote' not found. (sca:/dataObject.xml, 2, 126)
This may mean you need to define a global element:
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com" xmlns:tns="http://www.ibm.com"> <element name="Quote" type="tns:Quote"></element> <!-- global element required --> <complexType name="Quote"> <sequence> <element name="symbol" type="string"></element> <element name="price" type="float"></element> </sequence> </complexType> </schema>
Last updated: Wed 06 Dec 2006 07:08:08
(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)