Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl2java ok but wsimport fails on missing schema component

 
Chris Riffle
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic