我想構建一個SharePoint Web部件,其中包含一個服務參考另一個我需要從vb代碼中調用SharePoint服務器。然而,當我嘗試調用遠程Web服務的第一次,我得到的日誌中的以下內容:使用其Web服務參考部署SharePoint WebPart
找不到,在ServiceModel客戶端配置單元參考合同「ListReference.ListsSoap」默認終結點元素。這可能是因爲沒有找到適用於您的應用程序的配置文件,或者因爲在客戶端元素中找不到匹配此合同的端點元素。在System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint,字符串configurationName) 在System.ServiceModel.ChannelFactory.ApplyConfiguration(字符串configurationName) 在System.ServiceModel.ChannelFactory.InitializeEndpoint(字符串configurationName,的EndpointAddress地址) 在系統。 ServiceModel.ChannelFactory 1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress) at System.ServiceModel.EndpointTrait
1.CreateSimplexFactory() 在System.ServiceModel.ClientBase 1.CreateChannelFactoryRef(EndpointTrait
1 endpointTrait) 在System.ServiceModel.ClientBase 1.InitializeChannelFactoryRef() at System.ServiceModel.ClientBase
1..ctor() 在VSeWSS.ChangeRequestWorkflow.ChangeRequest.SubmitForm(對象發件人,EventArgs的)
使用服務引用部署Web部件的正確方法是什麼?我可能會做錯什麼嗎?謝謝!
它的工作對我來說,第一次,但我猜是多少的web.config文件進行復制。端點位於部分中 ... ... ... system.serviceModel>。我的SharePoint web.config沒有元素,所以我添加了向下的整個元素。 –
2010-04-16 04:03:28