How to generate a API Response from respective request API in .Net?
I need to pass the API request(XML, object, json etc) of the T24 wsdl and on consuming the same in .Net using c#, I want to get the response as needed for the request XML or so we passed.
I want to integrate this into our c# application and get the response XML as required from the tool for the respective request XML .
In below code need to get the Response Xml from the tool Runscope . Awaiting a response asap
Core code is as below:
strXMLRequest - Request Xml
strXMLResponse- Response Xml
CHANNEL- Channel Passed
ReqSend- Method in the WSDL file.
T24 Connecting Url
public string ReqSend(StringBuilder strXMLRequest, string CHANNEL)
string strXMLResponse = string.Empty;
T24ConnectorService t24connect = new T24ConnectorService();
string strURL = ConfigurationManager.AppSettings["T24Connector.T24Connector"].ToString();
t24connect.Url = strURL;
strXMLResponse = t24connect. ReqSend(CHANNEL, strXMLRequest.ToString());
catch (Exception ex)
throw ex; } return strXMLResponse; }