I shall elaborate the fuctionality. We have a wsdl file from which we extract
the schema. We make use of the castor for this purpose the string schema
content provided as input to the schemaReader is for example,
<schema targetNamespace="http://www.xyz.com";
xmlns="http://www.w3.org/2001/XMLSchema";>
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/";
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/> 
        <complexType name="ClientInformation">
        <sequence>
          <element name="detailMessage" nillable="true" type="xsd:string" /> 
          <element name="status" type="xsd:int" /> 
          </sequence>
          </complexType>
 </schema>

It has import statement with the URI
"http://schemas.xmlsoap.org/soap/encoding/";, entity resolver will provide a
equivalent local input source for this external URI.

Problem is the resolveEntity() method of the EntityResolver is never
invoked.

I tried changing the XML Parser from xerces to Piccolo of xmlbeans. Still
the same error occurs.

When proxy is on, the schema object is constructed successfully.

Can you please provide solution to make EntityResolver be recognized.

Is there any possibility to disable the import of external contents when
creating a schema

I am making use of the castor version 1.1 (castor-xml.jar)

-- 
View this message in context: 
http://www.nabble.com/Setting-Entity-Resolver-for-castor-SchemaReader-tf4068655.html#a11573137
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to