# What are the XML RPC API equivalent for OneFlow REST API?

**URL:** <https://forum.opennebula.io/t/what-are-the-xml-rpc-api-equivalent-for-oneflow-rest-api/4639>\
**Category:** Integration Support\
**Created:** [July 24, 2017, 10:41am UTC](https://forum.opennebula.io/t/what-are-the-xml-rpc-api-equivalent-for-oneflow-rest-api/4639 "2017-07-24T10:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjith](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ranjith/32/5081_2.png) [@ranjith](https://forum.opennebula.io/u/ranjith)\
**Post date:** [July 24, 2017, 10:41am UTC](https://forum.opennebula.io/t/what-are-the-xml-rpc-api-equivalent-for-oneflow-rest-api/4639/1 "2017-07-24T10:41:06Z")

</div>

I want to implement Service Template and Service creation using XML RPC API. How to do it? I went through the XML RPC API doc and was not able to find any method for getting the list of services. Is there a way wherein I can use Openflow REST API programmatically for acheiving the same. Sample code would be helpful

---

<div class="post-metadata">

**Author:** ![parak](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/parak/32/5450_2.png) [@parak](https://forum.opennebula.io/u/parak)\
**Post date:** [July 24, 2017, 4:54pm UTC](https://forum.opennebula.io/t/what-are-the-xml-rpc-api-equivalent-for-oneflow-rest-api/4639/2 "2017-07-24T16:54:25Z")

</div>

Services and Service Templates are implemented as Documents (custom type). Described in OCA here [1] and in Ruby here [2]. You could also use the `oneflow` REST API [3]. Personally, I would go for the latter to avoid future breakage in case of low-level changes. If using XML RPC is a hard requirement for you, you should be able to access raw data as described in the first link.

[1] [http://docs.opennebula.org/5.4/integration/system\_interfaces/api.html#actions-for-document-management](http://docs.opennebula.org/5.4/integration/system_interfaces/api.html#actions-for-document-management)  
[2] [https://github.com/OpenNebula/one/tree/master/src/flow/lib/models](https://github.com/OpenNebula/one/tree/master/src/flow/lib/models)  
[3] [http://docs.opennebula.org/5.4/integration/system\_interfaces/appflow\_api.html#methods](http://docs.opennebula.org/5.4/integration/system_interfaces/appflow_api.html#methods)

---

<div class="post-metadata">

**Author:** ![ranjith](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ranjith/32/5081_2.png) [@ranjith](https://forum.opennebula.io/u/ranjith)\
**Post date:** [July 25, 2017, 8:04am UTC](https://forum.opennebula.io/t/what-are-the-xml-rpc-api-equivalent-for-oneflow-rest-api/4639/3 "2017-07-25T08:04:45Z")

</div>

Thanks parak
