我有以下代碼用於使用不適合我的服務。任何人都可以建議我可以做些什麼來縮小最新的錯誤?我知道這是模糊的,所以請告訴我你需要提供什麼建議。調用Web服務:我在這裏做錯了什麼?
的地址是:http://localhost:57667/ExampleService.svc/
訪問時直接我得到「你已經創建了一個服務... ...消息」
該出錯的代碼是在這裏。這將導致以下錯誤:
_url = "http://localhost:57667/ExampleService.svc";
TextReader textReader = new StringReader(HttpPostClient.Post(new Uri(_url), bodyData.ToString(), _exampleServiceRequestEncoding, Properties.Settings.Default.HttpPostClientExampleAvailabilityTimeout));
錯誤消息: 當訪問該網址直接:http://localhost:57667/ExampleService.svc/ProcessRequest
The exception message is 'No component for key example.ExternalWebServiceStubs.Example.ExampleService was found'.
Castle.MicroKernel.DefaultKernel.get_Item(String key) at Castle.Facilities.WcfIntegration.WindsorInstanceProvider.GetInstance
千恩萬謝,