Jyotishman Pathak wrote:

Thanks Sal. At least I am able to complie my code using Eclipse now and trying to further understand the "filesystem" example. And FYI, the Java doc link [1] in the Apache website is not working.

Regards,
Jyoti

[1] http://ws.apache.org/wsrf/apidocs/index.html



On 9/14/05, *Campana Jr., Salvatore J* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Jyoti,
The distibution also included a prebuilt jar in the dists
    examples/filesystem/lib directory...
but yes the .xmlbeans dir contails the one generated when running
    Wsdl2Java...Our Ant build script includes this...You may want to
    use that as your point of reference for setting up your IDE....
As for packagename Xmlbeans (and Wsdl2Java) generates this based
    off of the namespace of the schema (Wsdl2Java may base it on the
    namespace in the WSDL file actually.)...So if you want something
    different then change your namespace...Remember there are two
    things generating artifacts, XmlBeans and our Wsdl2Java, we
    attempt to keep them seperate by generating them into different
    directories....
-Sal

    ------------------------------------------------------------------------
    *From:* Jyotishman Pathak [mailto:[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>]
    *Sent:* Wednesday, September 14, 2005 11:55 AM
    *To:* Campana Jr., Salvatore J
    *Cc:* wsrf-user@ws.apache.org <mailto:wsrf-user@ws.apache.org>;
    Jyotishman Pathak
    *Subject:* Re: Question about FilesystemResource

    Hmmm..I guess I made a mistake..The you were perhaps talking about
    the lib diretory under
    "/my_working_directory/generated/.xmlbeans/"...Didn't notice this
    hidden directory beforehand....Let me see if this works now :)

    Regards,
    Jyoti


    On 9/14/05, *Jyotishman Pathak* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hi Sal,

        Thanks for your reply. I can see the jar file under
        $CATALINA_HOME/webapps/wsrf/WEB-INF/lib. So, I need to include
        this jar in my Java build path to actually compile all the
        code generated after running WSDL2Java (or the ant script).
        Right ?

        What I am wondering is: how do I change the package
        name/structure of XmlBeans-generated classes? As of now, they
        are in the "org.apache.ws.resource.example.filesystem"
        package. Is there something in the build.xml that needs to be
        modified ? Or I have to look at the WSDL file?

        Kindly suggest.

        Regards,
        Jyoti






        On 9/14/05, *Campana Jr., Salvatore J* <[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>> wrote:

            Jyoti,
The classes you are asking about are XmlBeans-generated
            classses and are in the FileSystem-xbeans.jar under the
            lib directory....
If you walk through the tutorial in the docs you will see
            that they are generated when you run our Wsdl2Java on the
            Filesystem.wsdl file.  Basically anything defined in the
            schema portion of your wsdl will be run through XmlBeans
            and a jar will be created containing the beans for the
            types....
-Sal

            
------------------------------------------------------------------------
            *From:* Jyotishman Pathak [mailto:[EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]>]
            *Sent:* Wednesday, September 14, 2005 1:09 AM
            *To:* wsrf-user@ws.apache.org <mailto:wsrf-user@ws.apache.org>
            *Cc: * Jyotishman Pathak
            *Subject:* Question about FilesystemResource

            Hi,

            I am a trying to learn/understand the Apache
            implementation of WSRF specs. In doing so, your sample
            example (filesystem), has been quite helpful. However, I
            have 2 small (and perhaps trivial) questions:

            1.) In AbstractFilesystemResource class, there is a method
            init(), which is as follows:

             public void init()
                {
org.apache.ws.resource.example.filesystem.FileSystemPropertiesDocument
            propsDoc =
            
org.apache.ws.resource.example.filesystem.FileSystemPropertiesDocument.Factory.newInstance();

                    m_propSet = new
            org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet(
            propsDoc );

            .....
            .... [snip]
            }

            Where is this FileSystemPropertiesDocument class? Am I
            suppose to write it? If so, how ? I understand it is the
            Java representation of the ResourceProperties document.

            2.) In FilesystemResource class, there is a method init(),
            which is as follows:

                  /**
                 * Initializes this resource's state (properties, etc.).
                 */
                public void init()
                {
                     super.init();
m_filesystem = new
            example.filesystem.backend.UnixFileSystem( (String)getID()
            );  // create a mock filesystem object
/*
                     * The resource property set which contains all of
            resource properties that were defined in the WSDL.
                     */
org.apache.ws.resource.properties.ResourcePropertySet
            resourcePropertySet = getResourcePropertySet();
                    org.apache.ws.resource.properties.ResourceProperty
            resourceProperty = null;
try
                    {
                        /*
                         * Initialize each of our properties by
            calling resourceProperty.add(propElem) and/or
            resourceProperty.setCallback(callback)...
                         */
                        resourceProperty = resourcePropertySet.get(
            FilesystemPropertyQNames.DEVICESPECIALFILE );
                        DeviceSpecialFileDocument deviceDocXBean =
            DeviceSpecialFileDocument.Factory.newInstance();
                        deviceDocXBean.setDeviceSpecialFile(
            m_filesystem.getDeviceSpecialFile() );
                        resourceProperty.add( deviceDocXBean );

                      .... .... [snip]

                }

            }

            Again, where is the DeviceSpecialFileDocument class? I do
            understand this class corresponds to one of the resource
            properties exposed. But, am I supposed to code this class?
            If so, how?

            Please let me know your thoughts/comments.

            Regards,
            Jyoti







Good Catch on the Api Docs!! We hadn't noticed that and it is a bug in out maven.xml files across the three projects.. ( I'm going to need to have a word with our QA dept ;-) )

.I will fix this, however it will take a bit to update on the websites since they are mirrored....

Thanks again!!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to