V
V
varemel2018-11-13 10:04:02
WSDL
varemel, 2018-11-13 10:04:02

How to generate a class for a WSDL service in Visual Studio 13?

Good afternoon!
I'm trying to connect a WSDL service to a project. Tried to generate

SvcUtil.exe /t:code http://.....?wsdl /out:user_bed_profile_filter.cs /serializer:XmlSerializer /wrapped

I tried to add a service to the GUI in two ways - as a Web Reference and as a Service Reference.
If Web Reference or through a class generated by SvcUtil.exe, then the error
A first chance exception of type 'System.InvalidOperationException' occurred in System.Xml.dll
Additional information: An error occurred while reflecting 'FilterRowsRequest'.

If Service Reference, then
A first chance exception of type 'System.InvalidOperationException' occured in System.ServiceModel.dll
Additional information: The XmlSerializer attribute System.Xml.Serialization.XmlAttributeAttribute is not valid on user_name. If IsWrapped is true, then only XmlElement, XmlArray, XmlArrayItem, XmlAnyAttribute, and XmlAnyElement attributes are supported

5bea771a8d9d9709450834.png5bea772ee9337395767882.png5bea773617f9b782869656.png
How to correctly generate a class to work with a WSDL service?

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question