0

I use a wsdl file to generate web service with the help of svcutil but it generates class instead of simple int or string parameter for the service contract. What I did:

  1. I created a WCF Service Application
  2. I created a Console Application then added the service reference to the project
  3. I used svcutil.exeto generate service from thy wsdl and xsd files in console project

Why does it do that and how I can rewrite the wsdl to solve this problem, please?

Uriil
  • 11,948
  • 11
  • 47
  • 68
sada
  • 584
  • 2
  • 8
  • 25

1 Answers1

1

Most likely you used /messageContract switch in svcutil.

If you added service via service reference, then right click on service->configure service reference and uncheck Always generate message contracts

Uriil
  • 11,948
  • 11
  • 47
  • 68