Hi
It looks your use cases might be covered in the Geo-Annotation sample under Mashup samples in http://localhost:8080/presto/dev/
Thanks,
Satya
dev/jackbe.
Hi
It looks your use cases might be covered in the Geo-Annotation sample under Mashup samples in http://localhost:8080/presto/dev/
Thanks,
Satya
dev/jackbe.
I'm starting to develop a mashup that uses web clipping, but I am having trouble building a url for a direct invoke. I believe the problem is with the & in the url, which I've replaced with the special characters &
Here is a snippet of my emml and the errors I receive:
<mashup xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jackbe.com/2008-03-01/EMMLSchema/ ../src/schemas/EMMLSpec.xsd"
xmlns="http://www.jackbe.com/2008-03-01/EMMLSchema"
xmlns:macro="http://www.jackbe.com/2008-03-01/EMMLMacro"
name = "addressSearch">
<output name="result" type="document"/>
<variables>
<variable name="latVal" type="string" default="37.451" />
<variable name="lngVal" type="string" default="-122.18" />
<variable name="url1" type="string" default="http://ws.geonames.org/findNearestAddress?lat="/>
<variable name="url2" type="string" default="&lng="/>
</variables>
<assign outputvariable="url" fromexpr="concat($url1, $latVal, $url2, $lngVal)"/>
<display message="URL: " expr="$url"/>
<!-- Invoke #1 -->
<!-- <template expr="http://ws.geonames.org/findNearestAddress?lat={$latVal}&lng={$lngVal}" outputvariable="result" />-->
<!-- Invoke #2 -->
<!-- <directinvoke endpoint="$url" method="GET" outputvariable="result"/>-->
<!-- Invoke #3 -->
<directinvoke endpoint="http://ws.geonames.org/findNearestAddress?lat=37.451&lng=-122.18" method="GET" outputvariable="result"/>
</mashup>
Invoke #1 produces this error:
-----------
Error execution Mashup Script : XQuery syntax error in #...{$latVal}&lng={$lngVal}</root>#:
No closing ';' found for entity or character reference
2009-07-16 08:50:05,706 ERROR [com.jackbe.jbp.jems.moe.cli.CliExecuteRemote] - <Error execution Mashup Script : XQuery syntax error in #...{$latVal}&lng={$lngVal}</root>#:
No closing ';' found for entity or character reference>
java.lang.Exception: Error execution Mashup Script : XQuery syntax error in #...{$latVal}&lng={$lngVal}</root>#:
No closing ';' found for entity or character reference
at com.jackbe.jbp.jems.moe.cli.CliCommonUtils.executePrestoClientRequest(CliCommonUtils.java:95)
at com.jackbe.jbp.jems.moe.cli.CliExecuteRemote.executeScript(CliExecuteRemote.java:67)
at com.jackbe.jbp.jems.moe.cli.CliExecuteRemote.executeScript(CliExecuteRemote.java:45)
at com.jackbe.jbp.jems.moe.cli.CliExecuteBase.execute(CliExecuteBase.java:84)
at com.jackbe.jbp.jems.moe.cli.CliExecuteRemote.main(CliExecuteRemote.java:37)
Invoke #2 produces this error:
-----------
Error execution Mashup Script : null
2009-07-16 08:48:37,959 ERROR [com.jackbe.jbp.jems.moe.cli.CliExecuteRemote] - <Error execution Mashup Script : null>
java.lang.Exception: Error execution Mashup Script : null
at com.jackbe.jbp.jems.moe.cli.CliCommonUtils.executePrestoClientRequest(CliCommonUtils.java:95)
at com.jackbe.jbp.jems.moe.cli.CliExecuteRemote.executeScript(CliExecuteRemote.java:67)
at com.jackbe.jbp.jems.moe.cli.CliExecuteRemote.executeScript(CliExecuteRemote.java:45)
at com.jackbe.jbp.jems.moe.cli.CliExecuteBase.execute(CliExecuteBase.java:84)
at com.jackbe.jbp.jems.moe.cli.CliExecuteRemote.main(CliExecuteRemote.java:37)
Invoke #3 works correctly, but doesn't allow me to set parameter values within the url.
Is there a better way to build these urls?