Here is my sample request,
<?xml version=”1.0” encoding=”UTF-8”?><methodCall><methodName>login</methodName><params><param><value><struct><member><name>password</name><value><string>XXXXXXXXXX</string></value></member><member><name>username</name><value><string>XXXX@XXX.com</string></value></member></struct></value></param></params></methodCall>
Here is my sample successful response for the request:
<struct><member><name>id</name><value><string>12345</string></value></member><member><name>api_status</name><value><int>200</int></value></member></struct>
Question:
I was trying to call an API endpoint from a .NET console application. But, it didn't get connected to the server. Can anyone tell me how can I call this API endpoint using C#?