Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

wscompile (jwsdp-1.5): not all classes of given wsdl are created

843833Aug 24 2006
I need to implement a client for an existing web service. from the web service provider, i have a wsdl and several xsd files. these files seem all right (neither eclipse nor netbeans complains). note that because of technical restrictions, I need to use the wscompile from JWSDP 1.5.

to generate the classes I use:
wscompile -verbose -f:searchschema -gen:client -keep -s ./output/source/ -d ./output/ ./config.xml
during the compile process, no error or warning messages are produced. still, parts of the elements/types defined in the xsd files don't have their java equivalent produced.

here is an example:
<xs:element name="PostalAddressEdifact">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="PostalAddressEdifactType">
					<xs:attribute name="addressType" type="AddressType" use="required"/>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>
wscompile does not produce PostalAdressEdifact.java. if I change the code above to (add an empty sequence to the extension):
<xs:element name="PostalAddressEdifact">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="PostalAddressEdifactType">
					<xs:sequence/>
					<xs:attribute name="addressType" type="AddressType" use="required"/>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>
wscomplile produces PostalAdressEdifact.java

Another example:
<xs:element name="PostalAddress" type="PostalAddressType"/>
even though the complex type PostalAddressType exists in the same xsd file, wscompile won't produce a java files, neither for PostalAddress, nor for PostalAddressType.

I went through a bunch of postings in this list; some people seam(ed) to have similar problems, but I did not find any decent answer to their posts.

Help, please. don't hesitate to ask back (for files, log etc.) if this could help you to help me.

Cheers, Dottore
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2006
Added on Aug 24 2006
0 comments
112 views