This method is the simplest one in EC. It simply returns the version number of Perfion.
| GetVersion | |
| Parameters | None |
| Sample request | |
| Sample result | |
Table 14: GetVersion-method.
As can be seen a request is simply an Xml-document with a root-element named Execute that has a method-attribute telling which method to call. In the case GetVersion.
Notice in Table 14 how a response from EC looks. It is always a root-element named Response with either a “Result”-element if everything went well or an “Error”-element if something when wrong. A sample Response with an error can be seen in Table 15 below. The error here is provoked by the fact that we asks for product from a non-existing Channel. Without a proper channel EC does not know which settings and mappings to use and returns an error as shown here:
| Sample error using GetProducts | |
| Sample request | |
| Sample result | |
Table 15: Error provoked by supplying a non-existing channel to GetProducts-method.
Comments
0 comments
Please sign in to leave a comment.