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
2
votes
1 answer

Cannot install dotnet-svcutil offline

I'm trying to install dotnet-svcutil tool on a server that has no internet connection. Visual Studio is also not installed on the server. .NET 7 SDK is already installed on the server, dotnet --version gives: 7.0.100 I have downloaded the tool…
Giorgos Betsos
  • 71,379
  • 9
  • 63
  • 98
2
votes
0 answers

Generate a WSDL from a dll?

Is it possible to generate a WSDL from a .NET ASMX-based web application without hosting it in IIS? Ideally, I'd like to point svcutil.exe (or wsdl.exe?) to the dll and have it spit out all the WSDL for the web application. If you could provide the…
JackAce
  • 1,407
  • 15
  • 32
2
votes
1 answer

WCF, svcutil.exe: How to properly match or configure web service client code?

This is about how to make the freaking WCF auto-generated client work. Easy to reproduce, all elements are here, just to be copied and pasted, just a command prompt needed. In cmd.exe: : set up environment "%VS100COMNTOOLS%"\vsvars32.bat : create…
Lumi
  • 14,775
  • 8
  • 59
  • 92
2
votes
2 answers

Prevent svcutil from generating "EmitDefaultValue=false" attributes

I've recently been trying to generate data contracts from xsd files, using svcutil like this: svcutil.exe /t:code /dconly /out:MyContract.cs /n:*,My.Namespace MyDataDefinition.xsd The XSD mostly consists of definitions like this:
Gabe
  • 2,526
  • 1
  • 23
  • 24
2
votes
1 answer

Impossible to use WSDL definition

A systematic breakdown of the problem follows. [Rewritten!] The client code using System; using System.Collections.Generic; using System.Linq; using System.Text; // This is a "sanitized" version of the real deal, of course. In reality I also…
Bent Rasmussen
  • 5,538
  • 9
  • 44
  • 63
2
votes
1 answer

WCF Service client problem

I'm trying to create a client for a WCF service that I have hosted on IIS 5.1.I'm getting a strange problem: I can access the service through a browser just fine, I see the "You have created a service" page, but whenever I try running svcutil (as…
Emil D
  • 1,864
  • 4
  • 23
  • 40
2
votes
1 answer

How can I generate WCF .cs file for both Silverlight and .NET?

I currently use the Silverlight version of svcutil to generate the .cs file for Silverlight. I would like to be able to share this with .NET 3.5, but there seem to be some obstacles. Notably, ChannelBase does not seem to exist in .NET, and neither…
tofutim
  • 22,664
  • 20
  • 87
  • 148
2
votes
1 answer

Visual Studio 2019 C# WCF Test Client not working with svcutil.exe

I have an WCF Test Client application which was originally created in Visual Studio 2017 which worked fine, however once I upgraded my Visual Studio to 2019 and re-ran the application, I get the following error message: The dependent tool…
Andrew Daly
  • 33
  • 1
  • 5
2
votes
2 answers

Generating Proxy with svcutil.exe for different (non-default) collection type

I am trying to generate proxy for a wcf service through command line. As required, I am using *svcutil.exe. There are bunch of services which I need to create proxies for. A sample command is shown below. Everything goes humming about generation of…
Subhash Dike
  • 1,836
  • 1
  • 22
  • 37
2
votes
1 answer

troubles with generating a service reference

I have to build a .Net application that consumes a bunch of web service. This web service runs under weblogic. The WSDL of the web services mention a XSD file that describes the types. When I try to add a "Service reference" with VS studio, I have…
Steve B
  • 36,818
  • 21
  • 101
  • 174
2
votes
0 answers

How to inject single instance of WCF service client in ASP.Net core using the code generated by dotnet-svcutil?

Context: We migrated our application to ASP.Net Core 2.1 and got everything "working" but ran into performance issues under heavy load. After doing much googling, I found this article and then this one which advocated for using a single instance of…
2
votes
1 answer

Class names generated using Svcutil giving a problem

I'm trying to generate a proxy in the Presentation layer from the Business Layer service.. My problem is I've two classes with the same name being exposed, though in different namespaces. say, Business.AddressInfo and Data.AddressInfo The proxy…
Toptorps
  • 23
  • 3
2
votes
1 answer

Where is svcutil.exe in visual studio 2017?

I just downloaded visual studio 2017 for svcutil.exe but I can't find it. Do you know where it is?
JohnDickinson
  • 97
  • 1
  • 3
  • 11
2
votes
2 answers

Can xs:any be in a xs:all element in XSD?

I'm trying to generate data contracts from supplied XSD's. Svcutil.exe is throwing this error at me: The 'http://www.w3.org/2001/XMLSchema:any' element is not supported in this context." Looking in the XSD, element of type any appear twice. This…
Lewis Cianci
  • 926
  • 1
  • 13
  • 38
2
votes
2 answers

Use svcutil.exe with a webproxy

I have a scenario where I need to consume a service using svcutil.exe but the wsdl of the service contains the following sections
Xorandor
  • 462
  • 3
  • 14