Hi all,
I have an existing .xsd that I reference from a wsdl which contains a
union. This
seems to cause issues when I use wsimport (jaxws-maven-plugin).
I get the following error:
[ERROR] undefined simple type 'tSIP_URL'
line 15 of
file:/D:/tools/p4/cc/src/product/service/subscriber_store/providers/spy
/soap/ws/src/main/resources/shdata_part.xsd
[ERROR] undefined simple type 'tTEL_URL'
line 15 of
file:/D:/tools/p4/cc/src/product/service/subscriber_store/providers/spy
/soap/ws/src/main/resources/shdata_part.xsd</pre>
This is what the .xsd look like, or at least the part causing the
issue:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:listing3"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="
http://www.w3.org/2001/XMLSchema"/>
<xsd:simpleType name="tSIP_URL" final="list restriction">
<xsd:restriction base="xsd:anyURI"/>
</xsd:simpleType>
<xsd:simpleType name="tTEL_URL" final="list restriction">
<xsd:restriction base="xsd:anyURI"/>
</xsd:simpleType>
<xsd:simpleType name="tIMSPublicIdentity" final="#all">
<xsd:union memberTypes="tSIP_URL tTEL_URL"/>
</xsd:simpleType>
</xsd:schema>
Any pointers on how to get this to work ?
/Niklas