我所引用的第三方服務引用和它創造.svcinfo,.svcmap和情侶的xsd文件。Web Service調用 - 錯誤
在我的代碼我創建了這個服務的代理,並試圖調用一個方法CreateAccount
(帶值)。調用此方法後,我得到了以下錯誤:
The top XML element 'OrderItems' from namespace 'https://www.mysite.com/MyOrder' references distinct types APITest.ServiceReference1.OrderItems and APITest.ServiceReference1.OtherOrderItems. Use XML attributes to specify another XML name or namespace for the element or types.
我能夠調用使用SOAPUI工具這種方法,並得到來自服務並稱帳戶創建一個有效的結果,它返回我的賬號。
我使用Visual Studio,C#/ VB,Windows窗體應用程序引用此服務。
我做了很多的搜索並沒有得到正確的答案來解決這個錯誤。任何想法爲什麼發生這種情況?
你能否提供一些代碼? – fuzz