Hi,

I am using the below schema in one of my WSDL, I didn't find anything wrong
in the schema but not sure why Xerces is complaining.

        <xs:schema xmlns:ax223="http://example.com/loan";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://example.com/xsd";>
            <xs:import namespace="http://example.com/loan"/>
            <xs:complexType name="Input">
                <xs:sequence>
                    <xs:element minOccurs="0" name="loanDecision"
nillable="true" type="ax223:LoanDecision"/>
                    <xs:element minOccurs="0" name="loanInformation"
nillable="true" type="ax223:LoanInformation"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="Output">
                <xs:sequence>
                    <xs:element minOccurs="0" name="loanDecision"
nillable="true" type="ax223:LoanDecision"/>
                    <xs:element minOccurs="0" name="loanInformation"
nillable="true" type="ax223:LoanInformation"/>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>
                
                <xs:schema attributeFormDefault="qualified" 
elementFormDefault="qualified"
targetNamespace="http://example.com/loan";>
            <xs:complexType name="LoanDecision">
                <xs:sequence>
                    <xs:element minOccurs="0" name="decision"
nillable="true" type="xs:string"/>
                    <xs:element minOccurs="0" name="paymentDuration"
nillable="true" type="xs:int"/>
                    <xs:element minOccurs="0" name="rate" nillable="true"
type="xs:double"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="LoanInformation">
                <xs:sequence>
                    <xs:element minOccurs="0" name="amountNeeded"
nillable="true" type="xs:int"/>
                    <xs:element minOccurs="0" name="currentIncome"
nillable="true" type="xs:int"/>
                    <xs:element minOccurs="0" name="privateInput"
nillable="true" type="xs:int"/>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>

And I am getting below message.

src-import.3.1: The namespace attribute, 'http://example.com/loan', of an
<import> element information item must be identical to the targetNamespace
attribute, 'http://example.com/xsd', of the imported document.

What could be reason for this message and why?

Thanks.
-- 
View this message in context: 
http://old.nabble.com/src-import.3.1-error-message-tp33507809p33507809.html
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to