Questions tagged [svcutil.exe]

The ServiceModel Metadata Utility tool (SVCUTIL.EXE) is used to generate service model code from metadata documents and metadata documents from service model code.

Svcutil.exe can generate code for service contracts, clients and data types from metadata documents. These metadata documents can be on a durable storage, or be retrieved online. Online retrieval follows either the WS-Metadata Exchange protocol or the DISCO protocol

http://msdn.microsoft.com/en-us/library/aa347733.aspx

416 questions
35
votes
7 answers

Svcutil.exe for .NET 4.0?

I was trying to use svcutil.exe to generate proxy classes for a service but when I use the /reference option to reference an assembly that is built for .NET 4.0 I get an error. Could not load file or assembly [...] or one of its dependencies. This…
D.H.
  • 1,083
  • 2
  • 11
  • 22
28
votes
2 answers

WCF proxy generation: svcutil.exe vs wsdl.exe

I have .wsdl and .xsd files from WebService and need to generate proxy by them. Svcutil.exe and wsdl.exe generate very different output. What is the difference between these two tools for proxy generation and which way is more preferable?
Sergey Moshkov
  • 491
  • 1
  • 4
  • 13
25
votes
5 answers

Is svcutil.exe a replacement for xsd.exe?

I am using xsd.exe to generate some c# classes from a .xsd file. I ran into the same issue that is covered here and on other sites where xsd.exe generates Type[] arrays instead of generic List collections for types in the .xsd file. Some people…
jameswelle
  • 1,367
  • 1
  • 15
  • 26
23
votes
2 answers

Cannot import wsdl:portType, wsdl:binding, wsdl:port

I am getting error while generating proxy for WCF using SVCUtil. Error is Attempting to download metadata from 'net.pipe://localhost/WebServices/Mgmt.svc' using WS-Metadata Exchange. This URL does not support DISCO. Error: Cannot import…
Pranav Singh
  • 17,079
  • 30
  • 77
  • 104
20
votes
3 answers

Passing username and password to svcutil.exe?

We have OSB services that are currently secured with a username and a password. I get a 401 unauthorized when attempting to generate a service proxy using svcutil. I know you need to set up a svcutil.exe.config file but I cannot find any examples…
webwires
  • 2,572
  • 3
  • 26
  • 44
17
votes
2 answers

Alternative to SvcUtil.exe?

I have been wrestling with SvcUtil all day, trying to get it to generate useful code for some IMS Enterprise Services (primarily Group Management Service, but there are others we need it to work for as well.) You can find the IMS service WSDL's here…
jrista
  • 32,447
  • 15
  • 90
  • 130
16
votes
3 answers

/sharedtypes equivalent for svcutil.exe?

Building an app that is relying on a 3rd party provider who has a very verbose set of SOAP services (we're talking 50+ WSDL files). Each individual WSDL however has numerous shared type declarations. When generating client code with wsdl.exe,…
bakasan
  • 2,262
  • 2
  • 26
  • 33
15
votes
1 answer

.Net 4.5 Svcutil generates two operations with the same name (Method and MethodAsync)

I am consuming a predefined wsdl with svcutil a la: svcutil some_service.wsdl one of the methods generated has the following signature: [System.ServiceModel.OperationContractAttribute(Action="http://ws.example.org/SubmitData",…
14
votes
1 answer

Why do I get ActionNotSupportedException for my WCF client/service?

I'm learning WCF, specifically I'm learning how to write them contract first, ala wscf.blue I can create a WCF client/service the contract last way (Microsoft) I can create a WCF client/service the contract first way (WSCF) But, if I create a…
RoboJ1M
  • 1,590
  • 2
  • 27
  • 34
14
votes
2 answers

use svcutil to map multiple namespaces for generating wcf service proxies

I want to use svcutil to map multiple wsdl namespace to clr namespace when generating service proxies. I use strong versioning of namespaces and hence the generated clr namespaces are awkward and may mean many client side code changes if the…
softveda
  • 10,858
  • 6
  • 42
  • 50
13
votes
3 answers

WCF service reference namespace differs from original

I'm having a problem regarding namespaces used by my service references. I have a number of WCF services, say with the namespace MyCompany.Services.MyProduct (the actual namespaces are longer). As part of the product, I'm also providing a sample C#…
Thorarin
  • 47,289
  • 11
  • 75
  • 111
12
votes
2 answers

WCF client logging dotnet core

I'm using asp.net core on windows and have a file with classes generated by the dotnet-svcutil. I'm using nlog for the logging purpose. Is there a way I can log all the raw requests and responses to and from the external service? Already tried…
Lanayx
  • 2,731
  • 1
  • 23
  • 35
12
votes
5 answers

How to generate client-side code for multiple WCF services with shared types

I have multiple WCF services that share some data contracts and need to generate client-side code using svcutil.exe. I've run into errors using two most obvious ways to do this and need some help. But first, here are the services: [ServiceContract(…
azheglov
  • 5,475
  • 1
  • 22
  • 29
11
votes
2 answers

Xsd.exe or Svcutil.exe to convert XSD schema to a class

Is it so that svcutil tool is recommended over xsd tool? I didn't see that as a confirmed statement, but it did seem so. The reason that I am confused over this is that I generated a class using both the tools. But, I got a better class using…
bhootjb
  • 1,501
  • 1
  • 21
  • 33
10
votes
3 answers

Problem with generating WebService proxy using svcutil

In our application we are forced to consume several WebServices. In the beginning we used just the "Add Service Reference" menu option, in order to create a WCF proxy. The wizard didn't generate a DataContract, but much rather an XML-Serializable…
Daniel Fabian
  • 3,828
  • 2
  • 19
  • 28
1
2 3
27 28