[jboss-user] [JBossWS] - WSDL Question

jd_cowan do-not-reply at jboss.com
Thu Jan 11 10:02:12 EST 2007


I have a couple of web services that I have deployed, one in particular is fairly complex and produces a wsdl that for some reason describes java elements such as:
"Constructor"
"Field"
"ProtectionDomain"
"signerCertPath"
"ClassLoader"
"Class"
"Package"

as well as many other java objects.

Here is an example schema from my wsdl:

<schema elementFormDefault="qualified" targetNamespace="http://lang.java/jaws">
  | <import namespace="http://reflect.lang.java/jaws"/>
  | <import namespace="http://cert.security.java/jaws"/>
  | <import namespace="http://annotation.lang.java/jaws"/>
  | <import namespace="http://www.w3.org/2001/XMLSchema"/>
  | <import namespace="http://core.abacus.yale.edu/jaws"/>
  | <import namespace="http://security.java/jaws"/>
  | <import namespace="http://net.java/jaws"/>
  | <import namespace="http://util.java/jaws"/>
  | -
  | 	<complexType name="Class">
  | -
  | 	<sequence>
  | <element name="annotation" type="boolean"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="annotations" nillable="true" type="ns3:Annotation"/>
  | <element name="anonymousClass" type="boolean"/>
  | <element name="array" type="boolean"/>
  | <element name="canonicalName" nillable="true" type="string"/>
  | <element name="classLoader" nillable="true" type="tns:ClassLoader"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="classes" nillable="true" type="tns:Class"/>
  | <element name="componentType" nillable="true" type="tns:Class"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="constructors" nillable="true" type="ns4:Constructor"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="declaredAnnotations" nillable="true" type="ns3:Annotation"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="declaredClasses" nillable="true" type="tns:Class"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="declaredConstructors" nillable="true" type="ns4:Constructor"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="declaredFields" nillable="true" type="ns4:Field"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="declaredMethods" nillable="true" type="ns4:Method"/>
  | <element name="declaringClass" nillable="true" type="tns:Class"/>
  | <element name="enclosingClass" nillable="true" type="tns:Class"/>
  | <element name="enclosingConstructor" nillable="true" type="ns4:Constructor"/>
  | <element name="enclosingMethod" nillable="true" type="ns4:Method"/>
  | <element name="enum" type="boolean"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="enumConstants" nillable="true" type="tns:Object"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="fields" nillable="true" type="ns4:Field"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="genericInterfaces" nillable="true" type="ns4:Type"/>
  | <element name="genericSuperclass" nillable="true" type="ns4:Type"/>
  | <element name="interface" type="boolean"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="interfaces" nillable="true" type="tns:Class"/>
  | <element name="localClass" type="boolean"/>
  | <element name="memberClass" type="boolean"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="methods" nillable="true" type="ns4:Method"/>
  | <element name="modifiers" type="int"/>
  | <element name="name" nillable="true" type="string"/>
  | <element name="package" nillable="true" type="tns:Package"/>
  | <element name="primitive" type="boolean"/>
  | <element name="protectionDomain" nillable="true" type="ns5:ProtectionDomain"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="signers" nillable="true" type="tns:Object"/>
  | <element name="simpleName" nillable="true" type="string"/>
  | <element name="superclass" nillable="true" type="tns:Class"/>
  | <element name="synthetic" type="boolean"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="typeParameters" nillable="true" type="ns4:TypeVariable"/>
  | </sequence>
  | </complexType>
  | -
  | 	<complexType name="ClassLoader">
  | -
  | 	<sequence>
  | <element name="defaultAssertionStatus" type="boolean"/>
  | <element name="parent" nillable="true" type="tns:ClassLoader"/>
  | </sequence>
  | </complexType>
  | -
  | 	<complexType name="Object">
  | -
  | 	<sequence>
  | <element name="class" nillable="true" type="tns:Class"/>
  | </sequence>
  | </complexType>
  | -
  | 	<complexType name="Package">
  | -
  | 	<sequence>
  | <element maxOccurs="unbounded" minOccurs="0" name="annotations" nillable="true" type="ns3:Annotation"/>
  | <element maxOccurs="unbounded" minOccurs="0" name="declaredAnnotations" nillable="true" type="ns3:Annotation"/>
  | <element name="implementationTitle" nillable="true" type="string"/>
  | <element name="implementationVendor" nillable="true" type="string"/>
  | <element name="implementationVersion" nillable="true" type="string"/>
  | <element name="name" nillable="true" type="string"/>
  | <element name="sealed" type="boolean"/>
  | <element name="specificationTitle" nillable="true" type="string"/>
  | <element name="specificationVendor" nillable="true" type="string"/>
  | <element name="specificationVersion" nillable="true" type="string"/>
  | </sequence>
  | </complexType>
  | </schema>
  | 

Why does it do this for this particular service and not the others?

How can I prevent this behavior?

Any suggestions would be appreciated.

Thanks in advance,

jay

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

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



More information about the jboss-user mailing list