Joe; Variable bindings are only good for a session - i.e. the time a
script is running.  If you call a script (via a Web service URL), Live
(whether Personal Server or a Live server) will open a session, run
the script, then close the session.  It's a Rest service, so it is
stateless.  The error message is indicating that the ?FileName
variable is not bound.

I'm not clear what exactly is working in Composer, but hopefully that
gives you an idea of what to expect with Web services.

If this is to be executed in separate service calls, I don't see any
way to do this other than setting a value in a model imported by each
of the scripts and selected out to use the value from the first run.

-- Scott

On Dec 8, 11:12 am, Joseph Shea <[email protected]> wrote:
> Hello all. I am trying to get a second SparqlMotion script to run
> after a first one is called, and am getting mixed results. To do this,
> I had the second one return XML, while the first one uses the
> ImportXMLFromURL. This works in debug mode in Composer, but when I try
> to call this through localhost, I get the following error in my
> browser.
>
> <results message="Only literals or resources can be inserted into
> template" recoverableError="true"/>
>
> The URL that the ImportXMLFromURL calls is
>
> http://localhost:8083/tbl/actions?action=sparqlmotion&id=RunInference...{?FileName}
>
> {?FileName} is the parameter taken in from the first script, that is
> also needed for the second.

--

You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en.


Reply via email to