cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Barker <>
Subject Problems with post data
Date Mon, 08 Nov 2004 12:20:30 GMT

I have set up a configuration as follows;
I post data to Cocoon in compressed format, Apache Server (in front of 
Cocoon) then decompresses the compressed XML before passing this onto
Cocoon which at the moment just has a simple stream generator as follows
    <map:match pattern="midascompressed.xml">
        <map:generate type="stream"/>
        <map:serialize type="xml"/>

I put tcpmon in between Apache and Cocoon to see what is going on and 
the XML is being inflated as the dump belows shows.
However Cocoon reports XML document structures must start and end within 
the same entity!  Has anyone done this, got any ideas
as to why mine is failing?
POST /cocoon/midascompressed.xml HTTP/1.1
Content-Encoding: gzip
Content-Type: application/xml
Content-Length: 336
User-Agent: Java/1.4.2_04
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Max-Forwards: 10
X-Forwarded-Host: localhost
<OpenPortalRequest xmlns="" 
xmlns:xsi="">    <Requests>    
    <Request>            <TimeWindow>                <!-- 
CCYY-MM-DDThh:mm:ss  -->                
</TimeWindow>            <!-- GUID is the name of the layer in the WFS 
and WMS -->            <DataDescriptorGUID GUID="weather"/>            
<Area>                <StartLatitude>49.850</StartLatitude>            
<EndLongitude>1.5074</EndLongitude>            </Area>        
</Request>    </Requests></OpenPortalRequest>

Many thanks,


Norman Barker
Software Engineer
ComSine Ltd
Tel: +44 (0)1483 457121
*Please Note:*
This text is confidential. If you are not the named addressee, it could be unlawful for you
to read, copy, distribute, disclose or use the information contained herewith. If you are
not the intended recipient please telephone +44(0)1483 457121.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message