Executing a PostQuery returns a URL, but I need a way to invoke a service
that does not strictly follow the REST philosophy. The service returns - on
successful completion of the insert - an instance (JSON) of the created object.

The documentation states:
"Pivot web queries are designed primarily to facilitate interaction with
JSON-based REST services. However, they are sufficiently generic to support
communication with any type of HTTP-based service, using any data format
(for example, XML). This renders the classes in the org.apache.pivot.web
package applicable to a broad range of server communication scenarios."

How do I proceed? Do I have to write my own subclass of Query? Or is there
some other way of accessing existing Web Service APIs that are not totally
RESTy?

Reply via email to