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
10
votes
3 answers

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll. This sample project demonstrates the…
Stephen Jennings
  • 12,494
  • 5
  • 47
  • 66
10
votes
4 answers

Consume webservice from a .NET DLL - app.config problem

I'm building a DLL, let's call it mydll.dll, and in it I sometimes need to call methods from webservice, myservice. mydll.dll is built using C# and .NET 3.5. To consume myservice from mydll I've Added A Service in Visual Studio 2008, which is more…
Asaf R
  • 6,880
  • 9
  • 47
  • 69
10
votes
2 answers

svcutil.exe and namespace parameter

I'm trying to call svcutil.exe specifying a namespace parameter, but whatever I do, I get an error, even if I am reusing working examples from the Internet. For example, here I tried the simplest option just for testing - /namespace:*,My.Proxy. Here…
Anelook
  • 1,277
  • 3
  • 17
  • 28
10
votes
1 answer

svcutil.exe NOT generating specified fields for minOccurs=0

Using svcutil.exe to generate code from wsdl's + xsd's on files from the local file system. Previously used wsdl.exe. When a field is optional (i.e. has minOccurs="0"), wsdl.exe used to generate a Specified boolean if the type is a value type (like…
Dropmans
  • 121
  • 7
9
votes
4 answers

WCF - The maximum nametable character count quota (16384) has been exceeded while reading XML data

I'm having a WCF Service that uses wsHttpBinding. The server configuration is as follows :
Jankhana
  • 953
  • 4
  • 18
  • 29
8
votes
1 answer

svcutil from wsdl file: Error Schema with target namespace could not be found

On my machine I have a WSDL file and all the necessary schema files. I am trying to use svcutil to create client proxy code from the WSDL. Command: svcutil myfile.wsdl I keep getting an error when using svcutil, but have no problems when loading…
J Cooper
  • 4,828
  • 3
  • 36
  • 39
8
votes
1 answer

How to run svcutil.exe from behind authenticating proxy

I want to run the svcutil.exe tool to access a web service on the internet. Unfortunately, whenever I try, I get a bunch of errors that include the following message: The request failed with HTTP status 407: Proxy Authentication Required ( The ISA…
kmote
  • 16,095
  • 11
  • 68
  • 91
7
votes
1 answer

svcutil doesn't generate config file

I have wcf service. I tried to generate proxy code and configuration file for client program by svcutil: svcutil http://localhost/WcfService2/Files.svc I got valid file with proxy, but didn't get config file. Why? (VS2010 SP1, .NET 4.0, IIS 7.0) My…
vpp
  • 319
  • 1
  • 3
  • 10
7
votes
2 answers

svcutil generated unneccesary wrapper classes

I am working on a project that uses the contract first approach. I was given a WSDL and three xsd's. When I use svcutil it generates a wrapper around the response class like so: public partial class getDataByIdResponse1 { public…
user787312
  • 71
  • 1
  • 3
7
votes
2 answers

Why doesn't the /reference option to svcutil.exe work?

I'm attempting to use svcutil.exe to generate -only- the service contracts (interfaces) from a set of .wsdl files. When I do this (from an http-hosted wsdl), it picks up the included schemas and generates all the code for them. Great. What I would…
Mark
  • 11,257
  • 11
  • 61
  • 97
7
votes
0 answers

svcutil /sc does not generate Task async methods

When I run svcutil with no arguments, I get by default two methods, one sync and one Task async, as below: [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IConsultaDisponibilidade/RetornaDados",…
Juliano
  • 2,402
  • 1
  • 20
  • 22
7
votes
1 answer

WCF / svcutil in .NET 4.5 generates unusable code by default

With .NET 4.5, my WCF creation using svcutil suddenly seems to break (I've been using only .NET 4.0 until very recently) .... With the default settings I'm using to convert a pre-existing WSDL to my C# WCF proxy class: c:> svcutil.exe…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
7
votes
3 answers

wsdl.exe/svcutil.exe - is there a way not to generate the classes for types in the xsds during a Web service or client generation

We have a centrally managed object model for types in the schema in C#. We want every one across the enterprise use that object model instead of using the one generated each time from wsdl/svcutil during a webservice client or service…
RAVI KANDARPA
  • 71
  • 1
  • 2
7
votes
0 answers

Is there a way to prevent svcutil from implementing IExtensibleDataObject?

I'm trying to create a Portable Class Library. It will support .Net 4.51 & Windows Store apps. For some reason the option to Generate Task-Based Operations is disabled. Yet both .Net 4.51 & WIndows Store apps support this. There is a connect…
kfrosty
  • 805
  • 1
  • 8
  • 14
7
votes
2 answers

Generating code from WSDL in WCF keeps returning message does not match the default value

Ok, this is driving me insane. I've been trying to build service implementation code from a predefined wsdl and it is consistently returning a message on the service contract/interface: // CODEGEN: Generating message contract since the wrapper name…
Brutus35
  • 573
  • 2
  • 6
  • 12
1
2
3
27 28