|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Newbie stuck on HTTP PUTApologies if this question has been asked many times before (although I can't find much about it).
I'm stuck trying to do a PUT to Orbeon. I can't seem to access the XML submission instance - I simply get <null/> in the response. I'm using CURL to try and do this. If I try: curl -T c:\research\curl1.xml -X PUT http://localhost:8080/exis t/rest/db/tso-demos/mytest -u admin:demos my exist DB is quite happily updated. However, if I try: curl -T c:\research\curl1.xml -X PUT http://localhost:8080/tso- demos/users/pappleby/tags/test things don't work. I have the following page flow line which correctly picks up the page: <page path-info="/tso-demos/users/([^/]+)/tags/([^/]+)" matcher="oxf:perl5-matcher" view="xpl/test.xpl"/> (I've got the regular expressions as I want to eventually do some URL processing too). And the following pipeline: <?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"> <p:param name="data" type="output"/> <p:param name="instance" type="input"/> <p:processor name="oxf:xslt"> <p:input name="config" href="xml-xhtml.xsl"/> <p:input name="data" href="#instance"/> <p:output name="data" id="xhtmlData" ref="data" /> </p:processor> </p:config> If I replace #instance with some actual XML in the input element that is being returned okay. It simply isn't picking up the submitted XML document, which looks like: <?xml version="1.0" encoding="UTF-8"?> <submission> <uri>HELLO WORLD</uri> </submission> My XSL is also simple: <xsl:template match="/"> <xhtml:html> <xhtml:body> <xhtml:h1>TESTING</xhtml:h1> <xsl:copy-of select="."/> </xhtml:body> </xhtml:html> </xsl:template> I'm pulling my hair out. I thought this bit would be easy! Any pointer will be very welcome. Thanks Paul |
|
|
|
|
|
Re: Newbie stuck on HTTP PUTPaul,
On Aug 24, 2008, at 9:56 AM, Paul Appleby wrote: > Apologies if this question has been asked many times before > (although I can't > find much about it). I don't see anything obviously wrong with the code you quoted. Do you have this code deployed in apps/tso-demos? Would it be possible for your to zip up the content of that directory, attach the zip to a message here so we can reproduce the issue you described? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet |
|
|
Re: Re: Newbie stuck on HTTP PUTRyan,
On Aug 24, 2008, at 12:01 PM, Ryan Puddephatt wrote: > Paul, > Try using the request processor, I don't think instance will be > populated in this case Right! I didn't notice Paul was doing a PUT. I should have started by reading the message title :). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet |
|
|
|
| Free Forum Powered by Nabble | Forum Help |