public XmlNodeList makeSoapCall(string payload) { // Instantiate a new instance of class to call MCI service. SoapConnector soapConnector = new SoapConnector(_endpoint); // Get XML response from MCI service. XmlDocument SoapRespone = soapConnector.makeCall(payload); XmlNodeList searchResponsePerson = SoapRespone.GetElementsByTagName("SearchResponsePerson"); // Serialize response as JSON. return(searchResponsePerson); }
public TPConnectorMock(int endpoint, Dictionary <string, string> headers, SoapConnector soapClient) : base(endpoint, headers) { this.soapClient = soapClient; }