Fix HTTP method when calling functions

The HTTP method was hardcoded to GET when calling service funtions. As
the correct method is available in the function metadata it is quite
esay to ensure that the correct method is called.