First page Back Continue Last page Image

How to test a Web Service Request

http://localhost:8080/erp5/portal_integrations/magento/person_module

Returns a list of Brain objects (1 brain = 1 person)

http://localhost:8080/erp5/portal_integrations/magento/person_module/8/asXML

<node>

<title>John Doe</title>

<firstname>John</firstname>

<lastname>Doe</lastname>

<email>john@doe.eu</email>

<address>

<street>8 rue du 14 juillet</street>

<zip>59000</zip>

<city>Lille</city>

<country>France</country>

</address> </node>

Returns representation of the object in TioSafe XML

Local object ID in application (here magento)


Notes:

Web Services Request can be simply tested by calling their URL.

In case of module, the url (like site/person_module) must returns a list of brain objects. This represents the listing of a module.

As WSR are traversable, it is possible to call directly for an object given its id (like site/person_module/8), this returns just one brain object. Calling asXML object on it (site/person_module/8/asXMl) will returns the representation of the object in TioSafe XML.