I am using Magento SOAP service API in Asp.net c# application. I have added the Magento web reference. But i have to access multiple Magento API services. And I have tried some thing like below.
MagentoService mservice = new MagentoService();
mservice.Url = "http://tset.com/index.php/api/v2_soap/?wsdl";
string mlogin = mservice.login("ApiUser", "APiKey");
I am getting error like below.
Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.
When i use to uncomment the "mservice.Url" then its working fine. How can i change the Service dynamically in runtime.
Your help is truly appreciated.
Thanks!!
Go to the complete details ...