cocoon-users mailing list archives

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

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"/>
    </map:match>

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
Host: 127.0.0.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-For: 127.0.0.1
X-Forwarded-Host: localhost
X-Forwarded-Server: www.train2.com
<OpenPortalRequest xmlns="http://www.myserver.org" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <Requests>    
    <Request>            <TimeWindow>                <!-- 
CCYY-MM-DDThh:mm:ss  -->                
<StartDateTime>2004-10-01T11:00:00</StartDateTime>                
<EndDateTime>2004-10-10T11:00:00</EndDateTime>            
</TimeWindow>            <!-- GUID is the name of the layer in the WFS 
and WMS -->            <DataDescriptorGUID GUID="weather"/>            
<Area>                <StartLatitude>49.850</StartLatitude>            
    <StartLongitude>-1.173</StartLongitude>                
<EndLatitude>50.350</EndLatitude>                
<EndLongitude>1.5074</EndLongitude>            </Area>        
</Request>    </Requests></OpenPortalRequest>

Many thanks,

Norman

-- 
Norman Barker
Software Engineer
ComSine Ltd
Tel: +44 (0)1483 457121
Web: http://www.comsine.com
*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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message