Could not unmarshall type for SimpleType enumeration 
-----------------------------------------------------

                 Key: XFIRE-1048
                 URL: http://jira.codehaus.org/browse/XFIRE-1048
             Project: XFire
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.6, 1.2.5
         Environment: Windows / Solaris / jdk 1.5 / java classes generated with 
the XFire Eclipse Plugin 
            Reporter: Andreas Kehl
            Assignee: Dan Diephouse


We have problems with "simpleType enumerations" in a Response
(see below the simpleType RegistrationTokenValidity).
We get an exception:
org.codehaus.xfire.fault.XFireFault: Could not unmarshall type : 
   unexpected element (uri:"", local:"registrationTokenValidity"). 
   Expected elements are 
   <{http://schemas.intersys.ch/sso_live/chp}ArgumentOutOfRangeException>,
   <{http://schemas.intersys.ch/sso_live/chp}InternalErrorException>
        at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:219)

caused by the simpleType RegistrationTokenValidity.

The Response with the name "registrationTokenValidity" is missing from the 
"Expected elements"

Redefining RegistrationTokenValidity to a String or defining it as Part of a 
"ComplexType" can be used as workaround.

Regards

Andreas Kehl

------------- out of wsdl ------------- 


<wsdl:operation name="validateRegistrationToken">
                        <wsdl:input 
message="tns:validateRegistrationTokenRequest" />
                        <wsdl:output
                                message="tns:validateRegistrationTokenResponse" 
/>
                        <wsdl:fault name="internalError"
                                message="tns:internalErrorFault" />
                        <wsdl:fault name="argumentOutOfRange"
                                message="tns:argumentOutOfRangeFault" />
                </wsdl:operation>

<wsdl:message name="validateRegistrationTokenResponse">
                <wsdl:part name="registrationTokenValidity"
                        type="tns:RegistrationTokenValidity">
                </wsdl:part>


------------- out of the xsd ------------- 
<xsd:simpleType name="RegistrationTokenValidity">
                <xsd:restriction base="tns:ShortString">
                        <xsd:enumeration value="NOT_VALIDATED"/>
                        <xsd:enumeration value="VALID"/>
                        <xsd:enumeration value="UNKNOWN_TOKEN"/>
                        <xsd:enumeration value="LIFETIME_EXPIRED"/>
                </xsd:restriction>
        </xsd:simpleType>       

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to