Announcement Announcement Module
Collapse
No announcement yet.
marshalling a numeric string Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • marshalling a numeric string

    Hi everybody,

    it looks im having a problem marshalling a raw string that starts and contains numeric characters only.

    my xsd :
    HTML Code:
    <xsd:element name="fooRequest">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="code" type="xsd:string" minOccurs="1" />
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
    stacktrace :
    >JAXB marshalling exception: null; nested exception is javax.xml.bind.MarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'ns2:fooRequest' is not complete. One of '{"http://schema":code}' is expected.]
    • <code>1</code> fails
    • <code> 1</code> works
    • <code>1x</code> works

    Any idea ? Or is it truly impossible
Working...
X