Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

wsdl2java ok but wsimport fails on missing schema component  RSS feed

Chris Riffle
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="" type="q1:EndpointReferenceType" />

My schema2.xsd file contains

<xs:complexType name="EndpointReferenceType">
<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:anyAttribute />

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
Boost this thread!