RE: Re: RE: Querying an XML database (eXist-db)

Posted by Steve Bayliss on
URL: https://discuss.orbeon.com/Querying-an-XML-database-eXist-db-tp1459077p1468730.html

Hi Markku

See the attached.  It's pretty basic but it has the framework to illustrate
what I think you're asking.

Note that I'm not calling a service in the pipeline, but just doing a simple
xslt - but the principle's the same in terms of submitting to a service
declared in page-flow.xml and getting the results back to your page.

Make sure you've got your log4j configured properly and watch tomcat's log -
if there are any errors in your pipeline you'll see them there.  Also might
be worth adding debug attributes in your pipeline so you can verify that
it's receiving the instance and calling the service correctly.

Hope that helps
Steve

-----Original Message-----
From: Markku Laine [mailto:[hidden email]]
Sent: 03 February 2010 11:42
To: [hidden email]
Subject: [ops-users] Re: RE: Querying an XML database (eXist-db)


Hi Steve,


On 1.2.2010, at 20.29, Steve Bayliss wrote:

> Hi Markku
>
>> Then, I tried to do the same but without using the call-xpl()  
>> solution. I
>> never managed to make it work :( Could somebody help me out with  
>> this one,
>
>> and provide me a working solution (XHTML+XForms code + XPL code) with
>> explanations?!?
>
> This sounds very similar to the question that Robin was just asking  
> - those
> posts on the list should tell you how to expose your XPL as a  
> service using
> page-flow.xml - you then call the service declared in page-flow.xml  
> using a
> normal xforms submission.
>
> So it's basically what you have in your second example - but your  
> pipeline
> needs to use a converter and the html serializer to actually send  
> the data
> back to the browser, instead of having a data output.
Thanks for your help. I tried to add the serializers but the sample  
app still does not work :( I feel a bit hopeless now as the StackTrace  
does not provide any valuable information to me and I feel that I have  
tried all possible solutions.

Could you maybe provide me the magic lines (both the xforms:submission  
in the XHTML file and the code for the processor)? I would really  
appreciate that!

Regards


-Markku


--
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

markku.rar (25K) Download Attachment