Hi,
I'm trying to build an OPS solution that can read XML from URL like http://example.com and write XML to this URL. This URL can be inside or outside the OPS domain. So to read XML I'm using the oxf:url-generator which give me good results. But I'm not able to send XML. I try to use oxf:url-serializer with no success. <p:processor name="oxf:url-serializer" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <config> <url>http://example.com</url> </config> </p:input> <p:input name="data" href="#instance"/> </p:processor> I try with the xforms submission element : <xforms:submission id="send" ref="instance('instance')" method="get" action="http://example.com" replace="none" /> and I loose some tags and attributes as mentionned in http://www.orbeon.com/ops/doc/reference-xforms-ng#d5198173e3713 Any comments ? Marc -- 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
|
Marc,
Great, we want you to be able to do that with OPS and XForms ;-) To do this from XPL, check the following thread: http://mail-archive.objectweb.org/ops-users/2006-05/msg00218.html With that pipeline, you can POST, PUT, GET and DELETE at an HTTP URL. The configuration uses the same construct as the XForms submission element. From XForms, I see that you are using method="get" from XForms: this for sure will not POST your XML document, but it will follow the XForms spec for GET, which means that it will build a URL with the local names of the elements in your XForms instance. Use method="post" or "put" instead. Also, make sure you should use a recent build. It is probable that the URL serializer doesn't do everything it should do. I see that it does write the document to URL connection, but it does not specify a method, so for now it is not advised to use it except to write to the file: or to the oxf: protocol. I hope this helps, -Erik [hidden email] wrote: > Hi, > > I'm trying to build an OPS solution that can read XML from URL like > http://example.com and write XML to this URL. > This URL can be inside or outside the OPS domain. > > So to read XML I'm using the oxf:url-generator which give me good > results. > > But I'm not able to send XML. > I try to use oxf:url-serializer with no success. > > <p:processor name="oxf:url-serializer" > xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <p:input name="config"> > <config> > <url>http://example.com</url> > </config> > </p:input> > <p:input name="data" href="#instance"/> > </p:processor> > > I try with the xforms submission element : > > <xforms:submission id="send" ref="instance('instance')" method="get" > action="http://example.com" replace="none" /> > > and I loose some tags and attributes as mentionned in > http://www.orbeon.com/ops/doc/reference-xforms-ng#d5198173e3713 > > Any comments ? > > Marc Orbeon - XForms Everywhere: 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 |
In reply to this post by Marc.Benimeli
>Great, we want you to be able to do that with OPS and XForms ;-) Cool :-) >To do this from XPL, check the following thread: > http://mail-archive.objectweb.org/ops-users/2006-05/msg00218.html >With that pipeline, you can POST, PUT, GET and DELETE at an HTTP URL. >The configuration uses the same construct as the XForms submission element. Yes, that's what I want! And it works fine. Thanks Erik, Marc -- 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 |