[jboss-user] [JBoss Web Services] - Re: wsconsume stopped generating an enum when the size went over 255

Barry Schader do-not-reply at jboss.com
Thu Nov 10 12:07:37 EST 2011


Barry Schader [http://community.jboss.org/people/barryaz1] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/635983#635983

--------------------------------------------------------------
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 http://www.medtronic.com/mes" xmlns=" http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/" xmlns:tns=" http://www.medtronic.com/mes http://www.medtronic.com/mes" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/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 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 http://www.medtronic.com/mes" version="1.0" 
     xmlns:tns=" http://www.medtronic.com/mes http://www.medtronic.com/mes" xmlns:xs=" http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema"
     xmlns:jaxb=" http://java.sun.com/xml/ns/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
[http://community.jboss.org/message/635983#635983]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111110/9bc7f1a6/attachment.html 


More information about the jboss-user mailing list