question about SimpleBufferAlgorithm on wps source code

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

question about SimpleBufferAlgorithm on wps source code

lvyou6412957
hi everyone:
  when I send the SimpleBuffer.xml to http://localhost:8080/52n-wps-webapp/WebProcessingService,It failed.
 The eclipse console showed:,It says "org.n52.wps.server.request.ExecuteRequest: Update of process status failed.
org.n52.wps.server.ExceptionReport: Could not create Inline Complex Data from the process result";When I send the  SimpleBuffer.xml to http://localhost:8080/wps/WebProcessingService,it succeed.
what't wrong?
the wrong log:新建文本文档.txt
Reply | Threaded
Open this post in threaded view
|

Re: question about SimpleBufferAlgorithm on wps source code

BenjaminPross
If you run your WPS under http://localhost:8080/52n-wps-webapp/WebProcessingService, you will have to make sure, that the webappPath property in the wps_config is set to 52n-wps-webapp. Hostname, port and webappPath in the config always need to match the real URL of the WPS.
Using http://localhost:8080/wps/WebProcessingService worked, because these are the default settings in the wps_config.
Reply | Threaded
Open this post in threaded view
|

Re: question about SimpleBufferAlgorithm on wps source code

lvyou6412957
Thanks for your reply, I think I have done that.Because the GetGapbilities and DescribeProcess can response ,And I can add myself algorithm to it. I send to  <a href="http:// http://localhost:8080/52n-wps-webapp/WebProcessingService">http://localhost:8080/52n-wps-webapp/WebProcessingService because
I run the source code.I noticed the SimpleBufferAlgorithm.xml in /52n-wps-server/src/test/resources in eclipse
has errors ,1.png,Is this question?

Another question ,When I send the SimpleBuffer request to http://localhost:8080/wps/WebProcessingService by  java code ,it also meet question.here is the java code:TestExecute.java,what's wrong ?
Reply | Threaded
Open this post in threaded view
|

Re: question about SimpleBufferAlgorithm on wps source code

BenjaminPross
As for your first question: What is the error? Anyway, this seems to be a problem specific to a certain version of Eclipse. With version Kepler JEE Service Release 2 for example this issues doesn't appear.

As for your second question, you will have to set the encoding of the input to null, i.e. replace "UTF-8" by null in lines 125 and 134. How to work with the client API is described in the tutorial here [1].

Hope this helps.

Benjamin

[1] https://wiki.52north.org/bin/view/Geoprocessing/TutorialClientAPI