-
1. Re: wsconsume stopped generating an enum when the size went over 255
asoldano Nov 10, 2011 5:09 AM (in response to barryaz1)It's a JAXB issue. Have a look at this thread http://java.net/projects/jaxb/lists/users/archive/2009-11/message/0 for further info and workarounds.
-
2. Re: wsconsume stopped generating an enum when the size went over 255
barryaz1 Nov 10, 2011 12:07 PM (in response to asoldano)Alessio,
Thank you! This appears to have solved my problem.
I am now seeing a warning in Eclipse:
WS-I: (BP2122) A wsdl:types element contained a data type definition that is not an XML schema definition
I suppose that the warning is valid, given that I have inserted a jaxb element inside the schema element. Did I position this incorrectly? Here is the top of the WSDL file:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="FacadeService" targetNamespace="http://www.medtronic.com/mes" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.medtronic.com/mes" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<!-- B.Schader 10-Nov-2011 begin modification per "http://java.net/projects/jaxb/lists/users/archive/2009-11/message/25" to remove the 256-element limit on an enum (for ErrorCode) -->
<xs:schema targetNamespace="http://www.medtronic.com/mes" version="1.0"
xmlns:tns="http://www.medtronic.com/mes" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0">
<xs:annotation>
<xs:appinfo>
<jaxb:globalBindings typesafeEnumMaxMembers="1000"/>
</xs:appinfo>
</xs:annotation>
<!-- B.Schader 10-Nov-2011 end modification -->
<xs:element name="BusinessException" type="tns:BusinessException"/>
... etc ...Thanks again,
Barry