Error loading an Atom feed into an instance

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error loading an Atom feed into an instance

Ethan Gruber
Hi all,

I've run into an error that I can't quite figure out.  I want to load an Atom feed into an instance for processing.  The feed is based on Solr and is thus searchable with the Lucene query syntax.  Here's how it functions:

A user types in their search string into an xforms:input, instance('search-query').  The user clicks a button which sends a submission called query-nomisma, below.

<xforms:submission id="query-nomisma" serialization="none" method="get" action="<a href="http://nomisma.org/feed/?q=typeof:mint+{instance(&#39;search-query&#39;)}">http://nomisma.org/feed/?q=typeof:mint+{instance('search-query')}" instance="feed" replace="instance">
  <xforms:message ev:event="xforms-submit-error" level="modal">Unable to communicate with nomisma.org Atom feed.</xforms:message>
</xforms:submission>

The response is placed into an instance called feed:

<xforms:instance id="feed">
   <feed xmlns=""/>
 </xforms:instance>

I get the error when I execute the submission.  I have checked my server logs, and a query comes in successfully, so the problem must be in how Orbeon is handling the data that is returned.  Here is a URL to a feed: http://nomisma.org/feed/?q=typeof:mint+attica .  Is there anything obvious that I am missing here?

Thanks,
Ethan


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error loading an Atom feed into an instance

Ethan Gruber
As an addendum, it works with another query-able feed that I have (http://numismatics.org/search/feed/?q=*:*), so perhaps the issue may lie in the namespaces?

On Fri, Sep 2, 2011 at 9:15 AM, Ethan Gruber <[hidden email]> wrote:
Hi all,

I've run into an error that I can't quite figure out.  I want to load an Atom feed into an instance for processing.  The feed is based on Solr and is thus searchable with the Lucene query syntax.  Here's how it functions:

A user types in their search string into an xforms:input, instance('search-query').  The user clicks a button which sends a submission called query-nomisma, below.

<xforms:submission id="query-nomisma" serialization="none" method="get" action="http://nomisma.org/feed/?q=typeof:mint+{instance('search-query')}" instance="feed" replace="instance">
  <xforms:message ev:event="xforms-submit-error" level="modal">Unable to communicate with nomisma.org Atom feed.</xforms:message>
</xforms:submission>

The response is placed into an instance called feed:

<xforms:instance id="feed">
   <feed xmlns=""/>
 </xforms:instance>

I get the error when I execute the submission.  I have checked my server logs, and a query comes in successfully, so the problem must be in how Orbeon is handling the data that is returned.  Here is a URL to a feed: http://nomisma.org/feed/?q=typeof:mint+attica .  Is there anything obvious that I am missing here?

Thanks,
Ethan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Error loading an Atom feed into an instance

Ethan Gruber
Ah, I found the problem.  I was not correctly setting the content type on the service: http://wiki.orbeon.com/forms/how-to/logic/call-service-incorrect-content-type

On Fri, Sep 2, 2011 at 9:20 AM, Ethan Gruber <[hidden email]> wrote:
As an addendum, it works with another query-able feed that I have (http://numismatics.org/search/feed/?q=*:*), so perhaps the issue may lie in the namespaces?


On Fri, Sep 2, 2011 at 9:15 AM, Ethan Gruber <[hidden email]> wrote:
Hi all,

I've run into an error that I can't quite figure out.  I want to load an Atom feed into an instance for processing.  The feed is based on Solr and is thus searchable with the Lucene query syntax.  Here's how it functions:

A user types in their search string into an xforms:input, instance('search-query').  The user clicks a button which sends a submission called query-nomisma, below.

<xforms:submission id="query-nomisma" serialization="none" method="get" action="http://nomisma.org/feed/?q=typeof:mint+{instance('search-query')}" instance="feed" replace="instance">
  <xforms:message ev:event="xforms-submit-error" level="modal">Unable to communicate with nomisma.org Atom feed.</xforms:message>
</xforms:submission>

The response is placed into an instance called feed:

<xforms:instance id="feed">
   <feed xmlns=""/>
 </xforms:instance>

I get the error when I execute the submission.  I have checked my server logs, and a query comes in successfully, so the problem must be in how Orbeon is handling the data that is returned.  Here is a URL to a feed: http://nomisma.org/feed/?q=typeof:mint+attica .  Is there anything obvious that I am missing here?

Thanks,
Ethan




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws