开发者

There is an error in XML document

开发者 https://www.devze.com 2023-02-17 07:52 出处:网络
I am developing a WinForms application. For DB transaction the WinForms ap开发者_高级运维plication refers to PHP webservice. Someimes the functions in the Webservice behaves strangely. The function ge

I am developing a WinForms application. For DB transaction the WinForms ap开发者_高级运维plication refers to PHP webservice. Someimes the functions in the Webservice behaves strangely. The function generates the exception:

There is an error in XML document (2, 421)

with the inner exception:

{"The specified type was not recognized: name='AccessOptions', namespace='......', at ."}

The most strange thing is that if I test the same function from PHP application, That works fine but in case of .NET application, it generates the above exception. Any help will be greatly appreciated.


Can't tell for sure without the xml or wsdl, but my guess would be that the wsdl is incomplete, and the type AccessOptions is not there in the wsdl. So .NET doesn't know how to deserialize that type. PHP isn't that strictly typed, so it may go easy on the missing type.

Anash

0

精彩评论

暂无评论...
验证码 换一张
取 消