On Wed, Aug 17, 2011 at 4:04 PM, Ivan Suftin <[email protected]> wrote: > Here's what my current request looks like (I shortened the base64 encoding): > > <?xml version="1.0" encoding="UTF-8"?> > <wps:Execute service="WPS" version="1.0.0" > xmlns:wps="http://www.opengis.net/wps/1.0.0" > xmlns:ows="http://www.opengis.net/ows/1.1" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 > http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd"> > <ows:Identifier>gs:Import</ows:Identifier> > <wps:DataInputs> > <wps:Input> > <ows:Identifier>features</ows:Identifier> > <wps:Data> > <wps:ComplexData mimeType="application/zip" > encoding="Base64"><![CDATA[UEsDBBQAAA...AAA==]]></wps:ComplexData> > </wps:Data> > </wps:Input> > <wps:Input> > <ows:Identifier>workspace</ows:Identifier> > <wps:Data> > <wps:LiteralData>upload</wps:LiteralData> > </wps:Data> > </wps:Input> > <wps:Input> > <ows:Identifier>store</ows:Identifier> > <wps:Data> > <wps:LiteralData>test</wps:LiteralData> > </wps:Data> > </wps:Input> > </wps:DataInputs> > <wps:ResponseForm> > <wps:ResponseDocument> > <wps:Output> > <ows:Identifier>layerName</ows:Identifier> > </wps:Output> > </wps:ResponseDocument> > </wps:ResponseForm> > </wps:Execute> > > The result I see is: > <?xml version="1.0" encoding="UTF-8"?> > <ows:ExceptionReport version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://localhost:8081/geoserver/schemas/ows/1.1.0/owsAll.xsd" > xmlns:ows="http://www.opengis.net/ows/1.1" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <ows:Exception exceptionCode="NoApplicableCode"> > <ows:ExceptionText>Process returned with an exception > Could not convert (encoded data block) to target type > org.geotools.data.simple.SimpleFeatureCollection</ows:ExceptionText> > </ows:Exception> > </ows:ExceptionReport>
I actually never tried to do base64 encoding of the zipped files, it may be that the code handling that case is not working as expected. Another possibility is that the POST request has grown so large that the container refuses to handle it Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
