simpleType enumeration marshall Problem
---------------------------------------

                 Key: XFIRE-1025
                 URL: http://jira.codehaus.org/browse/XFIRE-1025
             Project: XFire
          Issue Type: Bug
    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" (see below the simpleType 
EntityKind).
We get an exception:
   "Nested exception is org.codehaus.xfire.fault.XFireFault: Could not marshall 
type."
caused by the simpleType EntityKind.

With other simpleType enumerations we have no problem.

The difference is: simpleType EntityKind is NEVER referenced in a complexType
It is just part of a wsdl:message (see below):

If we add a (never used) complexType like the following to the xsd the soap 
call works!

        <xsd:complexType name="Dummy">
                <xsd:sequence>
                        <xsd:element name="xxx" type="tns:EntityKind"/>
                </xsd:sequence>
        </xsd:complexType>

This creates in Objectfactory.java: 
public Dummy createDummy() {
        return new Dummy();
    }
and from now on EntityKind seems to be "marshallable"

For me this looks like a bug.

Regards

Andreas Kehl


--- part of wsdl file ---

<wsdl:message name="isAuthorizedByLoginAccountIdRequest">
                <wsdl:part name="requestHeader" type="tns:RequestHeader">
                </wsdl:part>
                <wsdl:part name="usedProfile" type="tns:EntityKind" />
                <wsdl:part name="loginAccountId" type="tns:LoginAccountId" />
                <wsdl:part name="serviceName" type="tns:ServiceName" />
</wsdl:message>



--- part of xsd file --

In an xsd for a wsdl we have contruccts like this

<xsd:simpleType name="EntityKind">
                <xsd:restriction base="tns:ShortString">
                        <xsd:enumeration value="ANY"/>
                        <xsd:enumeration value="USER"/>
                        <xsd:enumeration value="LOGIN_ACCOUNT"/>
                        <xsd:enumeration value="SUBSCRIPTION"/>
                </xsd:restriction>
        </xsd:simpleType>
        
        <xsd:simpleType name="PaymentKind">
                <xsd:restriction base="tns:ShortString">
                        <xsd:enumeration value="ANY"/>
                        <xsd:enumeration value="PREPAID"/>
                        <xsd:enumeration value="POSTPAID"/>
                        <xsd:enumeration value="DYNAMIC"/>
                </xsd:restriction>
        </xsd:simpleType>
        
        <xsd:complexType name="Customer">
                <xsd:sequence>
                        <xsd:element name="bskId" type="tns:BskId"/>
                        <xsd:element name="msisdn" type="tns:Msisdn"/>
                        <xsd:element name="contractId" type="tns:ShortString"/>
                        <xsd:element name="customerCode" 
type="tns:ShortString"/>
                        <xsd:element name="customerId" type="tns:CustomerId"/>
                        <xsd:element name="segmentKind" type="tns:ShortString"/>
                        <xsd:element name="subsegmentKind" 
type="tns:ShortString"/>
                        <xsd:element name="operatorKind" 
type="tns:OperatorKind"/>
                        <xsd:element name="paymentKind" type="tns:PaymentKind"/>
                </xsd:sequence>
        </xsd:complexType>
        
        



-- 
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