我是個新手,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如何從功能 –