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

SVCUtil "update service reference" equivalent command parameters

I want to update service references in a Visual Studio 2010 solution by using SVCUtil because this solution has several projects and it's not good to get references refreshed one by one. I'd like to know your point, because I've to be sure I'm going…
Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
3
votes
1 answer

WCF "Always generate message contracts" does not generate MessageContract

I'm importing a WSDL as a service definition (inbound to my service), and for whatever reason the client is formatting the request such that WCF cannot deserialize it without the proxy classes having MessageContract decorations. I've gotten it to…
Matt Mills
  • 8,692
  • 6
  • 40
  • 64
3
votes
1 answer

svcutil.exe - Error: Cannot import wsdl:portType

I have to integrate several existing webservices in my .net application. But unfortunately, invoking the svcutil tool results in an error with the message: Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication…
Copeleto
  • 309
  • 6
  • 12
3
votes
2 answers

WCF XmlSerializer assembly not speeding up first request

I am generating proxy classes to a clients java webservice wsdls and xsd files with svcutil. The first call made to each service proxy class takes a very long time. I was hoping to speed this up by generating the XmlSerializers assembly myself…
Matt Dearing
  • 9,286
  • 1
  • 23
  • 25
3
votes
1 answer

Svcutil generating bad config with multiple endpoints

I have a WCF service that has exposed a soap and an xml endpoint. When I use svcutil to generate the proxy code on the client side the generated configuration contains two endpoints which causes the client to fail. If I edit the web.config file…
vfilby
  • 9,938
  • 9
  • 49
  • 62
3
votes
2 answers

svcutil, WSDL, and the generated interfaces not being sufficient for implementation

I have a WSDL file defining a service that I have to implement in WCF. I had read that I could generate the proxy using svcutil from the WSDL file, and that I could then use the generated interfaces to implement the service. Unfortunately, I can't…
David
  • 660
  • 7
  • 18
3
votes
0 answers

SvcUtil.exe - generate separate file for each class in wsdl

Is it possible using SvcUtil.exe to generate separate file for each class in wsdl schema defination.
Bhalchandra K
  • 2,631
  • 3
  • 31
  • 43
3
votes
2 answers

Error in Service Reference - Operation with MessageContractAttribute and Parameters of other Types

I've generated a proxy class to an 3rd party external asmx web service using svcutil.exe. Locally on my development machine, everything works fine but when I deploy to a server I get the following error: An error occurred communicating with the TBS…
3
votes
1 answer

svcutil - generating code with specific version

I work with some application from others people. Now, time comes to update some services and functionality. I add to my old wsdl file new operation and I want to generate code for my application using svcutil. I am using svcutil from C:\Program…
Hide
  • 115
  • 2
  • 11
3
votes
2 answers

Why does SvcUtil create a Channel interface that derives from IClientChannel

When you create code from a WSDL file using SvcUtil.exe, among the many types created is an interface that derives from both the service interface and IClientChannel. If, for example, the created service interface is called IMyService, it also…
Mark Seemann
  • 225,310
  • 48
  • 427
  • 736
3
votes
1 answer

SvcUtil.exe Generate multiple wsdl files

I've made a project in Visual C# 2008 Express with several interfaces with a service contract. I generate a WSDL from this using the scvutil.exe tool. All this works perfectly: I get a nice and working WSDL file. However I would like the tool to…
user157867
3
votes
0 answers

svcutil not exporting metadata for generic DataContract types

Up until now I've been implementing WCF services out of the box by letting Visual Studio take care of generating all of the client-side proxy code. But to prevent some maintenance nightmares, I now need to share DataContracts between different…
xr280xr
  • 12,621
  • 7
  • 81
  • 125
3
votes
2 answers

How to reuse all assembly types in svcutil and specify a dictionary collection type?

I am trying to generate my solution's Service Reference through the command line, so I've been trying to do it with svcutil. I have two problems. In Visual Studio 2012, I can specify a collection type of System.Array and a dictionary collection…
Didier A.
  • 4,609
  • 2
  • 43
  • 45
3
votes
1 answer

how implement mvc 4 project using crm 2011

we have crm 2011 and we want to develop asp.net mvc 4 project which uses crm 2011 db. What is the best way to do this? Also we have these questions: Can we use svcutil generated classes? Which is more suitable for such project Database first…
3
votes
1 answer

how to force svcutil use xml serialization instead runtime serialization

I'm using a service reference (the xsd visual studio tool) to generate a a cs (Reference.cs) in order to serialice and deserialice some classes but I need use System.Xml.Serialization instead System.Runtime.Serialization. how can i archieve this?…
MirlvsMaximvs
  • 1,453
  • 1
  • 24
  • 34