Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Linux
Description
The uddi-v2 schema ( http://uddi.org/schema/uddi_v2.xsd ) defines the
serviceInfo element:
<xsd:complexType name="serviceInfo">
<xsd:sequence>
<xsd:element ref="uddi:name" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="serviceKey" type="uddi:serviceKey"
use="required"/>
<xsd:attribute name="businessKey"
type="uddi:businessKey" use="required"/>
</xsd:complexType>
Both the serviceKey and businessKey are required attributes in the
serviceInfo element. (This also applies for v3 of the UDDI schema)
However, the response from juddi does NOT contain the businessKey
attribute in the serviceInfo element; the response doesn't validate and
we get the unmarshalling exception
> <serviceInfo
> serviceKey="28F53590-CB3A-11D8-B590-94A6F2DB02CD">
> <name xml:lang="en">SalaryDeclaration</name>
> </serviceInfo>
javax.xml.registry.JAXRException: javax.xml.bind.UnmarshalException: Unexpected element
{urn:uddi-org:api_v2}:name
at com.sun.xml.registry.uddi.Processor.processResponseJAXB(Unknown Source)
at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException: Unexpected element
:name