Can anyone tell me where this file will be whats the name of this

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

Can anyone tell me where this file will be whats the name of this

smaran

Hi All,

Can anyone tell me where this file will be what’s the name of this file and how I can add my attributes to it

<request>
  <container-type>servlet</container-type>
  <container-namespace/>
  <content-length>-1</content-length>
  <content-type/>
  <parameters>
    <parameter>
      <name>id</name>
      <value>12</value>
    </parameter>
    <parameter>       <name>print</name>
      <value>false</value>
    </parameter>
  </parameters>
  <body/>
  <protocol>HTTP/1.1</protocol>
  <remote-addr>127.0.0.1</remote-addr>
  <remote-host>localhost</remote-host>
  <scheme>http</scheme>
  <server-name>localhost</server-name>
  <server-port>8080</server-port>
  <is-secure>false</is-secure>
  <auth-type>BASIC</auth-type>
  <remote-user>jdoe</remote-user>
  <context-path>/ops</context-path>
  <headers>
    <header>
      <name>host</name>
      <value>localhost:8080</value>
    </header>
    <header>
      <name>user-agent</name>
      <value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826</value>
    </header>
    <header>
      <name>accept-language</name>
       <value>en-us, en;q=0.50</value>
    </header>
    <header>
      <name>accept-encoding</name>
      <value>gzip, deflate, compress;q=0.9</value>
    </header>
    <header>
      <name>accept-charset</name>
      <value>ISO-8859-1, utf-8;q=0.66, *;q=0.66</value>
    </header>
    <header>
      <name>keep-alive</name>
      <value>300</value>
    </header>
    <header>
      <name>connection</name>
      <value>keep-alive</value>
    </header>
    <header>
      <name>referer</name>
      <value>http://localhost:8080/ops/</value>
    </header>
    <header>
      <name>cookie</name>
      <value>JSESSIONID=DA6E64FC1E6DFF0499B5D6F46A32186A</value>
    </header>
  </headers>
  <attributes>
    <attribute>
      <name>oxf.xforms.renderer.deployment</name>
      <value>separate</value>
    </attribute>
    <attribute>
      <name>javax.servlet.forward.context_path</name>
      <value>/myapp</value>
    </attribute>
  </attributes>
  <method>GET</method>
  <path-info>/doc/home-welcome</path-info>
  <request-path>/doc/home-welcome</request-path>
  <path-translated>C:\orbeon\projects\OPS\build\ops-war\doc\home-welcome</path-translated>
  <query-string>id=12&print=false</query-string>
  <requested-session-id>DA6E64FC1E6DFF0499B5D6F46A32186A</requested-session-id>
  <request-uri>/ops/doc/home-welcome</request-uri>
  <request-url>http://localhost:8888/ops/doc/home-welcome</request-url>
  <servlet-path/>
</request>

Regards,

Smaran

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



--
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: Can anyone tell me where this file will be whats the name of this

Tom Grahame
Samran,

That looks like the output of a request generator, which I think you know because it looks like you lifted that sample directly from here:
http://wiki.orbeon.com/forms/doc/developer-guide/processors-request-generator

This isn't a file that exists somewhere, it's a piece of XML that will be created and passed inside of an XPL pipeline as a consequence of the request generator being activated.

That piece of XML will change depending upon the HTTP request that has been passed to the pipeline by page flow, and it can be acted upon by the pipeline and other processors in the pipeline, but it is not an entity that can be configured as such.

What are you trying to achieve by "adding your attributes" to it?

Tom
Reply | Threaded
Open this post in threaded view
|

RE: Re: Can anyone tell me where this file will be whats the name of this

smaran
Hi Tom,
Yes I want to add some attributes to it so that I can make it available in crud.xpl and store that data in database.
Can you let me know how this can be achived.
Regards,
Smaran

-----Original Message-----
From: Tom Grahame [mailto:[hidden email]]
Sent: Tuesday, March 08, 2011 6:20 PM
To: [hidden email]
Subject: [ops-users] Re: Can anyone tell me where this file will be whats the name of this

Samran,

That looks like the output of a request generator, which I think you know because it looks like you lifted that sample directly from here:
http://wiki.orbeon.com/forms/doc/developer-guide/processors-request-generator
http://wiki.orbeon.com/forms/doc/developer-guide/processors-request-generator 

This isn't a file that exists somewhere, it's a piece of XML that will be created and passed inside of an XPL pipeline as a consequence of the request generator being activated.

That piece of XML will change depending upon the HTTP request that has been passed to the pipeline by page flow, and it can be acted upon by the pipeline and other processors in the pipeline, but it is not an entity that can be configured as such.

What are you trying to achieve by "adding your attributes" to it?

Tom

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-anyone-tell-me-where-this-file-will-be-whats-the-name-of-this-tp3341219p3341286.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


--
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: Can anyone tell me where this file will be whats the name of this

Tom Grahame
Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):

<page id="crud" path-info="/crud" view="crud.xpl"/>

And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):
<parameters>
<parameter>
<name>username</name>
<value>tom</value>
</parameter>
<parameter>
<name>password</name>
<value>insecure</value>
</parameter/>
</parameters>

Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.

<p:processor name="oxf:request">
<p:input name="config">
<config>
<include>/request</include>
</config>
</p:input>
<p:output name="data" id="request" debug="request"/>
</p:processor>

Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:

<p:processor name="oxf:scope-generator">
<p:input name="config">
<config>
<key>isValid</key>
<scope>session</scope>
<session-scope>application</session-scope>
</config>
</p:input>
<p:output name="data" id="isValid"/>
</p:processor>

Hope that helps,

Tom
Reply | Threaded
Open this post in threaded view
|

RE: RE: Re: Can anyone tell me where this file will be whats the name of this

smaran
Hi
 You mean to say I have following url while creating new form
http://localhost:8080/orbeon-PE/fr/orbeon/builder/new 
so you suggest me to change url as below?
http://localhost:8080/orbeon-PE/fr/orbeon/builder/new?username=smaran 
so that I can acess in crud.xpl as
<username><xsl:value-of select="$request/ username "/></username>


Please correct me if I am wrong attaching my crud.xpl for reference
Regards,
Smaran

-----Original Message-----
From: Tom Grahame [mailto:[hidden email]]
Sent: Tuesday, March 08, 2011 8:08 PM
To: [hidden email]
Subject: [ops-users] RE: Re: Can anyone tell me where this file will be whats the name of this

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):



And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):
...

   
        username
        tom
   
   
        password
        insecure
   

...

Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.


   
       
            /request
       
   
   


Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:


   
       
            isValid
            session
            application
       
   
   


Hope that helps,

Tom

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-anyone-tell-me-where-this-file-will-be-whats-the-name-of-this-tp3341219p3341497.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


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

crud.xpl (37K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can anyone tell me where this file will be whats the name of this

Tom Grahame
In reply to this post by smaran
Reposting because I missed the raw tags:

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):

<page id="crud" path-info="/crud" view="crud.xpl"/>

And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):
<parameters>
<parameter>
<name>username</name>
<value>tom</value>
</parameter>
<parameter>
<name>password</name>
<value>insecure</value>
</parameter/>
</parameters>

Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.

<p:processor name="oxf:request">
<p:input name="config">
<config>
<include>/request</include>
</config>
</p:input>
<p:output name="data" id="request" debug="request"/>
</p:processor>

Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:

<p:processor name="oxf:scope-generator">
<p:input name="config">
<config>
<key>isValid</key>
<scope>session</scope>
<session-scope>application</session-scope>
</config>
</p:input>
<p:output name="data" id="isValid"/>
</p:processor>

Hope that helps,

Tom
Reply | Threaded
Open this post in threaded view
|

Re: Can anyone tell me where this file will be whats the name of this

Tom Grahame
In reply to this post by smaran
Reposting because I missed the raw tags:

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):

<page id="crud" path-info="/crud" view="crud.xpl"/>

And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):
<parameters>
<parameter>
<name>username</name>
<value>tom</value>
</parameter>
<parameter>
<name>password</name>
<value>insecure</value>
</parameter/>
</parameters>

Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.

<p:processor name="oxf:request">
<p:input name="config">
<config>
<include>/request</include>
</config>
</p:input>
<p:output name="data" id="request" debug="request"/>
</p:processor>

Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:

<p:processor name="oxf:scope-generator">
<p:input name="config">
<config>
<key>isValid</key>
<scope>session</scope>
<session-scope>application</session-scope>
</config>
</p:input>
<p:output name="data" id="isValid"/>
</p:processor>

Hope that helps,

Tom
Reply | Threaded
Open this post in threaded view
|

RE: RE: Re: Can anyone tell me where this file will be whats the name of this

Tom Grahame
In reply to this post by smaran
Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):

<page id="crud" path-info="/crud" view="crud.xpl"/>

And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):
<parameters>
<parameter>
<name>username</name>
<value>tom</value>
</parameter>
<parameter>
<name>password</name>
<value>insecure</value>
</parameter/>
</parameters>

Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.

<p:processor name="oxf:request">
<p:input name="config">
<config>
<include>/request</include>
</config>
</p:input>
<p:output name="data" id="request" debug="request"/>
</p:processor>

Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:

<p:processor name="oxf:scope-generator">
<p:input name="config">
<config>
<key>isValid</key>
<scope>session</scope>
<session-scope>application</session-scope>
</config>
</p:input>
<p:output name="data" id="isValid"/>
</p:processor>

Hope that helps,

Tom
Reply | Threaded
Open this post in threaded view
|

RE: RE: RE: Re: Can anyone tell me where this file will be whats the name of this

smaran
Hi
 You mean to say I have following url while creating new form http://localhost:8080/orbeon-PE/fr/orbeon/builder/new
so you suggest me to change url as below?
http://localhost:8080/orbeon-PE/fr/orbeon/builder/new?username=smaran
so that I can acess in crud.xpl as
<username><xsl:value-of select="$request/ username "/></username>


Please correct me if I am wrong attaching my crud.xpl for reference
Regards,
Smaran

-----Original Message-----
From: Tom Grahame [mailto:[hidden email]]
Sent: Tuesday, March 08, 2011 8:35 PM
To: [hidden email]
Subject: [ops-users] RE: RE: Re: Can anyone tell me where this file will be whats the name of this

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):



And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):



username
tom


password
insecure




Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.





/request






Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:





isValid
session
application






Hope that helps,

Tom

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-anyone-tell-me-where-this-file-will-be-whats-the-name-of-this-tp3341219p3341548.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


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

crud.xpl (37K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RE: RE: RE: Re: Can anyone tell me where this file will be whats the name of this

Erik Bruchez
Administrator
Smaran,

crud.xpl is the implementation of the persistence services, i.e.:

/fr/service/oracle/crud/…

This URL is not the same as the URL that you see in your browser. It is the URL of an HTTP service, called either from XPL, or from XForms, as explained in another message.

If you want to pass parameters to an HTTP service, you have a few options:

* use the request body; this is not possible here because the body contains the form definition of data
* use request parameters; this should be possible here
* use HTTP headers; this should also be possible here

There are 2 sides to this:

* crud.xpl extracting the request parameters/headers from the request, using oxf:request
* whoever calls the service must pass those request parameters/headers

-Erik

On Tue, Mar 8, 2011 at 9:09 PM, <[hidden email]> wrote:
Hi
 You mean to say I have following url while creating new form http://localhost:8080/orbeon-PE/fr/orbeon/builder/new
so you suggest me to change url as below?
http://localhost:8080/orbeon-PE/fr/orbeon/builder/new?username=smaran
so that I can acess in crud.xpl as
<username><xsl:value-of select="$request/ username "/></username>


Please correct me if I am wrong attaching my crud.xpl for reference
Regards,
Smaran

-----Original Message-----
From: Tom Grahame [mailto:[hidden email]]
Sent: Tuesday, March 08, 2011 8:35 PM
To: [hidden email]
Subject: [ops-users] RE: RE: Re: Can anyone tell me where this file will be whats the name of this

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):



And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):



username
tom


password
insecure




Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.





/request






Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:





isValid
session
application






Hope that helps,

Tom

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-anyone-tell-me-where-this-file-will-be-whats-the-name-of-this-tp3341219p3341548.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


--
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: Can anyone tell me where this file will be whats the name of this

smaran

Hi All,

Say for example I am creating new form as shown in below url

http://localhost:8080/orbeon-PE/fr/orbeon/builder/new

so to pass request  parameters from here how can I achive this is there any sample code?

http://localhost:8080/orbeon-PE/fr/orbeon/builder/new?username=smaran

Regards,

Smaran

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Wednesday, March 09, 2011 10:52 AM
To: [hidden email]
Subject: [ops-users] Re: RE: RE: RE: Re: Can anyone tell me where this file will be whats the name of this

 

Smaran,

 

crud.xpl is the implementation of the persistence services, i.e.:

 

/fr/service/oracle/crud/…

 

This URL is not the same as the URL that you see in your browser. It is the URL of an HTTP service, called either from XPL, or from XForms, as explained in another message.

 

If you want to pass parameters to an HTTP service, you have a few options:

 

* use the request body; this is not possible here because the body contains the form definition of data

* use request parameters; this should be possible here

* use HTTP headers; this should also be possible here

 

There are 2 sides to this:

 

* crud.xpl extracting the request parameters/headers from the request, using oxf:request

* whoever calls the service must pass those request parameters/headers

 

-Erik

 

On Tue, Mar 8, 2011 at 9:09 PM, <[hidden email]> wrote:

Hi
 You mean to say I have following url while creating new form http://localhost:8080/orbeon-PE/fr/orbeon/builder/new
so you suggest me to change url as below?
http://localhost:8080/orbeon-PE/fr/orbeon/builder/new?username=smaran
so that I can acess in crud.xpl as
<username><xsl:value-of select="$request/ username "/></username>


Please correct me if I am wrong attaching my crud.xpl for reference
Regards,
Smaran

-----Original Message-----
From: Tom Grahame [mailto:[hidden email]]

Sent: Tuesday, March 08, 2011 8:35 PM
To: [hidden email]

Subject: [ops-users] RE: RE: Re: Can anyone tell me where this file will be whats the name of this

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):



And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):



username
tom


password
insecure




Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.





/request






Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:





isValid
session
application






Hope that helps,

Tom

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-anyone-tell-me-where-this-file-will-be-whats-the-name-of-this-tp3341219p3341548.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



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

 

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



--
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: Can anyone tell me where this file will be whats the name of this

smaran
In reply to this post by Erik Bruchez

Hi All,

Can any one let me know where I need modify the code exactly

Regards,

Smaran

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Wednesday, March 09, 2011 10:52 AM
To: [hidden email]
Subject: [ops-users] Re: RE: RE: RE: Re: Can anyone tell me where this file will be whats the name of this

 

Smaran,

 

crud.xpl is the implementation of the persistence services, i.e.:

 

/fr/service/oracle/crud/…

 

This URL is not the same as the URL that you see in your browser. It is the URL of an HTTP service, called either from XPL, or from XForms, as explained in another message.

 

If you want to pass parameters to an HTTP service, you have a few options:

 

* use the request body; this is not possible here because the body contains the form definition of data

* use request parameters; this should be possible here

* use HTTP headers; this should also be possible here

 

There are 2 sides to this:

 

* crud.xpl extracting the request parameters/headers from the request, using oxf:request

* whoever calls the service must pass those request parameters/headers

 

-Erik

 

On Tue, Mar 8, 2011 at 9:09 PM, <[hidden email]> wrote:

Hi
 You mean to say I have following url while creating new form http://localhost:8080/orbeon-PE/fr/orbeon/builder/new
so you suggest me to change url as below?
http://localhost:8080/orbeon-PE/fr/orbeon/builder/new?username=smaran
so that I can acess in crud.xpl as
<username><xsl:value-of select="$request/ username "/></username>


Please correct me if I am wrong attaching my crud.xpl for reference
Regards,
Smaran

-----Original Message-----
From: Tom Grahame [mailto:[hidden email]]

Sent: Tuesday, March 08, 2011 8:35 PM
To: [hidden email]

Subject: [ops-users] RE: RE: Re: Can anyone tell me where this file will be whats the name of this

Smaran,

There are two ways that I can think of to add attributes to that XML infoset; changing the HTTP request that the request generator is describing and transforming the infoset using XSLT. I think the first way is the one you might be interested in.

Depending upon how crud.xpl is activated in page-flow, you could add URL parameters to a GET request and they would appear in the request infoset. So if your page flow was like this (not tested):



And you made this GET request

http://locahost:8080/orbeon/crud?username=tom&password=insecure

This would appear as part of your request infoset (the rest of the infoset excluded for brevity):



username
tom


password
insecure




Similarly, if you change any other parts of the HTTP request the crud.xpl receives, like the port, remote address, or anything else, those values will be changed in the request infoset.

I recommend you add a debug attribute to your request generator and then execute crud.xpl with different HTTP requests, whilst watching the output of orbeon.log to see how the XML changes.





/request






Now if what you're actually trying to achieve is an authentication mechanism, I have had success by reading session parameters in XPL using the scope-generator processor. In my application a Struts action handles the authentication against LDAP and writes a parameter isValid into the session if the authentication is successful. Any pipelines that need to be authenticated are able to read from the session and check for that value:





isValid
session
application






Hope that helps,

Tom

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-anyone-tell-me-where-this-file-will-be-whats-the-name-of-this-tp3341219p3341548.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



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

 

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



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