我是个新手,asp.net和我有一个WSDL和在它,当我创建一个对象为服务它显示如何调用wsdl的函数和类?
那么,如何使用这个WSDL和调用web“为抽象类不能创建对象”服务?
sampleservice object = new sampleservice (cannot able to create object)
public class Demo : sampleservice .sampleservice
{
// public string auth_string = "ssampleservice ampleservice ";
//public string country_iso = "MY";
sampleservice .used_amount_data useramount = new sampleservice .used_amount_data();
sampleservice .GlobalResponse globalresponse = new sampleservice .GlobalResponse();
sampleservice .CDRPage cdrpage = new sampleservice .CDRPage();
sampleservice .RegionsExt[] regionext = new sampleservice .RegionsExt[]{};
sampleservice .api_sampleservice apidata = new sampleservice .api_didwwdata();
sampleservice .City[] city = new sampleservice .City[] { };
sampleservice .Country[] country = new sampleservice .Country[] { };
sampleservice .Rates[] rates = new sampleservice .Rates[] { };
sampleservice .Regions[] regions = new sampleservice .Regions[] { };
sampleservice .prepaid_data prepaiddata = new sampleservice .prepaid_data();
所以如何从抽象类检索
你不能从抽象的检索,因为根据定义,它是抽象的,你不能实例化。您需要从中继承并使用它。 – Noctis
的WSDL包含了所有的功能和类参数,确定inherite如何从功能 –