A community for Application Developers on OrangeScape's Platform-as-a-Service
We’ve seen how to access external resources via web services from Orangescape. You can read about it here and here. Sometimes you might want to do the reverse, access Orangescape from external applications. You can do the same with web services.
By Default everything in Orangescape is exposed as web service. Orangescape exposes as both SOAP based and REST web service. Here we will see how to go about with SOAP based.
To get the WSDL for a particular model, the url would be of the following structure.
http://<appspot / server url>/<applicationId>/1/<modelId>/<ActivityId>/<modelId>?wsdl
If you find it difficult to understand, in your runtime, goto a queue of a model and copy the url. The structure would be as follows,
http://<appspot url>/<applicationId>/1/<modelId>/<ActivityId>?mimetype=text/htmlnow you can change it to the format mentioned above.
Now you can use this wsdl url in your soap client / application to access Orangescape.
While accessing by default all the fields and two actions (Update & Submit) are exposed. If you need access to your actions, you will need to add them to the default form of that model, and then those too will be available to be invoked via web service.
You can access records of a model by either the system generated unique id (SheetId) or by a unique value which you had set (SheetName). As you can see in the screenshot above, i have requested for the record with the sheetname value India, and the response shows the values for all fields of the model Country with SheetName India. To update a value to a particular field, send the value in the request and it will be updated.
Similarly if you use the submit request, the value will be updated and submited in the workflow. If you have any other actions added to the default form, they too will come up in the actions list, which you can use, in a similar fashion.