Thanks to all who helped make Castor a very cool very useful tool, it is definitely going on my list of great technologies. Now on to my question.
I have just begun to work with castor and XML, I'm a little confused on how name spaces work with it. I would like to Unmarshall the following xml document:
<?xml version="1.0" encoding="UTF-8"?>
<job xmlns:gram="http://www.globus.org/namespaces/2004/10/gram/job"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<factoryEndpoint>
<wsa:Address>
https://balancedrock1.chpc.utah.edu:8443/wsrf/services/ManagedJobFactoryService
</wsa:Address>
<wsa:ReferenceProperties>
<gram:ResourceID>PBS</gram:ResourceID>
</wsa:ReferenceProperties>
</factoryEndpoint>
<executable>/bin/more</executable>
<stdin>${GLOBUS_USER_HOME}/stage_testing/blah.txt</stdin>
<stdout>${GLOBUS_USER_HOME}/blahtemp.out</stdout>
<stderr>${GLOBUS_USER_HOME}/blah.err</stderr>
<fileStageIn>
<transfer>
<sourceUrl>gsiftp://watchman.chpc.utah.edu:2811/uufs/chpc.utah.edu/common/home/rprice/stage_testing/blahsrc.txt</sourceUrl>
<destinationUrl>file:///${GLOBUS_USER_HOME}/stage_testing/blah.txt</destinationUrl>
</transfer>
</fileStageIn>
<fileStageOut>
<transfer>
<sourceUrl>file:///${GLOBUS_USER_HOME}/blahtemp.out</sourceUrl>
<destinationUrl>gsiftp://watchman.chpc.utah.edu:2811/uufs/chpc.utah.edu/common/home/rprice/stage_testing/blah.out</destinationUrl>
</transfer>
</fileStageOut>
<fileCleanUp>
<deletion>
<file>file:///${GLOBUS_USER_HOME}/test.out</file>
</deletion>
</fileCleanUp>
</job>
Can Castor unmarshall the document above? Is there any examples of working with Castor and namespaces?<job xmlns:gram="http://www.globus.org/namespaces/2004/10/gram/job"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<factoryEndpoint>
<wsa:Address>
https://balancedrock1.chpc.utah.edu:8443/wsrf/services/ManagedJobFactoryService
</wsa:Address>
<wsa:ReferenceProperties>
<gram:ResourceID>PBS</gram:ResourceID>
</wsa:ReferenceProperties>
</factoryEndpoint>
<executable>/bin/more</executable>
<stdin>${GLOBUS_USER_HOME}/stage_testing/blah.txt</stdin>
<stdout>${GLOBUS_USER_HOME}/blahtemp.out</stdout>
<stderr>${GLOBUS_USER_HOME}/blah.err</stderr>
<fileStageIn>
<transfer>
<sourceUrl>gsiftp://watchman.chpc.utah.edu:2811/uufs/chpc.utah.edu/common/home/rprice/stage_testing/blahsrc.txt</sourceUrl>
<destinationUrl>file:///${GLOBUS_USER_HOME}/stage_testing/blah.txt</destinationUrl>
</transfer>
</fileStageIn>
<fileStageOut>
<transfer>
<sourceUrl>file:///${GLOBUS_USER_HOME}/blahtemp.out</sourceUrl>
<destinationUrl>gsiftp://watchman.chpc.utah.edu:2811/uufs/chpc.utah.edu/common/home/rprice/stage_testing/blah.out</destinationUrl>
</transfer>
</fileStageOut>
<fileCleanUp>
<deletion>
<file>file:///${GLOBUS_USER_HOME}/test.out</file>
</deletion>
</fileCleanUp>
</job>
Best Regards,
/ron

