Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.9.5.3
-
Fix Version/s: None
-
Component/s: XML
-
Labels:None
-
Environment:Operating System: Solaris
Platform: Sun
-
Bugzilla Id:1627
-
Number of attachments :
Description
In using Castor to marshal and unmarshal in a Java server environment.
If an element in the xsd has a type which is "anyType" such as ...
<element ref="saml:SubjectConfirmationData" minOccurs="0"/>
<element name="SubjectConfirmationData" type="anyType"/>
This creates a descriptor which looks like this...
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = new
org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class,
"_subjectConfirmationData", "SubjectConfirmationData",
org.exolab.castor.xml.NodeType.Element);
When the value of this element is set to a String and
marshalled, the xml looks like this...
<saml:SubjectConfirmationData
xsi:type="java:java.lang.String">AAMLx0...4DeNzUGH</saml:SubjectConfirmationData>
The xsi:type should be a base type like xsd:string instead of a
java:java.lang.String for interoperability with .NET and other programming
languages.
Activity
| Field | Original Value | New Value |
|---|---|---|
| issue.field.bugzillaimportkey | 1627 | 23076 |
| Assignee | Keith Visco [ kvisco ] |
| Priority | Blocker [ 1 ] | Major [ 3 ] |
| Bugzilla Id | 1627 |