samedi 9 mai 2015

Cannot resolve definition within WSDL in eclipse, possible eclipse import error?

After initially loading a completed project into eclipse for a change I'm getting an error on 3 components within a contained WSDL.

Error

"src-resolve: Cannot resolve the name 'tns:AEExceptionBO' to a(n) 'type >definition' component."


The three elements
*submitCallFault1_submitCallFault
*getOutageStatusFault1_getOutageStatusFault
*getOutageCircuitFault1_getOutageCircuitFault

As far as I can tell the import that currently exists (line 8 of wsdl) should load the xsd file correctly, no other errors exist in the project. Does anyone know why eclipse isn't able to process this wsdl?

WSDL (relevant parts)

<wsdl:definitions name="AEAdmsAecServiceDelegate"
    targetNamespace="http://ift.tt/1KToYXY"
    xmlns:tns="http://ift.tt/1KToYXY" 
    xmlns:wsdl="http://ift.tt/LcBaVt"
    xmlns:xsd="http://ift.tt/tphNwY">
    <wsdl:types>
        <xsd:schema targetNamespace="http://ift.tt/1KToYXY">
            <xsd:import namespace="http://ift.tt/1KToYY0"
                schemaLocation="wsdl/AEAdmsAecService/AEExceptionBO.xsd" />
            <xsd:element name="submitCallFault1_submitCallFault"
                nillable="true" type="bons0:AEExceptionBO" />
            <xsd:element name="getOutageStatusFault1_getOutageStatusFault"
                nillable="true" type="bons0:AEExceptionBO" />
            <xsd:element name="getOutageCircuitFault1_getOutageCircuitFault"
                nillable="true" type="bons0:AEExceptionBO" />
         </xsd:schema targetNamespace>

XSD (in a subdirectory, imported by the WSDL)

<xsd:schema targetNamespace="http://ift.tt/1KToYY0"
    xmlns:bons0="http://ift.tt/1KToYY0"
    xmlns:xsd="http://ift.tt/tphNwY">
    <xsd:include schemaLocation="NameValueBO.xsd" />
    <xsd:complexType name="AEExceptionBO">
        <xsd:sequence>
            <xsd:element minOccurs="1" name="appName" type="xsd:string" />
            <xsd:element minOccurs="0" name="moduleName" type="xsd:string" />
            <xsd:element minOccurs="1" name="errorCode" type="xsd:string">
            </xsd:element>
            <xsd:element minOccurs="1" name="message" type="xsd:string" />
            <xsd:element minOccurs="1" name="exceptionTime" type="xsd:dateTime">
            </xsd:element>
            <xsd:element maxOccurs="unbounded" minOccurs="0" name="nameValues"
                type="bons0:NameValueBO">
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>

Irrelevant parts of the WSDL and other loaded xsd files have been omitted.

Aucun commentaire:

Enregistrer un commentaire