JBoss Community

Re: wsconsume stopped generating an enum when the size went over 255

created by Barry Schader in JBoss Web Services - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community