To use a web service, you need to make an HTTP request using an XPRIM_HttpRequest object.
Below is an example of how to do a simple GET request, and get the response as a string:
Define_Com Class(#XPRIM_HttpRequest) Name(#Request)
Define_Com Class(#PRIM_DC.UnicodeString) Name(#ResponseText)

Next: Setting Up Your HTTP Request