You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Per Kreipke <pe...@onclave.com> on 2002/08/19 19:12:04 UTC

[Q] SourceWritingTransfomer + WriteableSources via POST?

I can't quite find in the current source tree any other writeable source
other than the SlideSource or the FileSource.

Is there already a WriteableSource that can POST to a HTTP resource?

Or is there another built-in way to have Frontier POST data from some
sitemap component (e.g. XSP, generator, transformer, action)?

Thanks for any pointers,

Per


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: [Q] SourceWritingTransfomer + WriteableSources via POST?

Posted by Per Kreipke <pe...@onclave.com>.
Stephan,

I looked at the WebDAVSource*.java code.

- it's based on the org.apache.webdav.* packages. Presumably that's Slide's
client library? If not, which JAR please?

- I read the email about htpclient. That's too bad. I can just see the soap
now (the one on TV not the XML one) - "When Open Source goes bad: API
compliance and their spouses".


Thanks for the pointer. While it's definitely interesting for other stuff,
it's not what I was originally asking about: a WriteableSource that can do
POST. I'll keep looking.

Per

> > > > I can't quite find in the current source tree any other
> writeable source
> > > > other than the SlideSource or the FileSource.
> > > >
> > > > Is there already a WriteableSource that can POST to a HTTP resource?
> > > >
> > > > Or is there another built-in way to have Frontier POST data
> from some
> > > > sitemap component (e.g. XSP, generator, transformer, action)?
> > > >
> > > > Thanks for any pointers,
> > > >
> > > > Per
> > >
> > > Do you mean PUT instead of POST? Then yes, I have wrote a WebDAVSource
> > > some time ago, and removed because of some incompatibilities with
> > > the httpclient lib.
> >
> > - Do those incompats still exist? Would I just be banging my
> head needlessly
> > :-)?
> >
> > - It would presumably show me how to POST if I wanted to. I'm
> interested in
> > saving data by POSTing an XML snippet in text/xml form to a backend DB.
> >
> >
> > > I got never the time to test it, if you are interested:
> > >
> > > cvs -Q update -p -r1.2
> > > src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAV
> > > Source.java
> > >
> > > cvs -Q update -p -r1.1
> > > src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAV
> > > SourceFactory.java
> >
> > I'll definitely look if I'm not going to be stymied by the
> httpclient lib.
>
>
> You should take the httpclient from the Slide project. Reasons why Slide
> have his own copy of the lib can be found at
>
> http://www.mail-archive.com/slide-user%40jakarta.apache.org/msg02584.html
>
> Stephan.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: [Q] SourceWritingTransfomer + WriteableSources via POST?

Posted by Stephan Michels <st...@apache.org>.


On Mon, 19 Aug 2002, Per Kreipke wrote:

> > > I can't quite find in the current source tree any other writeable source
> > > other than the SlideSource or the FileSource.
> > >
> > > Is there already a WriteableSource that can POST to a HTTP resource?
> > >
> > > Or is there another built-in way to have Frontier POST data from some
> > > sitemap component (e.g. XSP, generator, transformer, action)?
> > >
> > > Thanks for any pointers,
> > >
> > > Per
> >
> > Do you mean PUT instead of POST? Then yes, I have wrote a WebDAVSource
> > some time ago, and removed because of some incompatibilities with
> > the httpclient lib.
>
> - Do those incompats still exist? Would I just be banging my head needlessly
> :-)?
>
> - It would presumably show me how to POST if I wanted to. I'm interested in
> saving data by POSTing an XML snippet in text/xml form to a backend DB.
>
>
> > I got never the time to test it, if you are interested:
> >
> > cvs -Q update -p -r1.2
> > src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAV
> > Source.java
> >
> > cvs -Q update -p -r1.1
> > src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAV
> > SourceFactory.java
>
> I'll definitely look if I'm not going to be stymied by the httpclient lib.


You should take the httpclient from the Slide project. Reasons why Slide
have his own copy of the lib can be found at

http://www.mail-archive.com/slide-user%40jakarta.apache.org/msg02584.html

Stephan.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: [Q] SourceWritingTransfomer + WriteableSources via POST?

Posted by Per Kreipke <pe...@onclave.com>.
> > I can't quite find in the current source tree any other writeable source
> > other than the SlideSource or the FileSource.
> >
> > Is there already a WriteableSource that can POST to a HTTP resource?
> >
> > Or is there another built-in way to have Frontier POST data from some
> > sitemap component (e.g. XSP, generator, transformer, action)?
> >
> > Thanks for any pointers,
> >
> > Per
>
> Do you mean PUT instead of POST? Then yes, I have wrote a WebDAVSource
> some time ago, and removed because of some incompatibilities with
> the httpclient lib.

- Do those incompats still exist? Would I just be banging my head needlessly
:-)?

- It would presumably show me how to POST if I wanted to. I'm interested in
saving data by POSTing an XML snippet in text/xml form to a backend DB.


> I got never the time to test it, if you are interested:
>
> cvs -Q update -p -r1.2
> src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAV
> Source.java
>
> cvs -Q update -p -r1.1
> src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAV
> SourceFactory.java

I'll definitely look if I'm not going to be stymied by the httpclient lib.

Per


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: [Q] SourceWritingTransfomer + WriteableSources via POST?

Posted by Stephan Michels <st...@apache.org>.


On Mon, 19 Aug 2002, Per Kreipke wrote:

> I can't quite find in the current source tree any other writeable source
> other than the SlideSource or the FileSource.
>
> Is there already a WriteableSource that can POST to a HTTP resource?
>
> Or is there another built-in way to have Frontier POST data from some
> sitemap component (e.g. XSP, generator, transformer, action)?
>
> Thanks for any pointers,
>
> Per

Do you mean PUT instead of POST? Then yes, I have wrote a WebDAVSource
some time ago, and removed because of some incompatibilities with
the httpclient lib.

I got never the time to test it, if you are interested:

cvs -Q update -p -r1.2
src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAVSource.java

cvs -Q update -p -r1.1
src/scratchpad/src/org/apache/cocoon/components/source/impl/WebDAVSourceFactory.java

_______________________________________________________________________
         Stephan Michels               EMail: stephan@apache.org
         ICQ: 115535699                Tel: +49-030-314-21583
----+----|----+----|----+----|----+----|----+----|----+----|----+----|-|


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>