Hi,
  Yes it is possible. You can do something like this :
        File schemaFile;
        InputStream xsdFileStream = new FileInputStream(schemaFile);
        XmlOptions options = new XmlOptions();
        options.setCompileDownloadUrls();
        options.setEntityResolver(new MyEntityResolver(schemaFile.getParent
()));
        SchemaTypeLoader stl = XmlBeans.loadXsd(new XmlObject[]{
XmlObject.Factory.parse(xsdFileStream)}, options);

        Using this "stl" variable you can iterate the entire schema
structure.

Regards,
Srinath/


On 10/8/07, YelloY <[EMAIL PROTECTED]> wrote:
>
>
> Hello.
> Perhaps my question is little bit newbie, but so far I couldn't find any
> answer...
>
> Short background:
> I'm going to write some kind of WebService client. The trick is, that
> during
> developing I do not know the strucrure of WebServices it will be dealing
> with. That's why I'm going to use Dynamic Invocation Interface here. I've
> found an interesting document with nice source code example
> (http://www.ibm.com/developerworks/webservices/library/ws-udax.html). It
> works fine for me, till the point concerning obtaining the parameter
> objects
> for invocation. The wsdl I'm given contains nested schemas (*.xsd) imports
> that describe an complex object. I do have problems with obtaining it, and
> thus creating an input form for the user.
>
> Acctual question:
> Does XmlBeans provide a functionality to parse xsd files that describes
> complex objects in an dynamic way? I'm not interested with class
> generation
> and compilation - I just want to get methods and types provided, then
> generate input form for the user and finaly, when user press submit
> button,
> I want to pass all those parameters to the WebService. I need to do this
> on
> the fly - perhaps there will be WebServices invoked only once, or
> subsequent
> invokations will differ a bit, so creating *.class files is not the way to
> reach my goal.
>
> Is my question clear enough? I'd really appreciate any hint.
> --
> View this message in context:
> http://www.nabble.com/XML-%3C%3D%3E-JAVA-in-real-time-tf4584808.html#a13087600
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to