Hello Ralf, I shall give you the details.
I have a schema file with <import> element <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> The namespace in the import element is an external URI. I have a equivalent xsd for the same in local. I would like to map the same using entityresolver as shown below. String content = new String( byteArr ); InputSource inputSource = new InputSource( new StringReader( content )); // create the schema reader SchemaReader schemaReader = new SchemaReader( inputSource ); schemaReader.setCacheIncludedSchemas( true ); schemaReader.setValidation( true ); XMLCatalogEntityResolver resolver = new XMLCatalogEntityResolver(); schemaReader.setEntityResolver( resolver ); // read the schema from the source Schema schema = schemaReader.read(); I have the schema content as a byte array and need to read this schema using schemareader. The entity resolver method is not called while reading the schema for the import element. Thanks, Anushajv Ralf Joachim-2 wrote: > > Hi Anushajv, > > can you please explain a bit what you want to achive with SchemaReader > and you are missing. According to the subject I guess you like to see a > setEntityResolver() method. > > Let's see if I am able to help you with a bit more information. > > Regards > Ralf > > > Anushajv schrieb: >> Hello Werner >> >> Do you have time now to give some inputs for this issue? >> >> Thanks, >> Anushajv >> >> >> >> Werner Guttmann wrote: >> >>>Sorry for taking so much time, but please bear with us, as there's >>>currently a lot of things going on that require some of our attention. >>> >>>Werner >>> >>>Anushajv wrote: >>> >>>>Hai, >>>> >>>>Can you please tell whether this is an issue with Castor. >>>> >>>>Is there any workaround for this issue >>>> >>>>Expecting a feedback. >>>> >>>>Thanks, >>>>Anushajv >>> >>>--------------------------------------------------------------------- >>>To unsubscribe from this list please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > -- View this message in context: http://www.nabble.com/Setting-Entity-Resolver-for-castor-SchemaReader-tf4068655.html#a12028476 Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

