I’m writing a flow service that we will expose as a web service. I’ve written two document types, one for input and another for output, for example:
so every output value are at top level of doc type.
Since our main clients will be java apps, we’ve played a bit with Eclipse and generated a client to invoke that ws. Since output values are at top level, the client has a method where the first param is the input one, and all the other method params are output values; it’s really ugly!
So we do defined output doc type as:
so results is a document with output values inside itself. This way, genrating a java client, it will create a method with one input paramenter and returns a bean with output parameters.
So, I’d like to know, if defining an output document type, with only one top level variable (a documents), and inside it all output values is a suggest / best practice in developing flow services to be exposed as web services.