Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to call an API which is based on XML-RPC specification in C#?

$
0
0

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#?


Viewing all articles
Browse latest Browse all 3067

Trending Articles