This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes wsdl2java ok but wsimport fails on missing schema component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java ok but wsimport fails on missing schema component" Watch "wsdl2java ok but wsimport fails on missing schema component" New topic
Author

wsdl2java ok but wsimport fails on missing schema component

Chris Riffle
Greenhorn

Joined: Dec 30, 2005
Posts: 18
Hi - I have a primary front wsdl that imports another wsdl. They both reference 2 xsd's. They are all local in the same directory.

I'm able to generate skeleton/stubs from them with Axis2 wsdl2java, but not with the jdk's wsimport - which I need to use.

wsimport fails with:

[ERROR] SCD "wsa:EndpointReference" didnt match any schema component
line 8 of http://dummy.pseudo-schema#schema2


My schema1.xsd file contains the somewhat relevant element:

<xs:element minOccurs="0" maxOccurs="1" name="MyElementName" xmlns:q1="http://www.w3.org/2005/08/addressing" type="q1:EndpointReferenceType" />

My schema2.xsd file contains

<xs:complexType name="EndpointReferenceType">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="MyElement1" type="tns:AttributedURIType" />
<xs:element minOccurs="0" maxOccurs="1" name="MyElement2" type="tns:ReferenceParametersType" />
<xs:any minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:anyAttribute />
</xs:complexType>



My 2 wsdls don't mention this EndpointReferenceType

I'm using the jdk: 1.7.0_09-b05 on Windows 7

Any chance a genius could provide a tip to resolve it? Or I might can provide more info.

I'm not sure what the error message is indicating. I think it is saying a standard must be followed that requires a wsa:EndpointReference element to be specified,... so I'm wondering why it is fine with axis2.

I unfortunately cannot include the complete files.

Thank you



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsdl2java ok but wsimport fails on missing schema component