[jboss-user] [JBossWS] - XMLSchema, WSDL and wsconsume tool

mleite do-not-reply at jboss.com
Fri Oct 5 10:02:25 EDT 2007


Hi,

i have created a WSDL file that is based on a XMLSchema file. 
In that XMLSchema file i have defined some rules related to 
simpleTypes, like that:

<xs:simpleType name="gender">
  |   <xs:restriction base="xs:string">
  |     <xs:enumeration value="M" />
  |     <xs:enumeration value="F" />
  |   </xs:restriction>
  | </xs:simpleType>
  | 

With this simpleType i have created a complexType, like that:

<xs:complexType name="customer">
  |   <xs:sequence>
  |     <xs:element name="name" type="xs:string" />
  |     <xs:element name="dateOfBirth" type="xs:date" />
  |     <xs:element name="gender" type="gender" />
  |   </xs:sequence>
  | </xs:complexType>
  | 


Thus, i use wsconsume tool to generate the classes based on that WSDL. 
It works fine, i package and deploy my app and it is successfully published on Jboss.

After deploy and publish my app, i need to use the wsconsume tool again to create the WS client. But, when i access the URL http://myhost:myport/appName/something?wsdl to see the WSDL on-line generated, the simpleType defined previously with restrictions doesn't appear correctly, i mean it doesn't appear with the restrictions defined on XMLSchema. In that WSDL i can see the complexType customer type defined, but the element "gender" is only a xs:string type without restrictions.

Is it like that or am i forgetting something?

________________________
Best regards,
Marcelo

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092009#4092009

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092009



More information about the jboss-user mailing list