<div dir="ltr">As an alternative, if compiling the source isn't something you want to undertake, maybe Dan could package up a KAR file for you to import into your installed version of Kepler. Dan, do you think this would be feasible?<br>
<br>Matt<br><br><div class="gmail_quote">On Wed, Oct 15, 2008 at 8:59 AM, Daniel Crawl <span dir="ltr"><<a href="mailto:crawl@sdsc.edu">crawl@sdsc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Hi Jon,<br>
<br>
The nightly build is temporarily not being generated, so you<br>
will have to download and compile the source. The instructions<br>
for this can be found here:<br>
<br>
<a href="https://dev.kepler-project.org/developers/reference/downloading-and-building-the-kepler-source-code/" target="_blank">https://dev.kepler-project.org/developers/reference/downloading-and-building-the-kepler-source-code/</a><br>
<br>
Please let us know if you have any problems,<br>
<br>
--dan<br>
<br>
<br>
Jon Goodall wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hi Dan,<br>
<br>
Do I need to use the nightly build of Kepler to get the updated XPath actor? I'm having trouble running the attached workflow with the 1.0 Kepler version. <br>
Thanks,<br>
Jon<br>
<br></div><div><div></div><div class="Wj3C7c">
On Tue, Oct 14, 2008 at 6:41 PM, Daniel Crawl <<a href="mailto:crawl@sdsc.edu" target="_blank">crawl@sdsc.edu</a> <mailto:<a href="mailto:crawl@sdsc.edu" target="_blank">crawl@sdsc.edu</a>>> wrote:<br>
<br>
<br>
Hi Jon,<br>
<br>
I've updated the XPath actor with a new port that outputs<br>
attribute or text() data. Attached is a modified version<br>
of your workflow that uses this functionality.<br>
<br>
Let me know if you have questions,<br>
<br>
--dan<br>
<br>
<br>
Jon Goodall wrote:<br>
<br>
Hello,<br>
<br>
I'm trying to extract XML attributes from a web service in<br>
Kepler and<br>
could use some help. I've tried doing this a couple different<br>
ways.<br>
First, I tried the following xpath query:<br>
/timeSeriesResponse/timeSeries/values/value/@dateTime and the<br>
exception is ...<br>
<br>
ptolemy.kernel.util.IllegalActionException: XPath: node<br>
selected with<br>
XPath isn't an element.<br>
at org.sdm.spa.XPath.fire(XPath.java:167)<br>
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:398)<br>
at<br>
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:170)<br>
at<br>
ptolemy.actor.CompositeActor.fire(CompositeActor.java:400)<br>
at ptolemy.actor.Manager.iterate(Manager.java:688)<br>
at ptolemy.actor.Manager.execute(Manager.java:332)<br>
at ptolemy.actor.Manager.run(Manager.java:1071)<br>
at ptolemy.actor.Manager$3.run(Manager.java:1112)<br>
<br>
The xpath query /timeSeriesResponse/timeSeries/values/value<br>
works fine<br>
and gives this response ..<br>
<br>
send to channel 0: {<value dateTime="2000-01-01T00:00:00"<br>
qualifiers="A">483</value>, <value dateTime="2000-01-02T00:00:00"<br>
qualifiers="A">464</value> ...<br>
<br>
I've also tried using an XMLDisassembler actor to access the<br>
dateTime<br>
attributes, but no luck. I was able to get the values, but<br>
unable to<br>
get the dateTimes (I tried setting the port name to @dateTime<br>
and to<br>
dateTime). See attached workflow for details.<br>
<br>
One other thing to note is that this service I'm using can return<br>
either simple or complex types. Right now, I'm working with the<br>
simple type, which is a XML string. I tried using the complex web<br>
service actor, but still was unable to get at the dateTime<br>
attributes.<br>
If you want to try this yourself, the service is<br>
<a href="http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" target="_blank">http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL</a>.<br>
The<br>
method GetValues returns the XML string, the method<br>
GetValuesObject<br>
returns a complex type.<br>
<br>
The workflow is attached if you want to take a look. The goal is<br>
simply to create a chart of the streamflow time series. I would<br>
appreciate any help on this. Thanks in advance!<br>
<br>
Jon<br>
<br>
Jonathan Goodall<br>
Civil and Environmental Engineering<br>
University of South Carolina<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kepler-users mailing list<br>
<a href="mailto:Kepler-users@ecoinformatics.org" target="_blank">Kepler-users@ecoinformatics.org</a><br></div></div>
<mailto:<a href="mailto:Kepler-users@ecoinformatics.org" target="_blank">Kepler-users@ecoinformatics.org</a>><div class="Ih2E3d"><br>
<a href="http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users" target="_blank">http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users</a><br>
<br>
<br>
<br>
</div></blockquote><div><div></div><div class="Wj3C7c">
<br>
_______________________________________________<br>
Kepler-users mailing list<br>
<a href="mailto:Kepler-users@ecoinformatics.org" target="_blank">Kepler-users@ecoinformatics.org</a><br>
<a href="http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users" target="_blank">http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Matthew B. Jones<br>Director of Informatics Research and Development<br>National Center for Ecological Analysis and Synthesis (NCEAS)<br>
UC Santa Barbara<br><a href="mailto:jones@nceas.ucsb.edu">jones@nceas.ucsb.edu</a> Ph: 1-907-523-1960<br><a href="http://www.nceas.ucsb.edu/ecoinfo">http://www.nceas.ucsb.edu/ecoinfo</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</div>