F#Wsdl提供程序-处理x引用方法和类型问题
我正在使用F#Type提供程序来使用web服务。所有的请求都能正常工作,但有一个请求给出了下面的错误F#Wsdl提供程序-处理x引用方法和类型问题,f#,wsdl,type-providers,F#,Wsdl,Type Providers,我正在使用F#Type提供程序来使用web服务。所有的请求都能正常工作,但有一个请求给出了下面的错误 An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll Additional information: The XML element 'ResponseBO' from namespace 'http://com.x.xx/xsd' references a me
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll
Additional information: The XML element 'ResponseBO' from namespace 'http://com.x.xx/xsd' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute.
到目前为止,我看到的所有解决方案都涉及到更新Web服务,这对我来说不是一个选项。解决方法是什么?您有两个选择:
- 将相关文件获取到某些存储
- 然后重写WSDL(手动或其他方式)
- 然后svcutil.exe再次生成代码(或WSDL F#类型提供程序以重写文件)