ServiceStack Examples

<back to all web services

GetFactorial

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/syncreply/GetFactorial HTTP/1.1 
Host: ec2-107-22-127-92.compute-1.amazonaws.com 
Content-Type: application/xml
Content-Length: length

<GetFactorial xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <ForNumber>0</ForNumber>
</GetFactorial>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetFactorialResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Result>0</Result>
</GetFactorialResponse>