ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ratha <rat...@wso2.com>
Subject Re: The scheme is not conformant in ODE
Date Sun, 14 Dec 2008 16:41:11 GMT
Hi all;
My schema is as follows,

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    targetNamespace="http://www.example.org/elements.xsd"
    xmlns:tns="http://www.example.org/elements.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
   
 <xs:element name="LoanServiceRequest"  type="tns:LoanServiceRequest"/>
    <xs:element name="RiskAssessorResponse"    
type="tns:RiskAssessorResponse"/>
    <xs:element name="LoanApproverResponse"        
type="tns:LoanApprovalResponse" />

    <xs:complexType name="LoanServiceRequest">
        <xs:sequence>
            <xs:element name="FirstName" type="xs:string" />
            <xs:element name="LastName">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:minLength value="1"></xs:minLength>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="Amount">
                <xs:simpleType>
                    <xs:restriction base="xs:int">
                        <xs:minExclusive value="1"></xs:minExclusive>
                        <xs:maxExclusive value="1000000"></xs:maxExclusive>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            </xs:sequence>
    </xs:complexType>

   

    <xs:complexType name="RiskAssessorResponse">
        <xs:sequence>
            <xs:element name="riskAssessment" type="tns:RiskAssessment" />
            <xs:any minOccurs="0" maxOccurs="unbounded" 
namespace="##other"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="LoanApprovalResponse">
        <xs:sequence>
            <xs:element name="responseToLoanRequest"
                type="tns:ResponseValue" />
            <xs:element name="responseDescription" type="xs:string"
                minOccurs="0" />
                    </xs:sequence>
    </xs:complexType>

   
    <xs:simpleType name="RiskAssessment">
        <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="low" />
            <xs:enumeration value="high" />
             <xs:enumeration value="review" />
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="ResponseValue">
        <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="approved" />
            <xs:enumeration value="declined" />
            <xs:enumeration value="underReview" />
        </xs:restriction>
    </xs:simpleType>

   

</xs:schema>

Thanks,
-Ratha
ratha wrote:
> Hi all,
>
> When i try a  sample bpel process(It contains xml schema file), it 
> gives following  exception[1]. But when i send soap messages it works 
> fine(using SOAPUI).
> can somebody tell me why this occurs?
>
> Thanks.
> -Ratha.
>
> *[1]com.sun.org.apache.xalan.internal.xsltc.TransletException: 
> javax.xml.transform.TransformerException: 
> com.sun.org.apache.xml.internal.utils.URI$MalformedURIException: The 
> scheme is not conformant.*
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.176 / Virus Database: 270.9.17/1847 - Release Date: 12/13/2008 4:56 PM
>
>   


Mime
View raw message