minOccurs=0 and nillable

77 views
Skip to first unread message

Andrea Minetti

unread,
Jun 13, 2013, 10:02:45 AM6/13/13
to sca...@googlegroups.com
Hi,
first thing I should say that i'm a very happy user of scalaxb, I'm using it for a couple of SOAP WS and works fine.
But I had this trouble, when I have both minOccurs=0 and nillable in xsd scalaxb fails to compile.. for example in this piece of xsd

 <complexType name="GetProviderResponse">
        <all>
            <element name="provider" minOccurs="0" type="pst:Provider" nillable="true"/>
        </all>
    </complexType>

i get this error:

value nilOption is not a member of scala.xml.Node
case node: scala.xml.Node => Right(mio.portaone.GetProviderResponse((node \ "provider").headOption map { _.nilOption map { scalaxb.fromXML[mio.Provider](_, scalaxb.ElemName(node) :: stack) }}))

removing nillable="true" from xsd works fine

cheers

Andrea

eugene yokota

unread,
Jun 13, 2013, 3:08:54 PM6/13/13
to sca...@googlegroups.com
Hi Andrea,

I'm glad to hear from happy scalaxb users :)

The case you reported sounds like a scalaxb bug.
Could you file it to github issues please, so you can track it when I fix it?

-eugene




Andrea

--
You received this message because you are subscribed to the Google Groups "scalaxb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaxb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages