From: <eh...@ba...> - 2009-07-29 17:11:00
|
Hi I am attempting to use GridSAM within another program and am calling the methods contained with the gridsam jars in omii-server-3.4.4. I have extracted these jars into the class path of the program that I am writing. Now when I attempt to call these classes and pass a job to GridSAM I am getting an error: javax.xml.rpc.ServiceException: No jsdl:JobDefinition element can be found in the request. Please check your input and the namespace declarations. To create the JobDefinitionDocument object that is passed to submitJob() I am using the parse(String) Factory method and passing in: <jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl"> <jsdl:JobDescription> <jsdl:Application>along side my own ( <jsdl-posix:POSIXApplication xmlns:jsdl-posix="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix"> <jsdl-posix:Executable>/bin/echo</jsdl-posix:Executable> <jsdl-posix:Argument>hello world</jsdl-posix:Argument> </jsdl-posix:POSIXApplication> </jsdl:Application> </jsdl:JobDescription> </jsdl:JobDefinition> It appears that the JSDL is all correct. After tracing the calls back it appears that the error is coming from package org.icenigrid.gridsam.webservice.common.GridSAMService.submitJob(SubmitJobDocument pRequest) After running the code run in this package by manually recreating it, it will not fail the 'if' clause and throw the exception (it sees that there is one JobDefinition element in the JSDL), but the code within GridSAMService will still throw the exception. Does anyone have any steps that can solve this problem? Many Thanks Elliott Hill |