Is there an example of using the submission processor with no parameters? Is this what it should look like: <p:processor name="oxf:xforms-submission"> <p:input name="submission" href="#submission" /> <p:input name="request"> <parameters/> </p:input> <p:output name="response" id="response" /> </p:processor> Also, can I presume that this error is from parsing the response: Error uncompleted content model. expecting: <divs>(schema: oxf:/ops/xforms/xforms-server-response.rng) Thanks for any tips, --Hank Hank Ratzesberger Institute for Crustal Studies University of California, Santa Barbara -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hank,
With recent code, if you write: <xforms:submission serialize="false" ...> Then the input document won't be serialized. I am not sure why you get the validation error below though. What does your xforms:submission look like? -Erik Hank Ratzesberger wrote: > > Is there an example of using the submission processor with no > parameters? Is this what it should look like: > > <p:processor name="oxf:xforms-submission"> > <p:input name="submission" href="#submission" /> > <p:input name="request"> > <parameters/> > </p:input> > <p:output name="response" id="response" /> > </p:processor> > > Also, can I presume that this error is from parsing > the response: > > Error uncompleted content model. expecting: <divs>(schema: > oxf:/ops/xforms/xforms-server-response.rng) > > Thanks for any tips, > > --Hank > Hank Ratzesberger > Institute for Crustal Studies > University of California, Santa Barbara > > > > ------------------------------------------------------------------------ > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
The validation error is surely because authorization is failing and an invalid html/xhtml document is being returned. However, while I am able to access the url using the url-generator, I cannot with the xforms-submission processor. I have tried both user:pass@ and xxforms:user="" formats. So, I have a work around (url-generator) and am happy to run any tests you suggest. There is no test server that does not have real users and passwords, so providing a test case for you is problematic but not impossible. The submission: <xforms:submission method="get" serialize="false" action="https://user:pass@.../REST/File/facility/UCSB" /> also tried: <xforms:submission method="get" serialize="false" action="https://user:pass@.../REST/File/facility/UCSB" xxforms:username="user" xxforms:password="pass" /> Thank you, Hank ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, December 20, 2006 5:27 PM Subject: Re: [ops-users] Submission Pipleline with no Request Parameters > Hank, > > With recent code, if you write: > > <xforms:submission serialize="false" ...> > > Then the input document won't be serialized. I am not sure why you get > the validation error below though. What does your xforms:submission look > like? > > -Erik > > Hank Ratzesberger wrote: >> >> Is there an example of using the submission processor with no >> parameters? Is this what it should look like: >> >> <p:processor name="oxf:xforms-submission"> >> <p:input name="submission" href="#submission" /> >> <p:input name="request"> >> <parameters/> >> </p:input> >> <p:output name="response" id="response" /> >> </p:processor> >> >> Also, can I presume that this error is from parsing >> the response: >> >> Error uncompleted content model. expecting: <divs>(schema: >> oxf:/ops/xforms/xforms-server-response.rng) >> >> Thanks for any tips, >> >> --Hank >> Hank Ratzesberger >> Institute for Crustal Studies >> University of California, Santa Barbara >> >> >> >> ------------------------------------------------------------------------ >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.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 > ObjectWeb mailing lists service home page: http://www.objectweb.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
On 12/21/06, Hank Ratzesberger <[hidden email]> wrote:
> So, I have a work around (url-generator) and am happy to run any tests > you suggest. There is no test server that does not have real > users and passwords, so providing a test case for you is > problematic but not impossible. Hank, If this helps building a reproducible use case, you can use the following URL (login with ops/ops): http://www.scdi.org/~avernet/try/protected/index.xml Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex, I do get the same results using
your service. I suspect "pilot error" but I don't know what is wrong at this point. Immediately below is the submission element I form, next is the equivalent to my pipeline. Appreciate any tips. Best, Hank <xforms:submission method="get" serialize="false" action="http://www.scdi.org/~avernet/try/protect/index.xml" xxforms:username="ops" xxforms:password="ops"/> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <p:processor name="oxf:identity"> <p:input name="data"> <preferences xmlns=""> <username>ops</username> <password>ops</password> </preferences> </p:input> <p:output name="data" id="preferences"/> </p:processor> <p:processor name="oxf:xslt"> <p:input name="config"> <xsl:stylesheet> <xsl:template match="/preferences"> <xforms:submission method="get" serialize="false" action="http://www.scdi.org/~avernet/try/protect/index.xml" xxforms:username="ops" xxforms:password="ops" /> </xsl:template> </xsl:stylesheet> </p:input> <p:input name="data" href="#preferences" /> </p:processor> <p:processor name="oxf:xforms-submission"> <p:input name="submission" href="#submission" /> <p:input name="request"> <parameters/> </p:input> <p:output name="response" id="response" /> </p:processor> <p:processor name="oxf:xml-serializer"> <p:input name="config"> <config> <content-type>text/xml</content-type> </config> </p:input> <p:input name="data" href="#submission" /> </p:processor> </p:config> ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]> To: <[hidden email]> Sent: Thursday, December 21, 2006 6:11 PM Subject: Re: [ops-users] Submission Pipleline with no Request Parameters > On 12/21/06, Hank Ratzesberger <[hidden email]> wrote: >> So, I have a work around (url-generator) and am happy to run any tests >> you suggest. There is no test server that does not have real >> users and passwords, so providing a test case for you is >> problematic but not impossible. > > Hank, > > If this helps building a reproducible use case, you can use the > following URL (login with ops/ops): > > http://www.scdi.org/~avernet/try/protected/index.xml > > Alex > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hank,
You might have this problem because "ed" is missing in your URL (protected instead of protect). Try to run this pipeline in the XPL sandbox: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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" serialize="false" action="http://www.scdi.org/~avernet/try/protected/index.xml" xxforms:username="ops" xxforms:password="ops" /> </p:input> <p:input name="request"> <parameters/> </p:input> <p:output name="response" ref="data" /> </p:processor> </p:config> You will see that the output is <p>It worked!</p>, which is the content of the file http://www.scdi.org/~avernet/try/protected/index.xml. Alex On 12/22/06, Hank Ratzesberger <[hidden email]> wrote: > Thanks Alex, I do get the same results using > your service. I suspect "pilot error" but I don't > know what is wrong at this point. Immediately below > is the submission element I form, next is the > equivalent to my pipeline. Appreciate any tips. > > Best, Hank > > <xforms:submission > method="get" > serialize="false" > action="http://www.scdi.org/~avernet/try/protect/index.xml" > xxforms:username="ops" > xxforms:password="ops"/> > > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:oxf="http://www.orbeon.com/oxf/processors" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> > > <p:processor name="oxf:identity"> > <p:input name="data"> > <preferences xmlns=""> > <username>ops</username> > <password>ops</password> > </preferences> > </p:input> > <p:output name="data" id="preferences"/> > </p:processor> > > <p:processor name="oxf:xslt"> > <p:input name="config"> > <xsl:stylesheet> > <xsl:template match="/preferences"> > <xforms:submission method="get" serialize="false" > action="http://www.scdi.org/~avernet/try/protect/index.xml" > xxforms:username="ops" xxforms:password="ops" /> > </xsl:template> > </xsl:stylesheet> > </p:input> > <p:input name="data" href="#preferences" /> > </p:processor> > > <p:processor name="oxf:xforms-submission"> > <p:input name="submission" href="#submission" /> > <p:input name="request"> > <parameters/> > </p:input> > <p:output name="response" id="response" /> > </p:processor> > > <p:processor name="oxf:xml-serializer"> > <p:input name="config"> > <config> > <content-type>text/xml</content-type> > </config> > </p:input> > <p:input name="data" href="#submission" /> > </p:processor> > > </p:config> > > > ----- Original Message ----- > From: "Alessandro Vernet" <[hidden email]> > To: <[hidden email]> > Sent: Thursday, December 21, 2006 6:11 PM > Subject: Re: [ops-users] Submission Pipleline with no Request Parameters > > > > On 12/21/06, Hank Ratzesberger <[hidden email]> wrote: > >> So, I have a work around (url-generator) and am happy to run any tests > >> you suggest. There is no test server that does not have real > >> users and passwords, so providing a test case for you is > >> problematic but not impossible. > > > > Hank, > > > > If this helps building a reproducible use case, you can use the > > following URL (login with ops/ops): > > > > http://www.scdi.org/~avernet/try/protected/index.xml > > > > Alex > > -- > > Blog (XML, Web apps, Open Source): > > http://www.orbeon.com/blog/ > > > > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Sorry for that ommision. I do have things working in the sandbox. Probably need to clean my glasses... Thank you, Hank Quoting Alessandro Vernet <[hidden email]>: > Hank, > > You might have this problem because "ed" is missing in your URL > (protected instead of protect). Try to run this pipeline in the XPL > sandbox: > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:oxf="http://www.orbeon.com/oxf/processors" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > 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" serialize="false" > action="http://www.scdi.org/~avernet/try/protected/index.xml" > xxforms:username="ops" xxforms:password="ops" /> > </p:input> > <p:input name="request"> > <parameters/> > </p:input> > <p:output name="response" ref="data" /> > </p:processor> > > </p:config> > > You will see that the output is <p>It worked!</p>, which is the > content of the file > http://www.scdi.org/~avernet/try/protected/index.xml. > > Alex > > On 12/22/06, Hank Ratzesberger <[hidden email]> wrote: > > Thanks Alex, I do get the same results using > > your service. I suspect "pilot error" but I don't > > know what is wrong at this point. Immediately below > > is the submission element I form, next is the > > equivalent to my pipeline. Appreciate any tips. > > > > Best, Hank > > > > <xforms:submission > > method="get" > > serialize="false" > > action="http://www.scdi.org/~avernet/try/protect/index.xml" > > xxforms:username="ops" > > xxforms:password="ops"/> > > > > > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > > xmlns:oxf="http://www.orbeon.com/oxf/processors" > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xmlns:xforms="http://www.w3.org/2002/xforms" > > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> > > > > <p:processor name="oxf:identity"> > > <p:input name="data"> > > <preferences xmlns=""> > > <username>ops</username> > > <password>ops</password> > > </preferences> > > </p:input> > > <p:output name="data" id="preferences"/> > > </p:processor> > > > > <p:processor name="oxf:xslt"> > > <p:input name="config"> > > <xsl:stylesheet> > > <xsl:template match="/preferences"> > > <xforms:submission method="get" serialize="false" > > action="http://www.scdi.org/~avernet/try/protect/index.xml" > > xxforms:username="ops" xxforms:password="ops" /> > > </xsl:template> > > </xsl:stylesheet> > > </p:input> > > <p:input name="data" href="#preferences" /> > > </p:processor> > > > > <p:processor name="oxf:xforms-submission"> > > <p:input name="submission" href="#submission" /> > > <p:input name="request"> > > <parameters/> > > </p:input> > > <p:output name="response" id="response" /> > > </p:processor> > > > > <p:processor name="oxf:xml-serializer"> > > <p:input name="config"> > > <config> > > <content-type>text/xml</content-type> > > </config> > > </p:input> > > <p:input name="data" href="#submission" /> > > </p:processor> > > > > </p:config> > > > > > > ----- Original Message ----- > > From: "Alessandro Vernet" <[hidden email]> > > To: <[hidden email]> > > Sent: Thursday, December 21, 2006 6:11 PM > > Subject: Re: [ops-users] Submission Pipleline with no Request Parameters > > > > > > > On 12/21/06, Hank Ratzesberger <[hidden email]> wrote: > > >> So, I have a work around (url-generator) and am happy to run any tests > > >> you suggest. There is no test server that does not have real > > >> users and passwords, so providing a test case for you is > > >> problematic but not impossible. > > > > > > Hank, > > > > > > If this helps building a reproducible use case, you can use the > > > following URL (login with ops/ops): > > > > > > http://www.scdi.org/~avernet/try/protected/index.xml > > > > > > Alex > > > -- > > > Blog (XML, Web apps, Open Source): > > > http://www.orbeon.com/blog/ > > > > > > > > > > > > > > > > > > -- > > 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 > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |