Querying an XML database (eXist-db)

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

Querying an XML database (eXist-db)

Markku Laine
Hi,


I would like to execute an XQuery expression against data stored in
eXist-db. I know that there are a couple of different approaches for doing
that so I thought, hey, let's try them all in order to compare the
different approaches.

First, I decided to try out eXist-db's REST API. The following code on my
XHTML+XForms Web page worked fine (eXist-db is running as a separate Web
application):
------------- 8< -------------
...
<xforms:model>
   <xforms:instance id="courses-instance">
     <dummy xmlns="" />
   </xforms:instance>
   <xforms:submission id="select-courses-submission"
serialization="none" method="get"
resource="http://localhost:8080/exist/rest/db/courses/courses.xml?_query=//courses&amp;_wrap=no"
replace="instance" instance="courses-instance" />
   <xforms:send submission="select-courses-submission"
ev:event="xforms-ready" />
</xforms:model>
...
--------------- 8< -------------


Next, I wanted to try out Orbeon Forms' XForms Submission Processor. I
modified my page-flow.xml a bit, which looked like this after the
modifications:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.orbeon.com/oxf/controller">
   <page path-info="/my-app/" view="view2.xhtml"/>
   <page path-info="/my-app/selectcourses"
model="select_courses.xpl" />
   <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

And added the select_courses.xpl file:
<?xml version="1.0" encoding="utf-8"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
     xmlns:oxf="http://www.orbeon.com/oxf/processors"
     xmlns:xforms="http://www.w3.org/2002/xforms"
     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
   <p:param name="data" type="output" />
   <p:processor name="oxf:xforms-submission">
     <p:input name="submission">
       <xforms:submission method="get"
action="http://localhost:8080/exist/rest/db/courses/courses.xml?_query=//courses&amp;_wrap=no"
xxforms:username="guest" xxforms:password="guest" />
     </p:input>
     <p:input name="request">
       <parameters/>
     </p:input>
     <p:output name="response" ref="data" />
   </p:processor>

</p:config>

Here is a code snippet from view2.xhtml:
------- 8< ------------
...
<xforms:model>
   <xforms:instance id="courses-instance">
     <dummy xmlns="" />
   </xforms:instance>
   <xforms:insert nodeset="instance( 'courses-instance' )"
origin="xxforms:call-xpl(
'oxf:/apps/my-app/select_courses.xpl', 'data', instance(
'courses-instance' ), 'data' )" ev:event="xforms-ready" />
</xforms:model>
...
------------- 8< -------------

The aforementioned example works fine and I am able to retrieve the data
from the database.


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

I would also like to know what changes I need to make in order to use the
approach described here:
http://www.orbeon.com/orbeon/doc/processors-xmldb#xmldb

Kind 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
Reply | Threaded
Open this post in threaded view
|

RE: Querying an XML database (eXist-db)

Steve Bayliss
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.

Regards
Steve

-----Original Message-----
From: .::: Markku :::. [mailto:[hidden email]]
Sent: 01 February 2010 18:02
To: [hidden email]
Subject: [ops-users] Querying an XML database (eXist-db)


Hi,


I would like to execute an XQuery expression against data stored in
eXist-db. I know that there are a couple of different approaches for doing
that so I thought, hey, let's try them all in order to compare the
different approaches.

First, I decided to try out eXist-db's REST API. The following code on my
XHTML+XForms Web page worked fine (eXist-db is running as a separate Web
application):
------------- 8< -------------
...
<xforms:model>
   <xforms:instance id="courses-instance">
     <dummy xmlns="" />
   </xforms:instance>
   <xforms:submission id="select-courses-submission"
serialization="none" method="get"
resource="http://localhost:8080/exist/rest/db/courses/courses.xml?_query=//c
ourses&amp;_wrap=no"
replace="instance" instance="courses-instance" />
   <xforms:send submission="select-courses-submission"
ev:event="xforms-ready" />
</xforms:model>
...
--------------- 8< -------------


Next, I wanted to try out Orbeon Forms' XForms Submission Processor. I
modified my page-flow.xml a bit, which looked like this after the
modifications:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.orbeon.com/oxf/controller">
   <page path-info="/my-app/" view="view2.xhtml"/>
   <page path-info="/my-app/selectcourses"
model="select_courses.xpl" />
   <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

And added the select_courses.xpl file:
<?xml version="1.0" encoding="utf-8"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
     xmlns:oxf="http://www.orbeon.com/oxf/processors"
     xmlns:xforms="http://www.w3.org/2002/xforms"
     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
   <p:param name="data" type="output" />
   <p:processor name="oxf:xforms-submission">
     <p:input name="submission">
       <xforms:submission method="get"
action="http://localhost:8080/exist/rest/db/courses/courses.xml?_query=//cou
rses&amp;_wrap=no"
xxforms:username="guest" xxforms:password="guest" />
     </p:input>
     <p:input name="request">
       <parameters/>
     </p:input>
     <p:output name="response" ref="data" />
   </p:processor>

</p:config>

Here is a code snippet from view2.xhtml:
------- 8< ------------
...
<xforms:model>
   <xforms:instance id="courses-instance">
     <dummy xmlns="" />
   </xforms:instance>
   <xforms:insert nodeset="instance( 'courses-instance' )"
origin="xxforms:call-xpl(
'oxf:/apps/my-app/select_courses.xpl', 'data', instance(
'courses-instance' ), 'data' )" ev:event="xforms-ready" />
</xforms:model>
...
------------- 8< -------------

The aforementioned example works fine and I am able to retrieve the data
from the database.


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

I would also like to know what changes I need to make in order to use the
approach described here:
http://www.orbeon.com/orbeon/doc/processors-xmldb#xmldb

Kind 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
Reply | Threaded
Open this post in threaded view
|

Re: Querying an XML database (eXist-db)

HankRatz
In reply to this post by Markku Laine

Markku,

[reply within]

On Feb 1, 2010, at 10:01 AM, .::: Markku :::. wrote:

> Hi,
>
>
> I would like to execute an XQuery expression against data stored in eXist-db. I know that there are a couple of different approaches for doing that so I thought, hey, let's try them all in order to compare the different approaches.
>
> First, I decided to try out eXist-db's REST API. The following code on my XHTML+XForms Web page worked fine (eXist-db is running as a separate Web application):
> ------------- 8< -------------
> ...
> <xforms:model>
>  <xforms:instance id="courses-instance">
>    <dummy xmlns="" />
>  </xforms:instance>
>  <xforms:submission id="select-courses-submission" serialization="none" method="get" resource="http://localhost:8080/exist/rest/db/courses/courses.xml?_query=//courses&amp;_wrap=no" replace="instance" instance="courses-instance" />
>  <xforms:send submission="select-courses-submission" ev:event="xforms-ready" />
> </xforms:model>
> ...
> --------------- 8< -------------
Can a send element be a child of a model? I assumed no.  I thought this kind of
initialization requires a xforms-model-construct or xforms-ready event.

At this point, I may be no help at all to you, sorry, but I have never had a
problem getting any control to redraw when any instance referenced changes. I mostly
have not needed XPL when querying eXist.

<xforms:instance id="query">
        <config xmlns="">
                <_query/>
                <_start>1</_start>
                <_howmany>0</_howmany>
                <_cache>yes</_cache>
                <_session/>
        </config>
</xforms:instance>

<xforms:bind nodeset="instance('query')">
        <xforms:bind nodeset="_query"
                calculate="concat('collection(''/dbroot'')/somethings/something',
                        '[element1=''', instance('qform')/element1, ''']',
                        '[time &gt;= ''', instance('qform')/start-date, ''']',
                        '[time &lt;= ''', instance('qform')/end-date, ''']')"/>
        <xforms:bind nodeset="_start" constraint=". &gt; 0" />
        <xforms:bind nodeset="_howmany" />
        <xforms:bind nodeset="_cache" />
        <xforms:bind nodeset="_session" relevant=". != ''" />
</xforms:bind>

<!-- Submits the query instance to a service that packages it -->
<xforms:submission id="query-sub"
        ref="instance('query')"
        method="get"
        action="http://db.nees.ucsb.edu/exist/rest"
        separator="&amp;"
        validate="false"
        replace="instance"
        instance="qresult" />


The _query bind can get complicated.  POST looks quite different, but even GET
will allow you to construct something like:

<xforms:bind nodeset="_query"
        calculate="concat('for $element in collection(''/'')//something',
                '[sub-elemement=', instance('qform')/element, ']',
                ' order by substring($element/sub-element,5)',
                ' return $element' )"/>

and sort the output.

Well, I'm sure I havent' answered your question, but I think you needed the
call-xpl because the send is not automatic on model construct.  So, I'm
suggesting that you have a way to construct automatically the query and
then trigger it at xforms-model-construct and other times.

Regards,
Hank

>
>
> Next, I wanted to try out Orbeon Forms' XForms Submission Processor. I modified my page-flow.xml a bit, which looked like this after the modifications:
> <?xml version="1.0" encoding="UTF-8"?>
> <config xmlns="http://www.orbeon.com/oxf/controller">
>  <page path-info="/my-app/" view="view2.xhtml"/>
>  <page path-info="/my-app/selectcourses" model="select_courses.xpl" />
>  <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> And added the select_courses.xpl file:
> <?xml version="1.0" encoding="utf-8"?>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>    xmlns:oxf="http://www.orbeon.com/oxf/processors"
>    xmlns:xforms="http://www.w3.org/2002/xforms"
>    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
>  <p:param name="data" type="output" />
>  <p:processor name="oxf:xforms-submission">
>    <p:input name="submission">
>      <xforms:submission method="get" action="http://localhost:8080/exist/rest/db/courses/courses.xml?_query=//courses&amp;_wrap=no" xxforms:username="guest" xxforms:password="guest" />
>    </p:input>
>    <p:input name="request">
>      <parameters/>
>    </p:input>
>    <p:output name="response" ref="data" />
>  </p:processor>
>
> </p:config>
>
> Here is a code snippet from view2.xhtml:
> ------- 8< ------------
> ...
> <xforms:model>
>  <xforms:instance id="courses-instance">
>    <dummy xmlns="" />
>  </xforms:instance>
>  <xforms:insert nodeset="instance( 'courses-instance' )" origin="xxforms:call-xpl( 'oxf:/apps/my-app/select_courses.xpl', 'data', instance( 'courses-instance' ), 'data' )" ev:event="xforms-ready" />
> </xforms:model>
> ...
> ------------- 8< -------------
>
> The aforementioned example works fine and I am able to retrieve the data from the database.
>
>
> 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?!?
>
> I would also like to know what changes I need to make in order to use the approach described here:
> http://www.orbeon.com/orbeon/doc/processors-xmldb#xmldb
>
> Kind 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
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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: RE: Querying an XML database (eXist-db)

Markku Laine
In reply to this post by Steve Bayliss
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
Reply | Threaded
Open this post in threaded view
|

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

Steve Bayliss
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
Reply | Threaded
Open this post in threaded view
|

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

wburkart
Hello,

Not sure why I'm receiving this email ? I am not Markku. I asked for help in
the forum but this was not my issue ?

Here is my forum post below:

Hello,

I've finished making my form and now want to add a submit button that sends
the form info to a preset email address. I would also like to know where the
files are that i published after making my form ?
Am i supposed to find these files then upload them to my server/hosting
account directory ? I have installed the Apache Tomcat and Orbeon on my home
computer and built the form on there. Do i have to install Apache Tomcat and
Orbeon on my VPS server to be able to use this form i have created on my
home computer ? Or do i just upload the published files ? I apologize for my
confusion as i am new to the Orbeon form system. I have been reading the
documentation for hours but can't seem to figure out how to accomplish these
final steps to get up and running. It's all a little overwhelming to say the
least !  Any help or guidence would be greatly appreciated as i really love
the program and have spent hours making my form perfect and am excited to
get up and running with this great system.

Thank you in advance for any help or advice, Wayne



-----Original Message-----
From: Steve Bayliss [mailto:[hidden email]]
Sent: Thursday, February 04, 2010 4:35 AM
To: [hidden email]
Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)

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
Reply | Threaded
Open this post in threaded view
|

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

Einar Moos
Wayne,

if you are working on applications that are going to be shared by
other users (say in a company) my experience has been to deploy Orbeon
on Tomcat on a VPS for internal use while development was done on a
PC. Once the form is loaded through intranet by as many users who have
access, it works quite well.
We deployed eXist on another server, for both security and efficiency.

However, our applications were not created with Form Builder.

cheers

-- einar







On Thu, Feb 4, 2010 at 5:24 PM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Not sure why I'm receiving this email ? I am not Markku. I asked for help in
> the forum but this was not my issue ?
>
> Here is my forum post below:
>
> Hello,
>
> I've finished making my form and now want to add a submit button that sends
> the form info to a preset email address. I would also like to know where the
> files are that i published after making my form ?
> Am i supposed to find these files then upload them to my server/hosting
> account directory ? I have installed the Apache Tomcat and Orbeon on my home
> computer and built the form on there. Do i have to install Apache Tomcat and
> Orbeon on my VPS server to be able to use this form i have created on my
> home computer ? Or do i just upload the published files ? I apologize for my
> confusion as i am new to the Orbeon form system. I have been reading the
> documentation for hours but can't seem to figure out how to accomplish these
> final steps to get up and running. It's all a little overwhelming to say the
> least !  Any help or guidence would be greatly appreciated as i really love
> the program and have spent hours making my form perfect and am excited to
> get up and running with this great system.
>
> Thank you in advance for any help or advice, Wayne
>
>
>
> -----Original Message-----
> From: Steve Bayliss [mailto:[hidden email]]
> Sent: Thursday, February 04, 2010 4:35 AM
> To: [hidden email]
> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>
> 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
>
>


--
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: Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

wburkart
Hello,

I'm not sure what you mean. Here is what I need to accomplish. I need the form I have designed with orbeon forms to be the index page of my website. I need users to access this page through the internet at www.mysite.com/myorbionform.html and i need the form data to be sent to my email address when a submit button is clicked. Also I would like an auto response email sent to the user upon submission. Please be as detailed as possible on how to accomplish these basic tasks. I'm a little confused at how to accomplish this. I have attached a sample of the form I have created. This form is supposed to be the main index page of my website. It's a credit application. I am installing Apache Tomcat and Orbeon on my VPS server right now.

Thank you, Wayne

-----Original Message-----
From: Einar Moos [mailto:[hidden email]]
Sent: Thursday, February 04, 2010 8:51 AM
To: [hidden email]
Subject: [ops-users] Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

Wayne,

if you are working on applications that are going to be shared by other users (say in a company) my experience has been to deploy Orbeon on Tomcat on a VPS for internal use while development was done on a PC. Once the form is loaded through intranet by as many users who have access, it works quite well.
We deployed eXist on another server, for both security and efficiency.

However, our applications were not created with Form Builder.

cheers

-- einar







On Thu, Feb 4, 2010 at 5:24 PM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Not sure why I'm receiving this email ? I am not Markku. I asked for
> help in the forum but this was not my issue ?
>
> Here is my forum post below:
>
> Hello,
>
> I've finished making my form and now want to add a submit button that
> sends the form info to a preset email address. I would also like to
> know where the files are that i published after making my form ?
> Am i supposed to find these files then upload them to my
> server/hosting account directory ? I have installed the Apache Tomcat
> and Orbeon on my home computer and built the form on there. Do i have
> to install Apache Tomcat and Orbeon on my VPS server to be able to use
> this form i have created on my home computer ? Or do i just upload the
> published files ? I apologize for my confusion as i am new to the
> Orbeon form system. I have been reading the documentation for hours
> but can't seem to figure out how to accomplish these final steps to
> get up and running. It's all a little overwhelming to say the least !  
> Any help or guidence would be greatly appreciated as i really love the
> program and have spent hours making my form perfect and am excited to get up and running with this great system.
>
> Thank you in advance for any help or advice, Wayne
>
>
>
> -----Original Message-----
> From: Steve Bayliss [mailto:[hidden email]]
> Sent: Thursday, February 04, 2010 4:35 AM
> To: [hidden email]
> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>
> 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
>
>


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

form example.png (204K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Erik Bruchez
Administrator
In reply to this post by wburkart
Wayne,

This is how the mailing-list works: once subscribed, you get all the
messages sent to the list.

You should probably configure a filter in your mail client to move the
messages to a folder/tag so that they don't pollute your inbox.

-Erik

On Thu, Feb 4, 2010 at 8:24 AM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Not sure why I'm receiving this email ? I am not Markku. I asked for help in
> the forum but this was not my issue ?
>
> Here is my forum post below:
>
> Hello,
>
> I've finished making my form and now want to add a submit button that sends
> the form info to a preset email address. I would also like to know where the
> files are that i published after making my form ?
> Am i supposed to find these files then upload them to my server/hosting
> account directory ? I have installed the Apache Tomcat and Orbeon on my home
> computer and built the form on there. Do i have to install Apache Tomcat and
> Orbeon on my VPS server to be able to use this form i have created on my
> home computer ? Or do i just upload the published files ? I apologize for my
> confusion as i am new to the Orbeon form system. I have been reading the
> documentation for hours but can't seem to figure out how to accomplish these
> final steps to get up and running. It's all a little overwhelming to say the
> least !  Any help or guidence would be greatly appreciated as i really love
> the program and have spent hours making my form perfect and am excited to
> get up and running with this great system.
>
> Thank you in advance for any help or advice, Wayne
>
>
>
> -----Original Message-----
> From: Steve Bayliss [mailto:[hidden email]]
> Sent: Thursday, February 04, 2010 4:35 AM
> To: [hidden email]
> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>
> 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
>
>


--
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: Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

wburkart
Hello,

Ok thanks. I also made a post yesterday but have not received a response.
How long does it usually take for someone to reply ? Just curious. I built a
really great form after installing Apache Tomcat and Orbeon but cant seem to
figure out how to find the files I published and then upload them to my web
directory and send the submitted data to a predetermined email address. Any
suggestions would be greatly appreciated.

Thank you, Wayne

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
Bruchez
Sent: Thursday, February 04, 2010 5:21 PM
To: [hidden email]
Subject: [ops-users] Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

Wayne,

This is how the mailing-list works: once subscribed, you get all the
messages sent to the list.

You should probably configure a filter in your mail client to move the
messages to a folder/tag so that they don't pollute your inbox.

-Erik

On Thu, Feb 4, 2010 at 8:24 AM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Not sure why I'm receiving this email ? I am not Markku. I asked for
> help in the forum but this was not my issue ?
>
> Here is my forum post below:
>
> Hello,
>
> I've finished making my form and now want to add a submit button that
> sends the form info to a preset email address. I would also like to
> know where the files are that i published after making my form ?
> Am i supposed to find these files then upload them to my
> server/hosting account directory ? I have installed the Apache Tomcat
> and Orbeon on my home computer and built the form on there. Do i have
> to install Apache Tomcat and Orbeon on my VPS server to be able to use
> this form i have created on my home computer ? Or do i just upload the
> published files ? I apologize for my confusion as i am new to the
> Orbeon form system. I have been reading the documentation for hours
> but can't seem to figure out how to accomplish these final steps to
> get up and running. It's all a little overwhelming to say the least !  
> Any help or guidence would be greatly appreciated as i really love the
> program and have spent hours making my form perfect and am excited to get
up and running with this great system.

>
> Thank you in advance for any help or advice, Wayne
>
>
>
> -----Original Message-----
> From: Steve Bayliss [mailto:[hidden email]]
> Sent: Thursday, February 04, 2010 4:35 AM
> To: [hidden email]
> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>
> 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
>
>



--
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: RE: Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

Erik Bruchez-3
Wayne,

I just sent a reply to your other question.

As for the time it takes to get a reply, I don't think there is a rule
really. We try to answer questions, but unfortunately, since this is
free support, we can't guarantee much.

-Erik

On Thu, Feb 4, 2010 at 5:40 PM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Ok thanks. I also made a post yesterday but have not received a response.
> How long does it usually take for someone to reply ? Just curious. I built a
> really great form after installing Apache Tomcat and Orbeon but cant seem to
> figure out how to find the files I published and then upload them to my web
> directory and send the submitted data to a predetermined email address. Any
> suggestions would be greatly appreciated.
>
> Thank you, Wayne
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: Thursday, February 04, 2010 5:21 PM
> To: [hidden email]
> Subject: [ops-users] Re: RE: RE: Re: RE: Querying an XML database (eXist-db)
>
> Wayne,
>
> This is how the mailing-list works: once subscribed, you get all the
> messages sent to the list.
>
> You should probably configure a filter in your mail client to move the
> messages to a folder/tag so that they don't pollute your inbox.
>
> -Erik
>
> On Thu, Feb 4, 2010 at 8:24 AM, Wayne Burkart <[hidden email]> wrote:
>> Hello,
>>
>> Not sure why I'm receiving this email ? I am not Markku. I asked for
>> help in the forum but this was not my issue ?
>>
>> Here is my forum post below:
>>
>> Hello,
>>
>> I've finished making my form and now want to add a submit button that
>> sends the form info to a preset email address. I would also like to
>> know where the files are that i published after making my form ?
>> Am i supposed to find these files then upload them to my
>> server/hosting account directory ? I have installed the Apache Tomcat
>> and Orbeon on my home computer and built the form on there. Do i have
>> to install Apache Tomcat and Orbeon on my VPS server to be able to use
>> this form i have created on my home computer ? Or do i just upload the
>> published files ? I apologize for my confusion as i am new to the
>> Orbeon form system. I have been reading the documentation for hours
>> but can't seem to figure out how to accomplish these final steps to
>> get up and running. It's all a little overwhelming to say the least !
>> Any help or guidence would be greatly appreciated as i really love the
>> program and have spent hours making my form perfect and am excited to get
> up and running with this great system.
>>
>> Thank you in advance for any help or advice, Wayne
>>
>>
>>
>> -----Original Message-----
>> From: Steve Bayliss [mailto:[hidden email]]
>> Sent: Thursday, February 04, 2010 4:35 AM
>> To: [hidden email]
>> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>>
>> 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
>>
>>
>
>
>
> --
> 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
>
>


--
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: Re: RE: Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

wburkart
Hello,

Sorry about that I found your email in a sea of other ones from the thread !
Information overload ! My hosting company tried to install the Apache and
Orbeon to my Linux my server but said the installation failed and to contact
the script vendor...lol  I installed Apache and Orbion on my computer myself
with no problems. Is it that hard to install on a Linux server ? I didn't
want to do It myself in case I damaged my server. I have around 100 sites on
it so I want to be careful. Anything special I should know about
installation of orbion and apache on my Linux VPS ?


Thanks again for your help. Its very much appreciated, Wayne


-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: Thursday, February 04, 2010 6:03 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: RE: Re: RE: Querying an XML database
(eXist-db)

Wayne,

I just sent a reply to your other question.

As for the time it takes to get a reply, I don't think there is a rule
really. We try to answer questions, but unfortunately, since this is free
support, we can't guarantee much.

-Erik

On Thu, Feb 4, 2010 at 5:40 PM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Ok thanks. I also made a post yesterday but have not received a response.
> How long does it usually take for someone to reply ? Just curious. I
> built a really great form after installing Apache Tomcat and Orbeon
> but cant seem to figure out how to find the files I published and then
> upload them to my web directory and send the submitted data to a
> predetermined email address. Any suggestions would be greatly appreciated.
>
> Thank you, Wayne
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: Thursday, February 04, 2010 5:21 PM
> To: [hidden email]
> Subject: [ops-users] Re: RE: RE: Re: RE: Querying an XML database
> (eXist-db)
>
> Wayne,
>
> This is how the mailing-list works: once subscribed, you get all the
> messages sent to the list.
>
> You should probably configure a filter in your mail client to move the
> messages to a folder/tag so that they don't pollute your inbox.
>
> -Erik
>
> On Thu, Feb 4, 2010 at 8:24 AM, Wayne Burkart <[hidden email]>
wrote:

>> Hello,
>>
>> Not sure why I'm receiving this email ? I am not Markku. I asked for
>> help in the forum but this was not my issue ?
>>
>> Here is my forum post below:
>>
>> Hello,
>>
>> I've finished making my form and now want to add a submit button that
>> sends the form info to a preset email address. I would also like to
>> know where the files are that i published after making my form ?
>> Am i supposed to find these files then upload them to my
>> server/hosting account directory ? I have installed the Apache Tomcat
>> and Orbeon on my home computer and built the form on there. Do i have
>> to install Apache Tomcat and Orbeon on my VPS server to be able to
>> use this form i have created on my home computer ? Or do i just
>> upload the published files ? I apologize for my confusion as i am new
>> to the Orbeon form system. I have been reading the documentation for
>> hours but can't seem to figure out how to accomplish these final
>> steps to get up and running. It's all a little overwhelming to say the
least !

>> Any help or guidence would be greatly appreciated as i really love
>> the program and have spent hours making my form perfect and am
>> excited to get
> up and running with this great system.
>>
>> Thank you in advance for any help or advice, Wayne
>>
>>
>>
>> -----Original Message-----
>> From: Steve Bayliss [mailto:[hidden email]]
>> Sent: Thursday, February 04, 2010 4:35 AM
>> To: [hidden email]
>> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>>
>> 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
>>
>>
>
>
>
> --
> 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
>
>



--
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: RE: Re: RE: Re: RE: RE: Re: RE: Querying an XML database (eXist-db)

Alessandro  Vernet
Administrator
Wayne,

Thanks to Java, installation on Windows and Linux are actually very
similar. One pitfall is that certain Linux distributions ship by
default with a non-standard JVM which can't be used to run Tomcat and
Orbeon Forms. So I would just check, say with java -version, that you
have a recent Java JDK installed.

Alex

On Thu, Feb 4, 2010 at 9:16 PM, Wayne Burkart <[hidden email]> wrote:

> Hello,
>
> Sorry about that I found your email in a sea of other ones from the thread !
> Information overload ! My hosting company tried to install the Apache and
> Orbeon to my Linux my server but said the installation failed and to contact
> the script vendor...lol  I installed Apache and Orbion on my computer myself
> with no problems. Is it that hard to install on a Linux server ? I didn't
> want to do It myself in case I damaged my server. I have around 100 sites on
> it so I want to be careful. Anything special I should know about
> installation of orbion and apache on my Linux VPS ?
>
>
> Thanks again for your help. Its very much appreciated, Wayne
>
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: Thursday, February 04, 2010 6:03 PM
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: RE: RE: Re: RE: Querying an XML database
> (eXist-db)
>
> Wayne,
>
> I just sent a reply to your other question.
>
> As for the time it takes to get a reply, I don't think there is a rule
> really. We try to answer questions, but unfortunately, since this is free
> support, we can't guarantee much.
>
> -Erik
>
> On Thu, Feb 4, 2010 at 5:40 PM, Wayne Burkart <[hidden email]> wrote:
>> Hello,
>>
>> Ok thanks. I also made a post yesterday but have not received a response.
>> How long does it usually take for someone to reply ? Just curious. I
>> built a really great form after installing Apache Tomcat and Orbeon
>> but cant seem to figure out how to find the files I published and then
>> upload them to my web directory and send the submitted data to a
>> predetermined email address. Any suggestions would be greatly appreciated.
>>
>> Thank you, Wayne
>>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: Thursday, February 04, 2010 5:21 PM
>> To: [hidden email]
>> Subject: [ops-users] Re: RE: RE: Re: RE: Querying an XML database
>> (eXist-db)
>>
>> Wayne,
>>
>> This is how the mailing-list works: once subscribed, you get all the
>> messages sent to the list.
>>
>> You should probably configure a filter in your mail client to move the
>> messages to a folder/tag so that they don't pollute your inbox.
>>
>> -Erik
>>
>> On Thu, Feb 4, 2010 at 8:24 AM, Wayne Burkart <[hidden email]>
> wrote:
>>> Hello,
>>>
>>> Not sure why I'm receiving this email ? I am not Markku. I asked for
>>> help in the forum but this was not my issue ?
>>>
>>> Here is my forum post below:
>>>
>>> Hello,
>>>
>>> I've finished making my form and now want to add a submit button that
>>> sends the form info to a preset email address. I would also like to
>>> know where the files are that i published after making my form ?
>>> Am i supposed to find these files then upload them to my
>>> server/hosting account directory ? I have installed the Apache Tomcat
>>> and Orbeon on my home computer and built the form on there. Do i have
>>> to install Apache Tomcat and Orbeon on my VPS server to be able to
>>> use this form i have created on my home computer ? Or do i just
>>> upload the published files ? I apologize for my confusion as i am new
>>> to the Orbeon form system. I have been reading the documentation for
>>> hours but can't seem to figure out how to accomplish these final
>>> steps to get up and running. It's all a little overwhelming to say the
> least !
>>> Any help or guidence would be greatly appreciated as i really love
>>> the program and have spent hours making my form perfect and am
>>> excited to get
>> up and running with this great system.
>>>
>>> Thank you in advance for any help or advice, Wayne
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Steve Bayliss [mailto:[hidden email]]
>>> Sent: Thursday, February 04, 2010 4:35 AM
>>> To: [hidden email]
>>> Subject: [ops-users] RE: Re: RE: Querying an XML database (eXist-db)
>>>
>>> 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
>>>
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
>
>
> --
> 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

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

Markku Laine
In reply to this post by Steve Bayliss


Hi Steve,


Thanks for helping me out! Your example really helped me a lot and all  
my tests are now working fine!

I attached a sample Web application, which has two different Web  
pages. The first one executes a query (XPath) against eXist-db via  
REST API. The second one executes a query (XQuery) against eXist-db  
via XML:DB API.

The problems I had where mostly related to serialization of the result  
or the lack of it (thanks Steve!) and to processors' input and output  
fields (used names) and how to use them correctly. I also noticed that  
a couple of tiny mistakes in my page-flow.xml file. Well, I hope my  
example helps other people who are facing the same problems.

Kind regards


-Markku

On 4.2.2010, at 14.35, Steve Bayliss wrote:

> 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
> <markku.rar>
> --
> 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


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

xrx-test.zip (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Steve Bayliss
Hi Markku

That's great, glad to be of help.

Steve

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




Hi Steve,


Thanks for helping me out! Your example really helped me a lot and all  
my tests are now working fine!

I attached a sample Web application, which has two different Web  
pages. The first one executes a query (XPath) against eXist-db via  
REST API. The second one executes a query (XQuery) against eXist-db  
via XML:DB API.

The problems I had where mostly related to serialization of the result  
or the lack of it (thanks Steve!) and to processors' input and output  
fields (used names) and how to use them correctly. I also noticed that  
a couple of tiny mistakes in my page-flow.xml file. Well, I hope my  
example helps other people who are facing the same problems.

Kind regards


-Markku

On 4.2.2010, at 14.35, Steve Bayliss wrote:

> 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
> <markku.rar>
> --
> 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



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