public static void TestAPI() { string path = "c:\\Cm_940.xml"; XmlDocument doc = new XmlDocument(); doc.Load(path); XmlDocument doc1 = RemoveNamespace(doc); WmsAPI.WmsWebServicePortTypeClient client = new TestConsoleApp.WmsAPI.WmsWebServicePortTypeClient(); //string RequestType, string MessageType, string RequestMethod, string XmlString //"MessageProcessor","ShipmentOrder","storeByQuote",strContent string res = client.callBackEnd("MessageProcessor", "ShipmentOrder", "storeByQuote", doc1.DocumentElement.OuterXml); Console.WriteLine(res); }
public static void TestAPI() { string path = "c:\\Cm_940.xml"; XmlDocument doc = new XmlDocument(); doc.Load(path); XmlDocument doc1 = RemoveNamespace(doc); WmsAPI.WmsWebServicePortTypeClient client = new TestConsoleApp.WmsAPI.WmsWebServicePortTypeClient(); //string RequestType, string MessageType, string RequestMethod, string XmlString //"MessageProcessor","ShipmentOrder","storeByQuote",strContent string res = client.callBackEnd("MessageProcessor", "ShipmentOrder", "storeByQuote",doc1.DocumentElement.OuterXml); Console.WriteLine(res); }