You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Rui Alberto L. Gonçalves" <ru...@ptinovacao.pt> on 2004/02/09 17:03:49 UTC
read from socket and serialize
Hi all,
I need to connect to a socket, write some command (XML) and read back
from socket a large amount of information. Response data is plain
text, but not xml based!!!
I already have MyRequestGenerator, that produces the XML that
should be sent through the socket based on incoming request,
since it's already used for other purposes.
Which would be the better approach for this problem under cocoon?
Writing a special serializer that takes the command as a parameter
and serializes the response directly?
<map:serialize type="socket">
<input-source>cocoon:/some-source</input-source>
</map:serialize>
Any suggestions?
Many thanks...
Rui
--
Rui Alberto L. Gonçalves <ru...@ptinovacao.pt>
PT Inovação
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: read from socket and serialize
Posted by "Rui Alberto L. Gonçalves" <ru...@ptinovacao.pt>.
Just some corrections...
On Mon, 2004-02-09 at 16:03, Rui Alberto L. Gonçalves wrote:
> Hi all,
>
> I need to connect to a socket, write some command (XML) and read back
> from socket a large amount of information. Response data is plain
> text, but not xml based!!!
>
> I already have MyRequestGenerator, that produces the XML that
> should be sent through the socket based on incoming request,
> since it's already used for other purposes.
>
> Which would be the better approach for this problem under cocoon?
> Writing a special reader?
>
<map:read type="socket" src="cocoon:/somesource"/>
Where src produces the required information to contact
the the server and perform the request!
> Any suggestions?
>
> Many thanks...
>
> Rui
>
>
--
Rui Alberto L. Gonçalves <ru...@ptinovacao.pt>
PT Inovação
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org